Skip to content

Commit 8576ab0

Browse files
committed
update hefquin-docker to build the uber war
1 parent 4f1ed4c commit 8576ab0

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

hefquin-docker/Dockerfile

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ RUN sh -c '\
2323
else \
2424
echo "No specific tag supplied, using the latest version"; \
2525
fi'
26-
RUN mvn clean package
26+
27+
# Build only the uber war
28+
RUN mvn clean install
29+
RUN mvn package -pl hefquin-service -P build-war
2730

2831
# # Use tomcat:latest for running
2932
FROM tomcat:latest

hefquin-docker/docker-compose.yml

+7-8
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ services:
1111
# TAG: docker-test
1212
ports:
1313
- "8080:8080"
14-
volumes:
15-
### If you want to use configuration files other than the default ones
16-
### or a federation description other than the default one, uncomment
17-
### the following three lines and change their respective first parts
18-
### to refer to the files that you want to use.
19-
#- ../hefquin-service/src/main/resources/config.properties:/usr/local/tomcat/webapps/ROOT/config.properties
20-
#- ../hefquin-service/src/main/resources/DefaultEngineConf.ttl:/usr/local/tomcat/webapps/ROOT/ExampleEngineConf.ttl
21-
#- ../hefquin-service/src/main/resources/DefaultFedConf.ttl:/usr/local/tomcat/webapps/ROOT/ExampleFedConf.ttl
14+
### If you want to use configuration files other than the default ones
15+
### or a federation description other than the default one, uncomment
16+
### the following three lines and change their respective first parts
17+
### to refer to the files that you want to use.
18+
#volumes:
19+
#- ../hefquin-service/src/main/resources/DefaultEngineConf.ttl:/usr/local/tomcat/webapps/ROOT/DefaultEngineConf.ttl
20+
#- ../hefquin-service/src/main/resources/DefaultFedConf.ttl:/usr/local/tomcat/webapps/ROOT/DefaultFedConf.ttl

0 commit comments

Comments
 (0)