Dockerfile 652 B

123456789101112131415161718192021
  1. FROM rancher/os
  2. # replace this with `rancher/os-initrd`
  3. RUN mkdir /tmp/initrd \
  4. && cd /tmp/initrd \
  5. && cat /dist/initrd-* | gunzip | cpio -i \
  6. && rm -rf usr/lib \
  7. && rm /tmp/initrd/usr/var/lib/cni/bin/host-local /tmp/initrd/usr/var/lib/cni/bin/bridge \
  8. && mkdir -p /tmp/initrd/var/lib/cni/bin \
  9. && ln -s ../../../../usr/bin/ros /tmp/initrd/var/lib/cni/bin/host-local \
  10. && ln -s ../../../../usr/bin/ros /tmp/initrd/var/lib/cni/bin/bridge \
  11. && cp -r --update --dereference --force /tmp/initrd/* / \
  12. && cd / \
  13. && rm -rf /tmp/initrd
  14. #FROM rancher/os-installer
  15. #RUN cp /bin/ros /init
  16. #FROM rancher/os-installer
  17. #RUN cp /bin/ros /init