Supporting both CE and PE

This commit is contained in:
Eric van der Vlist 2018-02-14 18:21:12 +01:00
parent a67ac1f1bd
commit b1851f461e
4 changed files with 39 additions and 9 deletions

View File

@ -1,11 +1,17 @@
FROM tomcat:alpine
ARG tag
ARG build
RUN \
cd /tmp \
&& mkdir orbeon \
&& cd orbeon \
&& wget https://github.com/orbeon/orbeon-forms/releases/download/tag-release-2017.2-ce/orbeon-2017.2.201712300816-CE.zip \
&& unzip orbeon-2017.2.201712300816-CE.zip \
&& cd orbeon-2017.2.201712300816-CE \
&& echo "tag: $tag" \
&& echo "build: $build" \
&& wget https://github.com/orbeon/orbeon-forms/releases/download/$tag/$build.zip \
&& unzip $build.zip \
&& cd $build \
&& unzip orbeon.war \
&& rm -rf /usr/local/tomcat/webapps \
&& mkdir -p /usr/local/tomcat/webapps/ROOT \

11
docker-compose-ce.yml Normal file
View File

@ -0,0 +1,11 @@
version: "3"
services:
servlet:
build:
context: .
args:
tag: "tag-release-2017.2-ce"
build: "orbeon-2017.2.201712300816-CE"
image: orbeon-ce
ports:
- "8080:8080"

19
docker-compose-pe.yml Normal file
View File

@ -0,0 +1,19 @@
version: "3.3"
services:
servlet:
build:
context: .
args:
tag: "tag-release-2017.2-ce"
build: "orbeon-2017.2.201712300806-PE"
image: orbeon-pe
secrets:
- source: license
target: /usr/local/tomcat/webapps/ROOT/WEB-INF/resources/config/license.xml
ports:
- "8080:8080"
secrets:
license:
file: ~/.orbeon/license.xml

View File

@ -1,6 +0,0 @@
version: "3"
services:
servlet:
build: .
ports:
- "8080:8080"