forked from afewell/gitmir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
48 lines (41 loc) · 1.63 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
#
# Modified Ubuntu Dockerfile
#
# was originally based on https://github.com/dockerfile/ubuntu
#
# Pull base image.
FROM httpd:2.4
# Install.
RUN \
sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \
apt-get update && \
apt-get -y upgrade && \
apt-get install -y curl git nano jq && \
rm -rf /var/lib/apt/lists/*
# Add files.
ADD root/.gitmir0.11.sh /usr/local/bin/gitmir
ADD root/.initGitmirGlobalCall.sh /usr/local/bin/initGitmirGlobalCall
ADD root/.initGitmirLocalCall.sh /usr/local/bin/initGitmirLocalCall
ADD root/.feederFile.json /gitmir/feederFile.json
ADD root/.gitmirhalist.json /gitmir/gitmirhalist.json
ADD root/.start.sh /gitmir/start.sh
ADD root/.httpd.conf /usr/local/apache2/conf/httpd.conf
ADD root/.callGitmir.cgi /usr/local/apache2/cgi-bin/callGitmir.cgi
ADD root/.initGitmirGlobalCall.cgi /usr/local/apache2/cgi-bin/initGitmirGlobalCall.cgi
ADD root/.initGitmirLocalCall.cgi /usr/local/apache2/cgi-bin/initGitmirLocalCall.cgi
RUN curl https://pksninja-bucket.s3.us-east-2.amazonaws.com/gitmir-github-api -o /gitmir/.token
ADD root/.index.html /usr/local/apache2/htdocs/index.html
#Set gitmir as executable
RUN chmod 755 /usr/local/bin/gitmir
RUN chmod 755 /gitmir/start.sh
RUN chmod 755 /usr/local/bin/initGitmirGlobalCall
RUN chmod 755 /usr/local/bin/initGitmirLocalCall
RUN chmod 755 /usr/local/apache2/cgi-bin/callGitmir.cgi
RUN chmod -R 755 /usr/local/apache2/htdocs
RUN chmod -R 755 /gitmir
RUN chmod -R 755 /usr/local/apache2/cgi-bin
RUN chown -R daemon:daemon /usr/local/apache2/htdocs/
RUN chown -R daemon:daemon /usr/local/apache2/cgi-bin/
RUN chown -R daemon:daemon /gitmir/
EXPOSE 80
CMD /gitmir/start.sh