Skip to content

Commit

Permalink
[COMMON] update ubuntu from 22.04 to 23.10 (#1844)
Browse files Browse the repository at this point in the history
  • Loading branch information
chia7712 authored Mar 8, 2024
1 parent 59377d5 commit 35aff76
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion docker/build_deps_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ declare -r DOCKERFILE=$DOCKER_FOLDER/deps.dockerfile
# ===================================[functions]===================================
function generateDockerfile() {
echo "# this dockerfile is generated dynamically
FROM ubuntu:22.04
FROM ubuntu:23.10
# install tools
RUN apt-get update && apt-get install -y \
Expand Down
2 changes: 1 addition & 1 deletion docker/start_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ RUN ./gradlew clean build -x test --no-daemon
RUN mkdir /opt/astraea
RUN tar -xvf \$(find ./app/build/distributions/ -maxdepth 1 -type f -name app-*.tar) -C /opt/astraea/ --strip-components=1
FROM ubuntu:22.04
FROM ubuntu:23.10
# install tools
RUN apt-get update && apt-get install -y openjdk-17-jre
Expand Down
6 changes: 3 additions & 3 deletions docker/start_broker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ 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
FROM ubuntu:22.04
FROM ubuntu:23.10
# install tools
RUN apt-get update && apt-get install -y openjdk-17-jre
Expand All @@ -113,7 +113,7 @@ WORKDIR /opt/kafka

function generateDockerfileByVersion() {
echo "# this dockerfile is generated dynamically
FROM ubuntu:22.04 AS build
FROM ubuntu:23.10 AS build
# install tools
RUN apt-get update && apt-get install -y wget
Expand All @@ -131,7 +131,7 @@ RUN mkdir /opt/kafka
RUN tar -zxvf kafka_2.13-${VERSION}.tgz -C /opt/kafka --strip-components=1
WORKDIR /opt/kafka
FROM ubuntu:22.04
FROM ubuntu:23.10
# install tools
RUN apt-get update && apt-get install -y openjdk-17-jre
Expand Down
6 changes: 3 additions & 3 deletions docker/start_controller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ 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
FROM ubuntu:22.04
FROM ubuntu:23.10
# install tools
RUN apt-get update && apt-get install -y openjdk-17-jre
Expand All @@ -101,7 +101,7 @@ WORKDIR /opt/kafka

function generateDockerfileByVersion() {
echo "# this dockerfile is generated dynamically
FROM ubuntu:22.04 AS build
FROM ubuntu:23.10 AS build
# install tools
RUN apt-get update && apt-get install -y wget
Expand All @@ -119,7 +119,7 @@ RUN mkdir /opt/kafka
RUN tar -zxvf kafka_2.13-${VERSION}.tgz -C /opt/kafka --strip-components=1
WORKDIR /opt/kafka
FROM ubuntu:22.04
FROM ubuntu:23.10
# install tools
RUN apt-get update && apt-get install -y openjdk-17-jre
Expand Down
4 changes: 2 additions & 2 deletions docker/start_hadoop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function showHelp() {

function generateDockerfile() {
echo "#this dockerfile is generated dynamically
FROM ubuntu:22.04 AS build
FROM ubuntu:23.10 AS build
#install tools
RUN apt-get update && apt-get install -y wget
Expand All @@ -75,7 +75,7 @@ RUN wget https://archive.apache.org/dist/hadoop/common/hadoop-${VERSION}/hadoop-
RUN mkdir /opt/hadoop
RUN tar -zxvf hadoop-${VERSION}.tar.gz -C /opt/hadoop --strip-components=1
FROM ubuntu:22.04
FROM ubuntu:23.10
#install tools
# TODO: upgrade to jdk 11 (https://github.com/skiptests/astraea/issues/1681)
Expand Down
2 changes: 1 addition & 1 deletion docker/start_spark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ WORKDIR /opt/spark

function generateDockerfileBySource() {
echo "# this dockerfile is generated dynamically
FROM ubuntu:22.04 AS build
FROM ubuntu:23.10 AS build
# Do not ask for confirmations when running apt-get, etc.
ENV DEBIAN_FRONTEND noninteractive
Expand Down
4 changes: 2 additions & 2 deletions docker/start_worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ WORKDIR /tmp/astraea
RUN ./gradlew clean shadowJar
RUN cp /tmp/astraea/connector/build/libs/astraea-*-all.jar /opt/kafka/libs/
FROM ubuntu:22.04
FROM ubuntu:23.10
# install tools
RUN apt-get update && apt-get install -y openjdk-17-jre
Expand Down Expand Up @@ -132,7 +132,7 @@ WORKDIR /tmp/astraea
RUN ./gradlew clean shadowJar
RUN cp /tmp/astraea/connector/build/libs/astraea-*-all.jar /opt/kafka/libs/
FROM ubuntu:22.04
FROM ubuntu:23.10
# install tools
RUN apt-get update && apt-get install -y openjdk-17-jre
Expand Down
4 changes: 2 additions & 2 deletions docker/start_zookeeper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function showHelp() {

function generateDockerfile() {
echo "# this dockerfile is generated dynamically
FROM ubuntu:22.04 AS build
FROM ubuntu:23.10 AS build
# install tools
RUN apt-get update && apt-get install -y wget
Expand All @@ -59,7 +59,7 @@ RUN wget https://archive.apache.org/dist/zookeeper/zookeeper-${VERSION}/apache-z
RUN mkdir /opt/zookeeper
RUN tar -zxvf apache-zookeeper-${VERSION}-bin.tar.gz -C /opt/zookeeper --strip-components=1
FROM ubuntu:22.04
FROM ubuntu:23.10
# install tools
RUN apt-get update && apt-get install -y openjdk-17-jre
Expand Down

0 comments on commit 35aff76

Please sign in to comment.