Replace mkinitrd.sh with a tool to convert base image to initrd

Better split between content and tools.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack
2017-02-01 22:32:34 +00:00
parent 2e39ad92e2
commit 9fe9e95349
6 changed files with 93 additions and 51 deletions

View File

@@ -1,7 +1,5 @@
FROM mobylinux/alpine-base:5837a236153f00bb215642e3e0639252eb49cdf9@sha256:f6f12aebe2af07c9250014ff283485dbdf082bd9cfbd74aad27a3d2dcf13e0b1
ENV ARCH=x86_64
RUN \
addgroup -g 50 docker && \
adduser -G docker -u 1001 -s /bin/sh -D -g "Docker" docker && \
@@ -9,7 +7,6 @@ RUN \
adduser -D -H -s /sbin/nologin dockremap
COPY . .
RUN rm Dockerfile
RUN \
rc-update add sysctl boot && \
@@ -59,5 +56,3 @@ RUN \
rc-update add gcp-hostname default && \
rc-update add gcp-startup default && \
true
CMD ["/mkinitrd.sh"]