Skip to content

Commit

Permalink
refactor: rename dockerhub repo and docker path (#1218)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gezi-lzq authored May 7, 2024
1 parent 402aed0 commit df2a2fa
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+-rc[0-9]+'


jobs:
docker-release:
name: Docker Image Release
Expand Down Expand Up @@ -54,5 +55,5 @@ jobs:
with:
context: ./docker
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/kafka:${{ github.ref_name }}
tags: ${{ secrets.DOCKERHUB_USERNAME }}/automq:${{ github.ref_name }}
platforms: linux/amd64,linux/arm64
2 changes: 1 addition & 1 deletion automq_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def do_release(tag, s3stream_tag):
cmd(f"Checking out to release branch", f'git checkout --quiet -b {new_branch}')

print("Updating docker compose")
regexReplace("docker/docker-compose.yaml", "image: automqinc/kafka:.*$", f"image: automqinc/kafka:{tag}")
regexReplace("docker/docker-compose.yaml", "image: automqinc/automq:.*$", f"image: automqinc/automq:{tag}")
replace("gradle/dependencies.gradle", ' branch = "main"', f' require "{s3stream_tag}"')

cmd("Committing changes", ["git", "commit", "--all", "--gpg-sign", "--signoff", "--message", f"ci: bump version to {tag}"])
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ RUN chmod +x /opt/kafka/scripts/*.sh

RUN mkdir -p /data/kafka

RUN ln -s /opt/kafka /opt/automq
WORKDIR /opt/kafka

CMD tail -f /dev/null
12 changes: 6 additions & 6 deletions docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ services:
container_name: "${CONTROLLER_DOCKER_NAME-controller}"
hostname: "${CONTROLLER_DOCKER_NAME-controller}"
stop_grace_period: 2m
image: automqinc/kafka:1.1.0-rc0
image: automqinc/automq:1.1.0-rc0
environment:
- KAFKA_S3_ACCESS_KEY=test
- KAFKA_S3_SECRET_KEY=test
Expand All @@ -62,7 +62,7 @@ services:
- bash
- -c
- |
/opt/kafka/scripts/start.sh up --process.roles controller --node.id 0 --controller.quorum.voters 0@controller:9093 --s3.bucket ko3 --s3.endpoint http://10.6.0.2:4566 --s3.region us-east-1
/opt/automq/scripts/start.sh up --process.roles controller --node.id 0 --controller.quorum.voters 0@controller:9093 --s3.bucket ko3 --s3.endpoint http://10.6.0.2:4566 --s3.region us-east-1
networks:
- afk_net
depends_on:
Expand All @@ -73,7 +73,7 @@ services:
container_name: "${BROKER1_DOCKER_NAME-broker1}"
hostname: "${BROKER1_DOCKER_NAME-broker1}"
stop_grace_period: 2m
image: automqinc/kafka:1.1.0-rc0
image: automqinc/automq:1.1.0-rc0
ports:
- "9094:9094"
environment:
Expand All @@ -91,7 +91,7 @@ services:
- bash
- -c
- |
/opt/kafka/scripts/start.sh up --process.roles broker --node.id 1 --controller.quorum.voters 0@controller:9093 --s3.bucket ko3 --s3.endpoint http://10.6.0.2:4566 --s3.region us-east-1
/opt/automq/scripts/start.sh up --process.roles broker --node.id 1 --controller.quorum.voters 0@controller:9093 --s3.bucket ko3 --s3.endpoint http://10.6.0.2:4566 --s3.region us-east-1
networks:
- afk_net
depends_on:
Expand All @@ -103,7 +103,7 @@ services:
container_name: "${BROKER2_DOCKER_NAME-broker2}"
hostname: "${BROKER2_DOCKER_NAME-broker2}"
stop_grace_period: 2m
image: automqinc/kafka:1.1.0-rc0
image: automqinc/automq:1.1.0-rc0
ports:
- "9095:9095"
environment:
Expand All @@ -121,7 +121,7 @@ services:
- bash
- -c
- |
/opt/kafka/scripts/start.sh up --process.roles broker --node.id 2 --controller.quorum.voters 0@controller:9093 --s3.bucket ko3 --s3.endpoint http://10.6.0.2:4566 --s3.region us-east-1
/opt/automq/scripts/start.sh up --process.roles broker --node.id 2 --controller.quorum.voters 0@controller:9093 --s3.bucket ko3 --s3.endpoint http://10.6.0.2:4566 --s3.region us-east-1
networks:
- afk_net
depends_on:
Expand Down
4 changes: 2 additions & 2 deletions docker/docker_manage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ docker_push() {
done
prepare
echo_and_do docker buildx build --platform linux/amd64,linux/arm64 \
-t "automqinc/kafka:${kafka_version}" \
-t "automqinc/automq:${kafka_version}" \
. --push
}

Expand All @@ -131,7 +131,7 @@ docker_build() {
esac
done
prepare
echo_and_do docker build -t "automqinc/kafka:${kafka_version}" .
echo_and_do docker build -t "automqinc/automq:${kafka_version}" .
# --build-arg "general_mirror_url=mirrors.ustc.edu.cn" .

}
Expand Down

0 comments on commit df2a2fa

Please sign in to comment.