-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathmake-docker
More file actions
executable file
·26 lines (24 loc) · 849 Bytes
/
make-docker
File metadata and controls
executable file
·26 lines (24 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash
if [[ $1 == wildfly ]]; then
AppServer="Wildfly"
Tag="wildfly"
shift
elif [[ $1 == tomee ]]; then
AppServer="TomEE"
Tag="tomee"
shift
elif [[ $1 == glassfish ]]; then
AppServer="Glassfish"
Tag="glassfish"
shift
elif [[ $1 == openliberty ]]; then
AppServer="OpenLiberty"
Tag="openliberty"
shift
else
AppServer="OpenLiberty"
Tag="openliberty"
fi
set -x
# mvn clean dependency:purge-local-repository;
mvn clean -Dmaven.test.skip=true -DskipTests -DskipITs --projects TestUtil,Util,Net,CIMConnector,Ingest,TimeSeries,GridLAB-D,ShortCircuit,MaximumFeedIn,Simulation,Spatial,CIMWeb,CIMEar install; docker build --quiet --file ${AppServer}.Dockerfile --tag derrickoswald/cimapplication:${Tag} .;docker tag derrickoswald/cimapplication:${Tag} derrickoswald/cimapplication:latest