-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Provide two different Docker Images one for java 8 and one for java 11
- Loading branch information
Showing
4 changed files
with
17 additions
and
7 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 |
---|---|---|
@@ -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 |
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 |
---|---|---|
@@ -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 |
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 |
---|---|---|
@@ -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 |
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 |
---|---|---|
@@ -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 |