mirror of
https://github.com/rancher/os.git
synced 2025-09-01 14:48:55 +00:00
Add build-moby and run-moby to start
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
20
scripts/moby/Dockerfile
Normal file
20
scripts/moby/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM rancher/os
|
||||
|
||||
# replace this with `rancher/os-initrd`
|
||||
RUN mkdir /tmp/initrd \
|
||||
&& cd /tmp/initrd \
|
||||
&& cat /dist/initrd-* | gunzip | cpio -i \
|
||||
&& rm -rf usr/lib \
|
||||
&& rm /tmp/initrd/usr/var/lib/cni/bin/host-local /tmp/initrd/usr/var/lib/cni/bin/bridge \
|
||||
&& mkdir -p /tmp/initrd/var/lib/cni/bin \
|
||||
&& ln -s ../../../../usr/bin/ros /tmp/initrd/var/lib/cni/bin/host-local \
|
||||
&& ln -s ../../../../usr/bin/ros /tmp/initrd/var/lib/cni/bin/bridge \
|
||||
&& cp -r --update --dereference --force /tmp/initrd/* / \
|
||||
&& cd / \
|
||||
&& rm -rf /tmp/initrd
|
||||
|
||||
#FROM rancher/os-installer
|
||||
#RUN cp /bin/ros /init
|
||||
|
||||
#FROM rancher/os-installer
|
||||
#RUN cp /bin/ros /init
|
Reference in New Issue
Block a user