-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[update][script] migrate docker image from docker.io to quay.io
- Loading branch information
Showing
1 changed file
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 |