File tree Expand file tree Collapse file tree 5 files changed +15
-47
lines changed Expand file tree Collapse file tree 5 files changed +15
-47
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ services:
15
15
- " 3307:3306"
16
16
17
17
todo-app :
18
- image : openjdk:17
18
+ image : todo-app:0.0.1-SNAPSHOT
19
19
restart : always
20
20
ports :
21
21
- " 8080:8080"
Original file line number Diff line number Diff line change 46
46
<groupId >org.springframework.boot</groupId >
47
47
<artifactId >spring-boot-maven-plugin</artifactId >
48
48
<version >3.1.0</version >
49
- <executions >
50
- <execution >
51
- <phase >verify</phase >
52
- <goals >
53
- <goal >repackage</goal >
54
- </goals >
55
- </execution >
56
- </executions >
57
49
</plugin >
50
+
51
+ <plugin >
52
+ <groupId >com.google.cloud.tools</groupId >
53
+ <artifactId >jib-maven-plugin</artifactId >
54
+ <version >2.8.0</version >
55
+ <configuration >
56
+ <from >
57
+ <image >openjdk:17</image >
58
+ </from >
59
+ </configuration >
60
+ </plugin >
61
+
58
62
<plugin >
59
63
<groupId >org.apache.maven.plugins</groupId >
60
64
<version >1.1</version >
61
65
<artifactId >maven-dependency-plugin</artifactId >
62
- </plugin >
63
- <plugin >
64
- <groupId >org.codehaus.mojo</groupId >
65
- <artifactId >exec-maven-plugin</artifactId >
66
- <executions >
67
- <execution >
68
- <id >build</id >
69
- <phase >verify</phase >
70
- <goals >
71
- <goal >exec</goal >
72
- </goals >
73
- <configuration >
74
- <executable >bash</executable >
75
- <arguments >
76
- <argument >${basedir} /scripts/build_docker.sh</argument >
77
- <argument >openjdk:17</argument >
78
- <argument >${project.artifactId} -${project.version} </argument >
79
- <argument >bandwidth-docker.jfrog.io</argument >
80
- <argument >${project.artifactId} </argument >
81
- <argument >1.0</argument >
82
- </arguments >
83
- </configuration >
84
- </execution >
85
- </executions >
86
66
</plugin >
87
67
</plugins >
88
68
</build >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
1
2
cd ..
2
- mvn install -DskipTests
3
+ mvn compile jib:dockerBuild
3
4
docker compose up --build
You can’t perform that action at this time.
0 commit comments