This page (revision-9) was last changed on 23-Apr-2022 17:06 by Harry Metske

This page was created on 23-Apr-2022 17:05 by Harry Metske

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
9 23-Apr-2022 17:06 11 KB Harry Metske to previous
8 23-Apr-2022 17:05 10 KB Harry Metske to previous | to last
7 23-Apr-2022 17:05 9 KB Harry Metske to previous | to last
6 23-Apr-2022 17:05 9 KB Harry Metske to previous | to last
5 23-Apr-2022 17:05 8 KB Harry Metske to previous | to last
4 23-Apr-2022 17:05 7 KB Harry Metske to previous | to last
3 23-Apr-2022 17:05 6 KB Harry Metske to previous | to last
2 23-Apr-2022 17:05 6 KB Harry Metske to previous | to last
1 23-Apr-2022 17:05 350 bytes Harry Metske to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 93 added 40 lines
! Create docker image for your runnable jar
We user the following Dockerfile and built an image with it:
%%prettify
{{{
FROM alpine:3.3
MAINTAINER Harry Metske <metskem@apache.org>
RUN apk --update add openjdk8-jre
ADD testapp1-0.1.1.jar /
ENV LANG en_US.UTF-8
ENV CATALINA_OPTS -Djava.security.egd=file:/dev/./urandom
EXPOSE 8080
CMD ["java","-jar", "/testapp1-0.1.1.jar"]
}}}
%%
! Registry
Next we need a registry where we can push/pull our images:
{{docker run -d -p 5000:5000 -v /home/metskem/registry:/tmp/registry-dev --name=registry registry}}
Next we tag and push our image:
{{{
➜ testapp1 git:(master) ✗ docker tag testapp1:latest athena:5000/testapp1:0.1.1
➜ testapp1 git:(master) ✗ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
athena:5000/testapp1 0.1.1 66ece7b26ab2 10 minutes ago 165.7 MB
testapp1 latest 66ece7b26ab2 10 minutes ago 165.7 MB
registry latest 182810e6ba8c 4 days ago 37.62 MB
monitoringartist/zabbix-xxl 3.2.3 b7ae522f5534 10 days ago 659.8 MB
----- snip -----
➜ testapp1 git:(master) ✗ docker push athena:5000/testapp1:0.1.1
The push refers to a repository [athena:5000/testapp1]
a634f2e80801: Pushed
f43d53ce4f92: Pushed
501307b47dda: Pushed
0.1.1: digest: sha256:27508c97430484cab6cfe56b4562437d24b4f50d17d9387a39957a6278f57045 size: 952
➜ testapp1 git:(master) ✗