1
0
mirror of https://github.com/rancher/os.git synced 2025-08-30 21:26:09 +00:00
os/scripts/installer/BaseDockerfile.amd64
Sven Dowideit 8e5eba0ac5 add --debug logging option to installer, and a dummy set-disk-partitions
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-01-18 10:50:37 +10:00

29 lines
929 B
Plaintext

FROM alpine
# TODO: redo as cross platform, and without git etc :)
ARG VERSION
ARG KERNEL_VERSION
ENV VERSION=${VERSION}
ENV KERNEL_VERSION=${KERNEL_VERSION}
# not installed atm udev, grub2, kexe-tools
# parted: partprobe, e2fsprogs: mkfs.ext4, syslinux: extlinux&syslinux
RUN apk --no-cache add syslinux parted e2fsprogs util-linux
COPY conf /scripts/
COPY ./build/ros /bin/
#RUN cd /bin && ln -s ./ros ./system-docker
#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
# need to make a /scripts/set-disk-partitions so that older releases can call the installer
RUN echo "#!/bin/sh" > /scripts/set-disk-partitions \
&& echo "echo 'set-disk-partitions deprecated'" >> /scripts/set-disk-partitions \
&& chmod 755 /scripts/set-disk-partitions
ENTRYPOINT ["/bin/ros", "install"]