Skip to content

Commit

Permalink
[DOCKER] Docker image requires lowercase naming
Browse files Browse the repository at this point in the history
  • Loading branch information
chia7712 committed Nov 13, 2024
1 parent 1a886c7 commit 127e395
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docker/start_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ source $DOCKER_FOLDER/docker_build_common.sh
declare -r VERSION=${REVISION:-${VERSION:-main}}
declare -r ACCOUNT=${ACCOUNT:-opensource4you}
if [[ "$VERSION" == "main" ]]; then
declare -r IMAGE_NAME="ghcr.io/${ACCOUNT}/astraea/app:latest"
declare -r IMAGE_NAME="ghcr.io/${ACCOUNT,,}/astraea/app:latest"
else
declare -r IMAGE_NAME="ghcr.io/${ACCOUNT}/astraea/app:$VERSION"
declare -r IMAGE_NAME="ghcr.io/${ACCOUNT,,}/astraea/app:$VERSION"
fi
declare -r DOCKERFILE=$DOCKER_FOLDER/app.dockerfile
declare -r JMX_PORT=${JMX_PORT:-"$(getRandomPort)"}
Expand Down
2 changes: 1 addition & 1 deletion docker/start_broker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ declare -r JMX_OPTS="-Dcom.sun.management.jmxremote \
-Djava.rmi.server.hostname=$ADDRESS"
declare -r HEAP_OPTS="${HEAP_OPTS:-"-Xmx2G -Xms2G"}"
declare -r BROKER_PROPERTIES="/tmp/server-${BROKER_PORT}.properties"
declare -r IMAGE_NAME="ghcr.io/${ACCOUNT}/astraea/broker:$KAFKA_VERSION"
declare -r IMAGE_NAME="ghcr.io/${ACCOUNT,,}/astraea/broker:$KAFKA_VERSION"
declare -r METADATA_VERSION=${METADATA_VERSION:-""}
# cleanup the file if it is existent
[[ -f "$BROKER_PROPERTIES" ]] && rm -f "$BROKER_PROPERTIES"
Expand Down
2 changes: 1 addition & 1 deletion docker/start_controller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ declare -r JMX_OPTS="-Dcom.sun.management.jmxremote \
-Djava.rmi.server.hostname=$ADDRESS"
declare -r HEAP_OPTS="${HEAP_OPTS:-"-Xmx2G -Xms2G"}"
declare -r CONTROLLER_PROPERTIES="/tmp/controller-${CONTROLLER_PORT}.properties"
declare -r IMAGE_NAME="ghcr.io/${ACCOUNT}/astraea/controller:$KAFKA_VERSION"
declare -r IMAGE_NAME="ghcr.io/${ACCOUNT,,}/astraea/controller:$KAFKA_VERSION"
declare -r METADATA_VERSION=${METADATA_VERSION:-""}
# cleanup the file if it is existent
[[ -f "$CONTROLLER_PROPERTIES" ]] && rm -f "$CONTROLLER_PROPERTIES"
Expand Down
2 changes: 1 addition & 1 deletion docker/start_worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ declare -r JMX_OPTS="-Dcom.sun.management.jmxremote \
declare -r HEAP_OPTS="${HEAP_OPTS:-"-Xmx2G -Xms2G"}"
declare -r WORKER_PROPERTIES="/tmp/worker-${WORKER_PORT}.properties"
declare -r WORKER_PLUGIN_PATH=${WORKER_PLUGIN_PATH:-/tmp/worker-plugins}
declare -r IMAGE_NAME="ghcr.io/${ACCOUNT}/astraea/worker:$VERSION"
declare -r IMAGE_NAME="ghcr.io/${ACCOUNT,,}/astraea/worker:$VERSION"
declare -r SCRIPT_LOCATION_IN_CONTAINER="./bin/connect-distributed.sh"
# cleanup the file if it is existent
[[ -f "$WORKER_PROPERTIES" ]] && rm -f "$WORKER_PROPERTIES"
Expand Down

0 comments on commit 127e395

Please sign in to comment.