File tree Expand file tree Collapse file tree 4 files changed +45
-1
lines changed
Expand file tree Collapse file tree 4 files changed +45
-1
lines changed Original file line number Diff line number Diff line change 22.idea
33nbproject
44/backup /*
5- /code /*
5+ /code /*
6+ /docker /sourcecode /code /*
Original file line number Diff line number Diff line change 1+ # ++++++++++++++++++++++++++++++++++++++
2+ # Storage Docker container
3+ # ++++++++++++++++++++++++++++++++++++++
4+ #
5+ # Official images:
6+ #
7+ # ubuntu:14.04 - PHP 5.5, LTS (trusty)
8+ # https://hub.docker.com/r/library/ubuntu/
9+ #
10+ # ++++++++++++++++++++++++++++++++++++++
11+
12+ FROM ubuntu:14.04
13+
14+ ADD entrypoint.sh /entrypoint.sh
15+
16+ RUN mkdir -p /docker/code/
17+ RUN chmod -R 777 /docker/code/
18+
19+ COPY code /docker/code/
20+
21+ VOLUME "/docker/code/"
22+
23+ ENTRYPOINT ["/entrypoint.sh" ]
24+ CMD ["noop" ]
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ trap ' echo sigterm ; exit' SIGTERM
4+ trap ' echo sigkill ; exit' SIGKILL
5+
6+ # Fix code rights
7+ chown -R " $EFFECTIVE_UID " :" $EFFECTIVE_GID " /docker/code/
8+
9+ # ############################
10+ # # COMMAND
11+ # ############################
12+
13+ if [ " $1 " = ' noop' ]; then
14+ while true ; do
15+ sleep 1
16+ done
17+ fi
18+
19+ exec " $@ "
You can’t perform that action at this time.
0 commit comments