added docker sandbox, work in progress

This commit is contained in:
2016-04-08 04:33:24 +02:00
parent 5a6f30ec0f
commit 8bba66dfa7
6 changed files with 141 additions and 0 deletions

10
sandbox/Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM ubuntu:16.04
RUN echo "#!/bin/sh\nexit 101" > /usr/sbin/policy-rc.d
ADD ./sources.list /etc/apt/sources.list
ADD ./run.sh /tmp/run.sh
RUN bash /tmp/run.sh && rm /tmp/run.sh
ADD ./my_init /usr/sbin/my_init
RUN chmod +x /usr/sbin/my_init
CMD /usr/sbin/my_init