1
0
mirror of https://github.com/rancher/os.git synced 2025-09-16 15:09:27 +00:00

Build script changes

This commit is contained in:
Darren Shepherd
2015-02-19 11:26:59 -07:00
parent 7c17cc7825
commit 6e87ea3981
11 changed files with 62 additions and 26 deletions

View File

@@ -1,3 +1,23 @@
FROM scratch
ADD build/dist/rootfs.tar /
ADD assets/rootfs.tar /
# Cleanup Buildroot
RUN rm /sbin/poweroff /sbin/reboot /sbin/halt && \
sed -i '/^root/s!/bin/sh!/bin/bash!' /etc/passwd && \
echo -e 'RancherOS\n' > /etc/issue && \
rm /run \
/linuxrc \
/etc/os-release \
/var/cache \
/var/lock \
/var/log \
/var/run \
/var/spool \
/var/lib/misc && \
mkdir -p \
/run \
/var/cache \
/var/lock \
/var/log \
/var/run \
/var/spool
CMD ["/bin/sh"]

View File

@@ -1,6 +1,2 @@
FROM base
VOLUME /home
VOLUME /opt
VOLUME /var/lib/docker
VOLUME /var/run
CMD ["echo"]

View File

@@ -1,4 +1,4 @@
FROM base
COPY scripts/dockerimages/scripts/docker.sh /
COPY build/initrd/ca.crt /etc/ssl/certs/ca-certificates.crt
COPY assets/ca.crt /etc/ssl/certs/ca-certificates.crt
CMD ["/docker.sh"]

View File

@@ -1,6 +1,3 @@
FROM base
RUN rm /sbin/poweroff /sbin/reboot /sbin/halt
RUN sed -i '/^root/s!/bin/sh!/bin/bash!' /etc/passwd
RUN echo -e 'RancherOS\n' > /etc/issue
COPY scripts/dockerimages/scripts/console.sh /
CMD ["/console.sh"]
COPY scripts/dockerimages/scripts/console.sh /usr/sbin/
CMD ["/usr/sbin/console.sh"]