-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
62 lines (45 loc) · 2.1 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
51
52
53
54
55
56
57
58
59
60
61
62
###############################################################
# Dockerfile that provides the image for JBoss jBPM Server Full
###############################################################
####### BASE ############
FROM jboss/wildfly:19.1.0.Final
####### MAINTAINER ############
MAINTAINER "Michael Biarnes Kiefer" "[email protected]"
####### ENVIRONMENT ############
ENV JBOSS_BIND_ADDRESS 0.0.0.0
ENV KIE_REPOSITORY https://download.jboss.org/jbpm/release
ENV KIE_VERSION 7.43.0.Final
ENV KIE_CLASSIFIER wildfly19
ENV KIE_CONTEXT_PATH business-central
ENV KIE_SERVER_ID sample-server
ENV KIE_SERVER_LOCATION http://localhost:8080/kie-server/services/rest/server
ENV EXTRA_OPTS -Dorg.jbpm.ht.admin.group=admin -Dorg.uberfire.nio.git.ssh.host=$JBOSS_BIND_ADDRESS
######### install git #######
####### JBPM-WB ############
RUN curl -o $HOME/jbpm-server-dist.zip $KIE_REPOSITORY/$KIE_VERSION/jbpm-server-$KIE_VERSION-dist.zip && \
unzip -o -q jbpm-server-dist.zip -d $JBOSS_HOME && \
rm -rf $HOME/jbpm-server-dist.zip
####### CONFIGURATION ############
USER root
RUN useradd -ms /bin/bash bpmnrh
RUN (echo 'somepassword'; echo 'somepassword') | passwd bpmnrh
RUN mkdir -p /home/bpmnrh/git
RUN chown bpmnrh /home/bpmnrh/git
## RUN yum update -y
## RUN yum install -y sudo
RUN yum install -y git
ADD etc/start_jbpm-wb.sh $JBOSS_HOME/bin/start_jbpm-wb.sh
ADD etc/update_db_config.sh $JBOSS_HOME/bin/update_db_config.sh
RUN chown jboss:jboss $JBOSS_HOME/standalone/deployments/*
RUN chown jboss:jboss $JBOSS_HOME/bin/start_jbpm-wb.sh
RUN chown jboss:jboss $JBOSS_HOME/bin/update_db_config.sh
RUN sed -i '/<property name="org.kie.server.location" value="http:\/\/localhost:8080\/kie-server\/services\/rest\/server"\/>/d' $JBOSS_HOME/standalone/configuration/standalone.xml
RUN sed -i '/<property name="org.kie.server.id" value="sample-server"\/>/d' $JBOSS_HOME/standalone/configuration/standalone.xml
####### CUSTOM JBOSS USER ############
# Switchback to jboss user
USER jboss
####### EXPOSE INTERNAL JBPM GIT PORT ############
EXPOSE 8001
####### RUNNING JBPM-WB ############
WORKDIR $JBOSS_HOME/bin/
CMD ["./start_jbpm-wb.sh"]