1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 22:32:14 +00:00

Add build-moby and run-moby to start

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-05-03 15:40:30 +10:00
parent af965e9446
commit a366336895
10 changed files with 196 additions and 109 deletions

20
scripts/moby/Dockerfile Normal file
View 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

View File

@@ -0,0 +1,13 @@
kernel:
image: "linuxkit/kernel:4.9.x"
# cmdline: "debug ignore_loglevel log_buf_len=10M print_fatal_signals=1 LOGLEVEL=8 earlyprintk sched_debug initcall_debug option.debug=Y break=y console=ttyS0 console=tty0 console=tty1 page_poison=1 printk.devkmsg=on rancher.debug=true rancher.password=rancher rancher.autologin=ttyS0 rancher.autologin=tty0 rancher.autologin=tty1"
cmdline: 'printk.devkmsg=on rancher.debug=true rancher.password=rancher console=ttyS0 rancher.autologin=ttyS0 console=tty0 rancher.autologin=tty0 console=tty1 rancher.autologin=tty1 rancher.state.dev=LABEL=RANCHER_STATE rancher.state.autoformat=[/dev/sda,/dev/vda] rancher.rm_usr'
init:
- zombie/os
# - rancher/os-installer
# - rancher/os-initrd
outputs:
- format: kernel+initrd
- format: iso-bios
# - format: iso-efi
# - format: gcp-img