Skip to content

Commit fa5b5b1

Browse files
Merge pull request #8 from TateMinch/main
Changed to jib for image creation
2 parents fe3745d + 0efc9b3 commit fa5b5b1

File tree

5 files changed

+15
-47
lines changed

5 files changed

+15
-47
lines changed

Dockerfile

Lines changed: 0 additions & 10 deletions
This file was deleted.

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ services:
1515
- "3307:3306"
1616

1717
todo-app:
18-
image: openjdk:17
18+
image: todo-app:0.0.1-SNAPSHOT
1919
restart: always
2020
ports:
2121
- "8080:8080"

pom.xml

Lines changed: 12 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -46,43 +46,23 @@
4646
<groupId>org.springframework.boot</groupId>
4747
<artifactId>spring-boot-maven-plugin</artifactId>
4848
<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>
5749
</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+
5862
<plugin>
5963
<groupId>org.apache.maven.plugins</groupId>
6064
<version>1.1</version>
6165
<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>
8666
</plugin>
8767
</plugins>
8868
</build>

scripts/build_docker.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

scripts/test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/bash
12
cd ..
2-
mvn install -DskipTests
3+
mvn compile jib:dockerBuild
34
docker compose up --build

0 commit comments

Comments
 (0)