BaseDockerfile.amd64 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. FROM alpine
  2. # TODO: redo as cross platform, and without git etc :)
  3. ARG VERSION
  4. ARG KERNEL_VERSION
  5. ENV VERSION=${VERSION}
  6. ENV KERNEL_VERSION=${KERNEL_VERSION}
  7. # not installed atm udev, grub2, kexe-tools
  8. # parted: partprobe, e2fsprogs: mkfs.ext4, syslinux: extlinux&syslinux
  9. # e2fsprogs-extra: chattr
  10. RUN apk --no-cache add syslinux parted e2fsprogs e2fsprogs-extra util-linux
  11. COPY conf /scripts/
  12. COPY ./build/ros /bin/
  13. #RUN cd /bin && ln -s ./ros ./system-docker
  14. #OR softlink in the host one - this image should only be used when installing from ISO..
  15. # (except its useful for testing)
  16. # && ln -s /host/usr/bin/ros /bin/
  17. COPY kexec/dist/sbin/kexec /sbin/
  18. RUN ln -s /bootiso/boot/ /dist
  19. # need to make a /scripts/set-disk-partitions so that older releases can call the installer
  20. RUN echo "#!/bin/sh" > /scripts/set-disk-partitions \
  21. && echo "echo 'set-disk-partitions deprecated'" >> /scripts/set-disk-partitions \
  22. && chmod 755 /scripts/set-disk-partitions
  23. # work around some really weird ros symptoms
  24. RUN rm -rf /sbin/poweroff /sbin/shutdown /sbin/reboot /sbin/halt /usr/sbin/poweroff /usr/sbin/shutdown /usr/sbin/reboot /usr/sbin/halt
  25. ENTRYPOINT ["/bin/ros", "install"]