-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
33 lines (24 loc) · 1.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
FROM registry.access.redhat.com/jboss-eap-7/eap72-openshift
USER root
ENV PORT 8080
ENV SSH_PORT 2222
COPY tmp/init_container.sh /bin/init_container.sh
COPY tmp/standalone-full.xml /opt/eap/standalone/configuration/standalone-full.xml
COPY tmp/index.jsp /tmp/wildfly/webapps/ROOT/index.jsp
COPY tmp/sshd_config /etc/ssh/
COPY tmp/ssh_keygen.sh /tmp/ssh_keygen.sh
COPY tmp/centos_7.repo /etc/yum.repos.d/centos_7.repo
# Register with Red Hat, install utilities, unregister
RUN yum install -y openssh-server
RUN yum install -y wget
# Set up SSH keys
RUN chmod 755 /tmp/ssh_keygen.sh
RUN echo "root:Docker!" | chpasswd
RUN sh /tmp/ssh_keygen.sh
# Download AI agent, copy the config file
RUN wget -O /tmp/applicationinsights-agent-3.0.0-PREVIEW.5.jar https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.0.0-PREVIEW.5/applicationinsights-agent-3.0.0-PREVIEW.5.jar
# COPY tmp/AI-Agent.xml /tmp/AI-Agent.xml
# Make directory for deployment tools
RUN mkdir -p /home/site/deployments/tools
EXPOSE 8080 2222
CMD ["sh", "/bin/init_container.sh"]