Skip to content

Commit 622f868

Browse files
committed
Add Docker build image how-to
Signed-off-by: Victor Rubezhny <[email protected]>
1 parent 855f274 commit 622f868

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

docker/README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Steps to deploy:
2+
3+
* Build
4+
5+
```
6+
podman build -t USER_NAME/fedora-gtk3-mutter-java-node .
7+
```
8+
9+
* Testing the image
10+
11+
```
12+
podman run USER_NAME/fedora-gtk3-mutter-java-node:latest java -version
13+
podman run USER_NAME/fedora-gtk3-mutter-java-node:latest mvn --version
14+
podman run USER_NAME/fedora-gtk3-mutter-java-node:latest node --version
15+
podman run USER_NAME/fedora-gtk3-mutter-java-node:latest npm --version
16+
```
17+
18+
* Assign a tag to the image
19+
20+
```
21+
podman tag localhost/USER_NAME/fedora-gtk3-mutter-java-node:latest docker.io/vrubezhny/fedora-gtk3-mutter-java-node:TAG
22+
```
23+
24+
* Login
25+
26+
```
27+
podman login docker.io
28+
```
29+
30+
* Deploy
31+
32+
```
33+
podman push docker.io/USER_NAME/fedora-gtk3-mutter-java-node:TAG
34+
```
35+
36+
**Note:**
37+
38+
USER_NAME in used in various Jenkins files and configs. If new image is published by another user this has to be changed in various existing Jenkins files and configs in order the correct image to be taken into account.

0 commit comments

Comments
 (0)