-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
68 lines (49 loc) · 1.92 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
63
64
65
66
67
68
FROM ubuntu:14.04
RUN sudo mkdir /myFiles
#mariadb
RUN sudo apt-get install software-properties-common -y
RUN sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
RUN sudo add-apt-repository 'deb [arch-amd64, i386] http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu trusty main'; exit 0
RUN sudo apt-get install vim -y
RUN sudo apt-get install aptitude -y
RUN sudo apt-get update
RUN sudo apt-get install -y mariadb-server
COPY mysql_secure.sh /myFiles
RUN sudo service mysql start && sh /myFiles/mysql_secure.sh
EXPOSE 13306
EXPOSE 3306
#phpmyadmin
RUN sudo apt-get install php5-fpm php5-mysql php5-mcrypt -y
COPY php.ini /myFiles
RUN sudo php5enmod mcrypt
RUN sudo service php5-fpm restart
RUN sudo apt-get install phpmyadmin -y
#NGINX
RUN sudo apt-get install nginx -y
#link the files in nginx to the repo versions
COPY mime.types /myFiles
COPY nginx.conf /myFiles
COPY default /myFiles
RUN sudo ln -s /usr/share/phpmyadmin /usr/share/nginx/html
RUN sudo service apache2 stop
EXPOSE 80
RUN sudo service nginx restart
RUN sudo service nginx start
COPY services.sh /myFiles
CMD ["sh", "myFiles/services.sh"]
#Sencha Cmd
RUN apt-get install wget
RUN apt-get install unzip
RUN wget http://cdn.sencha.com/cmd/6.0.2/no-jre/SenchaCmd-6.0.2-linux-amd64.sh.zip -P /
RUN unzip /SenchaCmd-6.0.2-linux-amd64.sh.zip
RUN apt-get install default-jre -y
RUN sh SenchaCmd-6.0.2.14-linux-amd64.sh -q
#alternative for sencha
#RUN curl -o /cmd.run.zip http://cdn.sencha.com/cmd/6.0.2.14/SenchaCmd-6.0.2.14-linux-amd64.sh.zip && \
# unzip -p /cmd.run.zip > /cmd-install.run && \
# chmod +x /cmd-install.run && \
# /cmd-install.run -q -dir /opt/Sencha/Cmd/6.0.2.14 && \
# rm /cmd-install.run /cmd.run.zip
RUN apt-get install git -y
RUN git clone https://github.com/FIU-SCIS-Senior-Projects/MobileJudge8.git /MobileJudge8
RUN sudo cp -rf /MobileJudge8/Code/client/build/production/* /usr/share/nginx/html/