-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
51 lines (39 loc) · 1.89 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
FROM tomcat:9.0-alpine
LABEL maintainer="[email protected]"
EXPOSE 5200 5100
ENV CODEBASE_URL file:/root/Protege_3.5/protege.jar
ENV EAM_VERSION 615
# Install some tools
RUN apk update
RUN apk add ca-certificates wget graphviz
RUN update-ca-certificates
# Install Protege Server
RUN wget --tries=3 --progress=bar:force:noscroll https://essential-cdn.s3.eu-west-2.amazonaws.com/protege/install_protege_3.5-Linux64-noJVM.bin
COPY support/protege-response.txt ./
RUN chmod u+x install_protege_3.5-Linux64-noJVM.bin
RUN ./install_protege_3.5-Linux64-noJVM.bin -i console -f protege-response.txt
RUN rm protege-response.txt
RUN rm install_protege_3.5-Linux64-noJVM.bin
# Install EssentialEAM Installer
RUN wget --tries=3 --progress=bar:force:noscroll https://essential-cdn.s3.eu-west-2.amazonaws.com/essential-widgets/essentialinstallupgrade67.jar
COPY support/auto-install.xml ./
RUN java -jar essentialinstallupgrade67.jar auto-install.xml
# Install Essential View and Import Utilities
RUN wget --tries=3 --progress=bar:force:noscroll https://essential-cdn.s3.eu-west-2.amazonaws.com/viewer/essential_viewer_6156.war
RUN wget --tries=3 --progress=bar:force:noscroll https://essential-cdn.s3.eu-west-2.amazonaws.com/import-utility/essential_import_utility_256.war
RUN mv essential_viewer_6156.war /usr/local/tomcat/webapps/essential_viewer.war
RUN mv essential_import_utility_256.war /usr/local/tomcat/webapps/essential_import_utility.war
# Copy data & startup scripts
COPY server/* /opt/essentialAM/server/
COPY repo/* /opt/essentialAM/
COPY support/startup.sh /
COPY support/run_protege_server_fix.sh /
# Setup Environment
ENV CATALINA_OPTS="-Xms1G -Xmx2G"
ENV JAVA_HOME /usr/lib/jvm/default-jvm
WORKDIR /root/Protege_3.5/
# Set Execute Permissions on scripts
RUN chmod +x /startup.sh
RUN chmod +x /run_protege_server_fix.sh
# Startup the services
CMD ["/startup.sh"]