-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Olivier Rochon
committed
Aug 1, 2018
1 parent
2822ff3
commit d0e64fc
Showing
5 changed files
with
100 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/bin/bash | ||
|
||
|
||
# Define BUILD_FOLDER | ||
pushd $(dirname $0) | ||
DOCKER_FILENAME=Dockerfile | ||
BUILD_FOLDER=$PWD/../.. | ||
popd | ||
|
||
DOCKER_REPO=konvergence/shuttle | ||
|
||
# Release build is the last SVN release that include all previous build release for client or server | ||
SHUTTLE_INSTALLER_RELEASE="4.9.0.29404" | ||
|
||
RELEASE_MAJOR="4.9" | ||
RELEASE_MINOR="0" | ||
SERVER_BUILD="29404" | ||
|
||
SHUTTLE_RELEASE=${RELEASE_MAJOR}.${RELEASE_MINOR}.${SERVER_BUILD} | ||
IMAGE_BUILD=24 | ||
|
||
|
||
# Release Build of the Docker Image | ||
# Final Docker Image Name | ||
IMAGE_TAG=${SHUTTLE_RELEASE}.${IMAGE_BUILD}-sl | ||
|
||
|
||
|
||
|
||
#------------------------------------------------------------------------------------------------------- | ||
echo "Building image ${DOCKER_REPO}:${IMAGE_TAG} ..." | ||
#BUILD_OPTIONS="--force-rm=true --no-cache=true" | ||
docker build $BUILD_OPTIONS -t ${DOCKER_REPO}:${IMAGE_TAG} \ | ||
--build-arg SHUTTLE_INSTALLER_RELEASE=${SHUTTLE_INSTALLER_RELEASE} \ | ||
--build-arg RELEASE_MAJOR=${RELEASE_MAJOR} \ | ||
--build-arg RELEASE_MINOR=${RELEASE_MINOR} \ | ||
--build-arg SHUTTLE_RELEASE=${SHUTTLE_RELEASE} \ | ||
--file ${DOCKER_FILENAME} \ | ||
${BUILD_FOLDER} | ||
|
||
if [ $? -eq 0 ]; then | ||
echo "Local Image created: ${DOCKER_REPO} " | ||
docker images ${DOCKER_REPO} | ||
else | ||
echo docker builld return error code $? | ||
fi | ||
|
||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
RELEASE_MAJOR="4.9" | ||
RELEASE_MINOR="0" | ||
SERVER_BUILD="29404" | ||
|
||
SHUTTLE_REPO=https://constellium.konvergence.com/projects/shuttle-packages/repository/raw/${RELEASE_MAJOR} | ||
|
||
rm -rf installer/* | ||
rm -rf patches/module/* | ||
rm -rf patches/server/* | ||
rm -rf patches/client/* | ||
rm -rf patches/class/* | ||
|
||
read -p "CONSTELLIUM_USER:" CONSTELLIUM_USER | ||
read -s -p "CONSTELLIUM_PASSWORD:" CONSTELLIUM_PASSWORD | ||
|
||
bash constellium_download_cred.sh ${CONSTELLIUM_USER} ${CONSTELLIUM_PASSWORD} ${SHUTTLE_REPO}/ShuttleInstaller-4.9.0.29404.jar installer/ShuttleInstaller-4.9.0.29404.jar | ||
bash constellium_download_cred.sh ${CONSTELLIUM_USER} ${CONSTELLIUM_PASSWORD} ${SHUTTLE_REPO}/documentation/ShuttleDocumentation-4.9.zip documentation/ShuttleDocumentation-4.9.zip |