diff --git a/src/docker/Dockerfile b/src/docker/Dockerfile index b199747..06de763 100644 --- a/src/docker/Dockerfile +++ b/src/docker/Dockerfile @@ -1,5 +1,5 @@ -FROM openjdk:8-jre -RUN wget https://github.com/weissreto/jmx-cli/releases/download/v0.1.0/jmx-cli-0.1.0-linux.zip \ - && unzip jmx-cli-0.1.0-linux.zip -d /app -ENV PATH="/app/jmx-cli-0.1.0/bin:$PATH" +FROM openjdk:11-jdk +RUN wget https://github.com/weissreto/jmx-cli/releases/download/v0.2.0/jmx-cli-0.2.0-linux.zip \ + && unzip jmx-cli-0.2.0-linux.zip -d /app +ENV PATH="/app/jmx-cli-0.2.0/bin:$PATH" CMD /bin/bash diff --git a/src/docker/build.sh b/src/docker/build.sh index ab1b33e..e2cb9cd 100644 --- a/src/docker/build.sh +++ b/src/docker/build.sh @@ -1,5 +1,5 @@ -sudo docker build . -t rweiw/jmcli:0.1 --no-cache -sudo docker tag rweiw/jmcli:0.1 rweiw/jmcli:latest +sudo docker build . -t rweiw/jmcli:0.2 --no-cache +sudo docker tag rweiw/jmcli:0.2 rweiw/jmcli:latest sudo docker login -sudo docker push rweiw/jmcli:0.1 +sudo docker push rweiw/jmcli:0.2 sudo docker push rweiw/jmcli:latest \ No newline at end of file diff --git a/src/docker/java8/Dockerfile b/src/docker/java8/Dockerfile new file mode 100644 index 0000000..06de28b --- /dev/null +++ b/src/docker/java8/Dockerfile @@ -0,0 +1,5 @@ +FROM openjdk:8-jre +RUN wget https://github.com/weissreto/jmx-cli/releases/download/v0.2.0/jmx-cli-0.2.0-java8-linux.zip \ + && unzip jmx-cli-0.2.0-java8-linux.zip -d /app +ENV PATH="/app/jmx-cli-0.2.0/bin:$PATH" +CMD /bin/bash diff --git a/src/docker/java8/build.sh b/src/docker/java8/build.sh new file mode 100644 index 0000000..471f038 --- /dev/null +++ b/src/docker/java8/build.sh @@ -0,0 +1,5 @@ +sudo docker build . -t rweiw/jmcli:0.2-java8 --no-cache +sudo docker tag rweiw/jmcli:0.2-java8 rweiw/jmcli:latest-java8 +sudo docker login +sudo docker push rweiw/jmcli:0.2-java8 +sudo docker push rweiw/jmcli:latest-java8 \ No newline at end of file