-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
70 lines (53 loc) · 1.57 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
69
FROM oacis/oacis:latest
#FROM ruby:2.3.3
MAINTAINER kamiya <k14041kk@aitech.ac.jp>
ENV DEBIAN_FRONTEND noninteractive
#PHP install
USER root
#RUN apt-get -y -f remove libzip2
RUN apt-get update -y
RUN apt-get -y install apt-utils
#URL=>http://obel.hatenablog.jp/entry/20160311/1457644814
RUN echo deb http://packages.dotdeb.org jessie all >> /etc/apt/sources.list
RUN wget https://www.dotdeb.org/dotdeb.gpg
RUN apt-key add dotdeb.gpg
RUN apt-get -y update
RUN apt-get -y install php
RUN apt-get -y install php-mbstring
RUN apt-get -y install libzip2
RUN apt-get -y install php7.0-zip
#RUN apt-get -y install php-curl
#ADF
RUN mkdir /home/oacis/adf
RUN mkdir /home/oacis/adf/rrsenv
WORKDIR /home/oacis/adf
RUN git clone https://github.com/tkmnet/rrsenv.git
#RUN mkdir ./rrsenv/init.sh
RUN ./rrsenv/init.sh || true
#ADF-Oacis
#RUN mkdir /home/oacis/adf
RUN mkdir /home/oacis/adf/src
COPY src /home/oacis/adf/src/
RUN mkdir /home/oacis/adf/ruby
COPY ruby /home/oacis/adf/ruby/
RUN mkdir /home/oacis/adf/public
COPY public /home/oacis/adf/public/
COPY composer.json /home/oacis/adf/
COPY setup.sh /home/oacis/adf/
COPY docker_php_server.sh /home/oacis/adf/
COPY php.ini /home/oacis/adf/
COPY server_r_p.sh /home/oacis/adf/
#PHP Setup
#USER root
#WORKDIR /home/oacis/adf
RUN /home/oacis/adf/setup.sh
#RUN mkdir /home/oacis/adf/rrsenv
#RUN mkdir /home/oacis/adf/rrsenv/MAP
#RUN mkdir /home/oacis/adf/rrsenv/AGENT
WORKDIR /home/oacis
EXPOSE 6040
VOLUME /home/oacis/adf/src
VOLUME /home/oacis/adf/public
VOLUME /home/oacis/adf/ruby
#WORKDIR /home/oacis/adf
CMD ["/home/oacis/adf/server_r_p.sh"]