openc3-cosmos-init/plugins/docker-package-build.sh
#!/bin/sh
set -e
PLUGINS="/openc3/plugins"
GEMS="/openc3/plugins/gems/"
PACKAGES="packages"
OPENC3_RELEASE_VERSION=5.21.0-beta0
mkdir -p ${GEMS}
echo "<<< packageBuild $1"
cd ${PLUGINS}/${PACKAGES}/${1}/
echo "--- packageBuild $1 yarn run build"
yarn run build
echo "=== packageBuild $1 yarn run build complete"
echo "--- packageBuild $1 rake build"
rake build VERSION=${OPENC3_RELEASE_VERSION}
echo "=== packageBuild $1 rake build complete"
ls *.gem
echo "--- packageInstall $1 mv gem file"
mv ${1}-*.gem ${GEMS}
echo "=== packageInstall $1 mv gem complete"