This commit is contained in:
Tommy Parnell
2017-02-23 12:23:28 -05:00
commit 33f642c127
3 changed files with 64 additions and 0 deletions

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM ubuntu:trusty
RUN apt-get update
RUN apt-get install -y --no-install-recommends \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
RUN curl -fsSL https://apt.dockerproject.org/gpg | sudo apt-key add -
RUN add-apt-repository \
"deb https://apt.dockerproject.org/repo/ \
ubuntu-$(lsb_release -cs) \
main"
RUN apt-get update
RUN apt-get -y install docker-engine
ADD start.sh .
ENTRYPOINT ./start.sh

43
rc.local Normal file
View File

@@ -0,0 +1,43 @@
#! /bin/sh
### BEGIN INIT INFO
# Provides: rc.local
# Required-Start: $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Run /etc/rc.local if it exist
### END INIT INFO
PATH=/sbin:/usr/sbin:/bin:/usr/bin
. /lib/init/vars.sh
. /lib/lsb/init-functions
do_start() {
if [ -x /etc/rc.local ]; then
[ "$VERBOSE" != no ] && log_begin_msg "Running local boot scripts (/etc/rc.local)"
/etc/rc.local
ES=$?
[ "$VERBOSE" != no ] && log_end_msg $ES
return $ES
fi
}
case "$1" in
start)
do_start
;;
restart|reload|force-reload)
echo "Error: argument '$1' not supported" >&2
exit 3
;;
stop)
;;
*)
echo "Usage: $0 start|stop" >&2
exit 3
;;
esac
service docker start
exit 0

3
start.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
service docker start
#run other things