2016-12-08 22:11:13 +00:00
|
|
|
FROM alpine
|
|
|
|
# TODO: redo as cross platform, and without git etc :)
|
|
|
|
|
2016-12-19 02:12:14 +00:00
|
|
|
ARG VERSION
|
|
|
|
ARG KERNEL_VERSION
|
|
|
|
ENV VERSION=${VERSION}
|
|
|
|
ENV KERNEL_VERSION=${KERNEL_VERSION}
|
|
|
|
|
2016-12-08 22:11:13 +00:00
|
|
|
# not installed atm udev, grub2, kexe-toos
|
|
|
|
# parted: partprobe, e2fsprogs: mkfs.ext4, syslinux: extlinux&syslinux
|
|
|
|
RUN apk --no-cache add syslinux parted e2fsprogs
|
|
|
|
|
|
|
|
COPY conf /scripts/
|
2016-12-19 02:12:14 +00:00
|
|
|
COPY ./build/ros /bin/
|
|
|
|
#OR softlink in the host one - this image should only be used when installing from ISO..
|
|
|
|
# (except its useful for testing)
|
|
|
|
# && ln -s /host/usr/bin/ros /bin/
|
|
|
|
|
|
|
|
RUN ln -s /bootiso/boot/ /dist
|
2016-12-08 22:11:13 +00:00
|
|
|
|
2016-12-19 02:12:14 +00:00
|
|
|
ENTRYPOINT ["/bin/ros"]
|
2016-12-08 22:11:13 +00:00
|
|
|
|