mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-19 12:15:28 +00:00
copy files required in Docker image from git workspace to docker/ and clean up afterwards
This commit is contained in:
@@ -8,5 +8,12 @@ if [ "$release" = "" ]; then
|
||||
rm $INDEX
|
||||
echo Latest release is $release
|
||||
fi
|
||||
GITROOT=`dirname $0`/..
|
||||
echo "Copying files from GITROOT $GITROOT into Docker workspace"
|
||||
cp "$GITROOT/java/target/env.sh" .
|
||||
cp "$GITROOT/java/target/start" .
|
||||
cp "$GITROOT/java/target/configuration/JavaSE-11.profile" .
|
||||
cat Dockerfile.tpl | sed -e "s/RELEASE/${release}/g" >Dockerfile
|
||||
docker build -t sapsailing:$release .
|
||||
echo "Cleaning up..."
|
||||
rm start env.sh JavaSE-11.profile
|
||||
|
||||
Reference in New Issue
Block a user