forked from OpenTOSCA/container
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
50 lines (37 loc) · 1.91 KB
/
Dockerfile
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM maven:3-jdk-8 as builder
RUN rm /dev/random && ln -s /dev/urandom /dev/random
WORKDIR /opt/opentosca/container
COPY . /opt/opentosca/container
RUN mvn package
FROM openjdk:8
LABEL maintainer "Johannes Wettinger <[email protected]>, Michael Wurster <[email protected]>"
ARG DOCKERIZE_VERSION=v0.3.0
ENV PUBLIC_HOSTNAME localhost
ENV CONTAINER_REPOSITORY_HOSTNAME localhost
ENV CONTAINER_REPOSITORY_PORT 8091
ENV ENGINE_IA_HOSTNAME localhost
ENV ENGINE_IA_USER_NAME admin
ENV ENGINE_IA_PWD admin
ENV ENGINE_PLAN_BPEL ODE
ENV ENGINE_PLAN_BPEL_ROOT_URL http://localhost:9763/ode
ENV ENGINE_PLAN_BPEL_SERVICES_URL http://localhost:9763/ode/processes
ENV ENGINE_PLAN_BPMN Camunda
ENV ENGINE_PLAN_BPMN_ROOT_URL http://localhost:8092/engine-rest
ENV COLLABORATION_MODE false
ENV COLLABORATION_HOSTNAMES ""
ENV COLLABORATION_PORTS ""
ENV CONTAINER_BUS_MANAGEMENT_MOCK false
RUN rm /dev/random && ln -s /dev/urandom /dev/random \
&& wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
COPY --from=builder /opt/opentosca/container/org.opentosca.container.product/target/products/org.opentosca.container.product/linux/gtk/x86_64 /opt/opentosca/container
WORKDIR /opt/opentosca/container
RUN ln -s /opt/opentosca/container/OpenTOSCA /usr/local/bin/opentosca-container \
&& chmod +x /usr/local/bin/opentosca-container
ADD docker/config.ini.tpl /opt/opentosca/container/config.ini.tpl
ADD docker/OpenTOSCA.ini.tpl /opt/opentosca/container/OpenTOSCA.ini.tpl
EXPOSE 1337
CMD dockerize -template /opt/opentosca/container/config.ini.tpl:/opt/opentosca/container/configuration/config.ini \
-template /opt/opentosca/container/OpenTOSCA.ini.tpl:/opt/opentosca/container/OpenTOSCA.ini \
/usr/local/bin/opentosca-container