Skip to content

Commit

Permalink
[update][script] migrate docker image from docker.io to quay.io
Browse files Browse the repository at this point in the history
  • Loading branch information
wgzhao committed Oct 25, 2024
1 parent 6b8932a commit 4442889
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ compress_plugins
cat > /tmp/Dockerfile <<EOF
FROM openjdk:8-jre-alpine
LABEL maintainer="wgzhao <[email protected]>"
LABEL version="4.1.8"
LABEL version="$version"
LABEL description="Addax is a versatile open-source ETL tool that can seamlessly transfer data between various RDBMS and NoSQL databases, making it an ideal solution for data migration."
COPY addax-${version} /opt/addax
WORKDIR /opt/addax
RUN chmod +x bin/*.sh
EOF

# build it
docker build -t wgzhao/addax:${version}-lite -f /tmp/Dockerfile target/addax

docker build -t quay.io/wgzhao/addax:${version}-lite -f /tmp/Dockerfile target/addax
docker tag quay.io/wgzhao/addax:${version}-lite quay.io/wgzhao/addax:latest-lite
# then compile default images
mvn clean package -Dmaven.test.skip=true -Pdefault
mvn package assembly:single -Pdefault
Expand All @@ -60,12 +60,13 @@ compress_plugins
cat > /tmp/Dockerfile <<EOF
FROM openjdk:8-jre-alpine
LABEL maintainer="wgzhao <[email protected]>"
LABEL version="4.1.8"
LABEL version="${version}"
LABEL description="Addax is a versatile open-source ETL tool that can seamlessly transfer data between various RDBMS and NoSQL databases, making it an ideal solution for data migration."
COPY addax-${version} /opt/addax
WORKDIR /opt/addax
RUN chmod +x bin/*.sh
EOF

# build it
docker build -t wgzhao/addax:${version} -f /tmp/Dockerfile target/addax
docker build -t quay.io/wgzhao/addax:${version} -f /tmp/Dockerfile target/addax
docker tag quay.io/wgzhao/addax:${version} quay.io/wgzhao/addax:latest

0 comments on commit 4442889

Please sign in to comment.