forked from cloudacademy/devops-webapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (18 loc) · 844 Bytes
/
Copy pathDockerfile
File metadata and controls
25 lines (18 loc) · 844 Bytes
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
FROM tomcat:9.0.35-jdk8-openjdk
LABEL maintainer="jeremy.cook@cloudacademy.com"
COPY splunkforwarder-7.2.1-be11b2c46e23-linux-2.6-amd64.deb /tmp
RUN apt-get -y update
RUN apt-get -y install procps
RUN apt-get -y install vim
RUN apt-get -y install supervisor
RUN dpkg -i /tmp/splunkforwarder-7.2.1-be11b2c46e23-linux-2.6-amd64.deb
RUN /opt/splunkforwarder/bin/splunk start --accept-license --answer-yes --auto-ports --no-prompt
COPY inputs.conf /opt/splunkforwarder/etc/system/local
COPY outputs.conf /opt/splunkforwarder/etc/system/local
COPY user-seed.conf /opt/splunkforwarder/etc/system/local
RUN mkdir -p /var/log/webapp
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY *.war /usr/local/tomcat/webapps/
#COPY webapp-1.0.war /usr/local/tomcat/webapps/
#CMD ["catalina.sh", "run"]
ENTRYPOINT ["/usr/bin/supervisord"]