Skip to content

Commit 8f38c27

Browse files
committed
Docker
1 parent 2347afc commit 8f38c27

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ services:
33

44
mariadb:
55
image: mariadb:10.6.1
6+
network_mode: host
67
ports:
78
- 3306:3306
89
environment:

pom.xml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,27 @@
155155
</excludes>
156156
</configuration>
157157
</plugin>
158+
<plugin>
159+
<groupId>com.google.cloud.tools</groupId>
160+
<artifactId>jib-maven-plugin</artifactId>
161+
<version>3.1.4</version>
162+
<configuration>
163+
<from>
164+
<image>openjdk:16</image>
165+
</from>
166+
<to>
167+
<image>com.github.throyer.common.spring-boot.${project.artifactId}:${project.version}</image>
168+
</to>
169+
<container>
170+
<creationTime>${maven.build.timestamp}</creationTime>
171+
<ports>
172+
<port>8080</port>
173+
</ports>
174+
</container>
175+
<allowInsecureRegistries>true</allowInsecureRegistries>
176+
</configuration>
177+
</plugin>
158178
</plugins>
159179
</build>
160180

161-
</project>
181+
</project>

0 commit comments

Comments
 (0)