Skip to content

Commit

Permalink
fix: use bitnami's image instead of building it
Browse files Browse the repository at this point in the history
Signed-off-by: WoodenMaiden <yann.pomie@laposte.net>
  • Loading branch information
WoodenMaiden committed Jun 3, 2024
1 parent 14fc759 commit d19e12c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion agrold-javaweb/.vscode.template/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"maven.terminal.favorites": [
{
"command": "package docker:build docker:start docker:watch",
"command": "package docker:start",
"debug": false,
"alias": "Run in container"
}
Expand Down
4 changes: 0 additions & 4 deletions agrold-javaweb/nbactions.template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@
</packagings>
<goals>
<goal>package</goal>
<goal>docker:build</goal>
<goal>docker:start</goal>
<goal>docker:watch</goal>
</goals>
</action>


</actions>
20 changes: 15 additions & 5 deletions agrold-javaweb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@
</dependency>
</dependencies>



<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -183,13 +185,10 @@
<version>0.43.4</version>
<configuration>
<keepContainer>false</keepContainer>
<logDate>default</logDate>
<images>
<image>
<name>ghcr.io/southgreenplatform/agrold</name>
<build>
<contextDir>${project.basedir}</contextDir>
<dockerFile>${project.basedir}/Dockerfile</dockerFile>
</build>
<name>bitnami/tomcat:9.0</name>
<run>
<ports>
<port>8080:8080</port>
Expand All @@ -200,6 +199,17 @@
<TOMCAT_PASSWORD>password</TOMCAT_PASSWORD>
<CATALINA_OPTS>${CATALINA_OPTS}</CATALINA_OPTS>
</env>
<volumes>
<bind>
<volume>${project.basedir}/target/${agrold.name}:/opt/bitnami/tomcat/webapps_default/${agrold.name}</volume>
</bind>
</volumes>
<log>
<enabled>true</enabled>
<prefix>Agrold @ %a &gt;&#160;</prefix>
<date>NONE</date>
<color>CYAN</color>
</log>
</run>
</image>
</images>
Expand Down

0 comments on commit d19e12c

Please sign in to comment.