Skip to content

Commit ba03038

Browse files
committed
Added Docker containerization support and updated README.
1 parent 19a5895 commit ba03038

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,17 @@ Or simply run it using Maven directly:
4242

4343
### 🐳 Dockerized
4444

45-
[//]: # (TODO: Add Docker instructions)
45+
The app is [published](https://hub.docker.com/r/maslycht/foreign-splitter-java) in Docker Hub and can be run directly:
46+
47+
```shell
48+
docker run -p 8080:8080 maslycht/foreign-splitter-java
49+
```
50+
51+
To build the image locally, run:
52+
53+
```shell
54+
./mvnw compile jib:dockerBuild
55+
```
4656

4757
## 🎥 Demo
4858

pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,20 @@
6363
<groupId>org.springframework.boot</groupId>
6464
<artifactId>spring-boot-maven-plugin</artifactId>
6565
</plugin>
66+
<plugin>
67+
<groupId>com.google.cloud.tools</groupId>
68+
<artifactId>jib-maven-plugin</artifactId>
69+
<version>3.4.4</version>
70+
<configuration>
71+
<to>
72+
<image>docker.io/maslycht/foreign-splitter-java</image>
73+
<tags>
74+
<tag>${project.version}</tag>
75+
<tag>latest</tag>
76+
</tags>
77+
</to>
78+
</configuration>
79+
</plugin>
6680
</plugins>
6781
</build>
6882
<repositories>

0 commit comments

Comments
 (0)