Skip to content

Commit

Permalink
Merge pull request #3779 from Agnul97/fix-imageVersionVarDeployment
Browse files Browse the repository at this point in the history
Fix - changed IMAGE_VERSION env. variable default value
  • Loading branch information
Coduz authored May 23, 2023
2 parents 86bc7a8 + 8b8ea30 commit 94f0cca
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion deployment/commons/sso/keycloak/build
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

echo "Building Kapua Keycloak Docker image..."

docker build -f ./docker/Dockerfile -t kapua/kapua-keycloak:"${IMAGE_VERSION:=latest}" . ||
docker build -f ./docker/Dockerfile -t kapua/kapua-keycloak:"${IMAGE_VERSION:=2.0.0-SNAPSHOT}" . ||
{
echo "Building Kapua Keycloak docker image... ERROR!"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion deployment/docker/unix/docker-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

export IMAGE_VERSION=${IMAGE_VERSION:=latest}
export IMAGE_VERSION=${IMAGE_VERSION:=2.0.0-SNAPSHOT}
export CRYPTO_SECRET_KEY="${CRYPTO_SECRET_KEY:=dockerSecretKey!}"
2 changes: 1 addition & 1 deletion deployment/docker/unix/docker-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ done

docker_common

echo "Deploying Eclipse Kapua..."
echo "Deploying Eclipse Kapua version $IMAGE_VERSION..."
docker_compose ${DEBUG_MODE} ${DEV_MODE} ${SSO_MODE} ${SWAGGER} || {
echo "Deploying Eclipse Kapua... ERROR!"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion deployment/minishift/minishift-importer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

ERROR=0
DOCKER_ACCOUNT=${DOCKER_ACCOUNT:=kapua}
IMAGE_VERSION=${IMAGE_VERSION:=latest}
IMAGE_VERSION=${IMAGE_VERSION:=2.0.0-SNAPSHOT}
SERVICES=("console" "api" "sql" "broker" "events-broker")
TMP_DIR="/tmp/kapua-containers-$(date +%s)"

Expand Down
2 changes: 1 addition & 1 deletion deployment/minishift/minishift-pull-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#

DOCKER_ACCOUNT=${DOCKER_ACCOUNT:=kapua}
IMAGE_VERSION=${IMAGE_VERSION:=latest}
IMAGE_VERSION=${IMAGE_VERSION:=2.0.0-SNAPSHOT}
SERVICES=("console" "api" "sql" "broker" "events-broker")

echo "Pulling Kapua images..."
Expand Down
2 changes: 1 addition & 1 deletion deployment/minishift/sso/keycloak-importer
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

ERROR=0
DOCKER_ACCOUNT=${DOCKER_ACCOUNT:=kapua}
IMAGE_VERSION=${IMAGE_VERSION:=latest}
IMAGE_VERSION=${IMAGE_VERSION:=2.0.0-SNAPSHOT}
KEYCLOAK="keycloak"
TMP_DIR="/tmp/keycloak-container-$(date +%s)"

Expand Down
2 changes: 1 addition & 1 deletion deployment/openshift/openshift-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. ${SCRIPT_DIR}/openshift-common.sh

: DOCKER_ACCOUNT=${DOCKER_ACCOUNT:=kapua}
: IMAGE_VERSION=${IMAGE_VERSION:=latest}
: IMAGE_VERSION=${IMAGE_VERSION:=2.0.0-SNAPSHOT}
: JAVA_OPTS_EXTRA=${JAVA_OPTS_EXTRA:=''}

### Test if the project is already created ... fail otherwise
Expand Down

0 comments on commit 94f0cca

Please sign in to comment.