Skip to content

Commit

Permalink
[COMMON] remove old gradle and disable to set REVISION with branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
chia7712 committed May 5, 2024
1 parent 10e58d9 commit 2a3eba5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
5 changes: 0 additions & 5 deletions docker/build_deps_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ RUN apt-get update && apt-get install -y \
unzip \
curl
# download gradle 5 for previous kafka having no built-in gradlew
WORKDIR /tmp
RUN wget https://downloads.gradle.org/distributions/gradle-5.6.4-bin.zip
RUN unzip gradle-5.6.4-bin.zip
# build code and download dependencies
WORKDIR /astraea
RUN git clone https://github.com/skiptests/astraea.git /astraea
Expand Down
5 changes: 2 additions & 3 deletions docker/start_broker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,10 @@ RUN wget https://raw.githubusercontent.com/prometheus/jmx_exporter/master/exampl
RUN wget https://REPO1.maven.org/maven2/io/prometheus/jmx/jmx_prometheus_javaagent/${EXPORTER_VERSION}/jmx_prometheus_javaagent-${EXPORTER_VERSION}.jar
# build kafka from source code
RUN git clone ${kafka_repo} /tmp/kafka
RUN git clone --depth=1 ${kafka_repo} /tmp/kafka
WORKDIR /tmp/kafka
RUN git fetch --depth=1 origin $VERSION
RUN git checkout $VERSION
# generate gradlew for previous
RUN cp /tmp/kafka/gradlew /tmp/gradlew || /tmp/gradle-5.6.4/bin/gradle
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
3 changes: 2 additions & 1 deletion docker/start_controller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ RUN wget https://raw.githubusercontent.com/prometheus/jmx_exporter/master/exampl
RUN wget https://REPO1.maven.org/maven2/io/prometheus/jmx/jmx_prometheus_javaagent/${EXPORTER_VERSION}/jmx_prometheus_javaagent-${EXPORTER_VERSION}.jar
# build kafka from source code
RUN git clone ${kafka_repo} /tmp/kafka
RUN git clone --depth=1 ${kafka_repo} /tmp/kafka
WORKDIR /tmp/kafka
RUN git fetch --depth=1 origin $VERSION
RUN git checkout $VERSION
RUN ./gradlew clean releaseTarGz
RUN mkdir /opt/kafka
Expand Down
5 changes: 2 additions & 3 deletions docker/start_worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,10 @@ function generateDockerfileBySource() {
FROM ghcr.io/skiptests/astraea/deps AS build
# build kafka from source code
RUN git clone ${kafka_repo} /tmp/kafka
RUN git clone --depth=1 ${kafka_repo} /tmp/kafka
WORKDIR /tmp/kafka
RUN git fetch --depth=1 origin $VERSION
RUN git checkout $VERSION
# generate gradlew for previous
RUN cp /tmp/kafka/gradlew /tmp/gradlew || /tmp/gradle-5.6.4/bin/gradle
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

0 comments on commit 2a3eba5

Please sign in to comment.