Skip to content

Commit 2ed5222

Browse files
author
Reza Rahman
committed
Deploy to / on the cloud.
1 parent 8fb8ee4 commit 2ed5222

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

Dockerfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
FROM payara/server-full
22

33
COPY target/postgresql.jar /tmp
4-
COPY target/cargo-tracker.war $DEPLOY_DIR
5-
6-
RUN echo 'add-library /tmp/postgresql.jar' > $POSTBOOT_COMMANDS
4+
COPY target/cargo-tracker.war /tmp
5+
COPY post-boot-commands.asadmin /opt/payara/config/

pom.xml

+4-6
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@
3939
<junit.version>4.13.1</junit.version>
4040
<hamcrest.version>2.2</hamcrest.version>
4141
<assertj.version>3.18.1</assertj.version>
42-
43-
<!-- Application properties -->
44-
<webapp.graphTraversalUrl>
45-
http://localhost:8080/cargo-tracker/rest/graph-traversal/shortest-path
46-
</webapp.graphTraversalUrl>
4742
</properties>
4843

4944
<dependencyManagement>
@@ -174,7 +169,9 @@
174169
<activeByDefault>true</activeByDefault>
175170
</activation>
176171
<properties>
177-
<payara.version>5.2021.2</payara.version>
172+
<payara.version>5.2021.2</payara.version>
173+
<!-- Application properties -->
174+
<webapp.graphTraversalUrl>http://localhost:8080/cargo-tracker/rest/graph-traversal/shortest-path</webapp.graphTraversalUrl>
178175
<db.driverClass>org.h2.jdbcx.JdbcDataSource</db.driverClass>
179176
<!-- H2 file engine requires an absolute path, eg. ~/name, ./name or a full-qualified
180177
path name (it should include driver name under Windows). -->
@@ -269,6 +266,7 @@
269266
</activation>
270267
<properties>
271268
<payara.version>5.2021.2</payara.version>
269+
<webapp.graphTraversalUrl>http://localhost:8080/rest/graph-traversal/shortest-path</webapp.graphTraversalUrl>
272270
<db.driverClass>org.postgresql.ds.PGPoolingDataSource</db.driverClass>
273271
<!-- Pass in via command line (e.g. mvn clean package -Pcloud -DpostgreSqlJdbcUrl=jdbc:postgresql://localhost:5432/postgres?user=postgres). -->
274272
<db.jdbcUrl>${postgreSqlJdbcUrl}</db.jdbcUrl>

post-boot-commands.asadmin

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
add-library /tmp/postgresql.jar
2+
deploy --name cargo-tracker --contextroot / /tmp/cargo-tracker.war

0 commit comments

Comments
 (0)