-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (33 loc) · 1.31 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
FROM ubuntu
COPY tmp/startup.sh startup.sh
#Install Packages
RUN apt-get update -y \
&& apt-get install -y software-properties-common python-software-properties apt-transport-https \
# Install DynomiteDB
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FB3291D9 \
&& add-apt-repository "deb https://apt.dynomitedb.com/ trusty main" \
# Install NodeJS
&& apt-get install -y curl \
&& curl -sL https://deb.nodesource.com/setup_6.x | bash - \
&& apt-get install -y git dynomitedb nodejs build-essential default-jre default-jdk \
# Install Tomcat
&& groupadd tomcat \
&& useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat \
&& cd /tmp \
&& curl -O http://mirrors.ocf.berkeley.edu/apache/tomcat/tomcat-8/v8.5.9/bin/apache-tomcat-8.5.9.tar.gz \
&& mkdir /opt/tomcat \
&& tar -xzvf apache-tomcat-8*tar.gz -C /opt/tomcat --strip-components=1 \
&& rm -rf apache-tomcat-8*tar.gz \
&& cd /opt/tomcat \
&& chgrp -R tomcat /opt/tomcat \
&& chmod -R g+r conf \
&& chmod g+x conf \
&& chown -R tomcat webapps/ work/ temp/ logs/ \
# Install Netflix Conductor
&& mkdir /netflix \
&& cd /netflix \
&& git clone https://github.com/Netflix/conductor.git \
&& cd conductor
# Add Dynomite to the path
EXPOSE 3000 8080
ENTRYPOINT ["/startup.sh"]