Supporting both CE and PE
This commit is contained in:
parent
a67ac1f1bd
commit
b1851f461e
12
Dockerfile
12
Dockerfile
|
@ -1,11 +1,17 @@
|
||||||
FROM tomcat:alpine
|
FROM tomcat:alpine
|
||||||
|
|
||||||
|
ARG tag
|
||||||
|
ARG build
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
cd /tmp \
|
cd /tmp \
|
||||||
&& mkdir orbeon \
|
&& mkdir orbeon \
|
||||||
&& cd orbeon \
|
&& cd orbeon \
|
||||||
&& wget https://github.com/orbeon/orbeon-forms/releases/download/tag-release-2017.2-ce/orbeon-2017.2.201712300816-CE.zip \
|
&& echo "tag: $tag" \
|
||||||
&& unzip orbeon-2017.2.201712300816-CE.zip \
|
&& echo "build: $build" \
|
||||||
&& cd orbeon-2017.2.201712300816-CE \
|
&& wget https://github.com/orbeon/orbeon-forms/releases/download/$tag/$build.zip \
|
||||||
|
&& unzip $build.zip \
|
||||||
|
&& cd $build \
|
||||||
&& unzip orbeon.war \
|
&& unzip orbeon.war \
|
||||||
&& rm -rf /usr/local/tomcat/webapps \
|
&& rm -rf /usr/local/tomcat/webapps \
|
||||||
&& mkdir -p /usr/local/tomcat/webapps/ROOT \
|
&& mkdir -p /usr/local/tomcat/webapps/ROOT \
|
||||||
|
|
|
@ -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"
|
|
@ -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
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
version: "3"
|
|
||||||
services:
|
|
||||||
servlet:
|
|
||||||
build: .
|
|
||||||
ports:
|
|
||||||
- "8080:8080"
|
|
Loading…
Reference in New Issue