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 127e395 commit 67bf0a3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docker/start_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ declare -r ACCOUNT=${ACCOUNT:-opensource4you}
if [[ "$VERSION" == "main" ]]; then
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
8 changes: 4 additions & 4 deletions 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:${KAFKA_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 Expand Up @@ -82,8 +82,8 @@ FROM ghcr.io/opensource4you/astraea/deps AS build
# build kafka from source code
RUN git clone --depth=1 ${kafka_repo} /tmp/kafka
WORKDIR /tmp/kafka
RUN git fetch --depth=1 origin $VERSION
RUN git checkout $VERSION
RUN git fetch --depth=1 origin $KAFKA_VERSION
RUN git checkout $KAFKA_VERSION
RUN ./gradlew clean releaseTarGz
RUN mkdir /opt/kafka
RUN tar -zxvf \$(find ./core/build/distributions/ -maxdepth 1 -type f \( -iname \"kafka*tgz\" ! -iname \"*sit*\" \)) -C /opt/kafka --strip-components=1
Expand Down Expand Up @@ -128,7 +128,7 @@ RUN apt-get update && apt-get install -y wget
WORKDIR /tmp
RUN wget $kafka_url
RUN mkdir /opt/kafka
RUN tar -zxvf kafka_2.13-${VERSION}.tgz -C /opt/kafka --strip-components=1
RUN tar -zxvf kafka_2.13-${version}.tgz -C /opt/kafka --strip-components=1
RUN git clone ${repo} /tmp/astraea
WORKDIR /tmp/astraea
RUN ./gradlew clean shadowJar
Expand Down

0 comments on commit 67bf0a3

Please sign in to comment.