FROM ubuntu:noble ARG OPENGNSYS_BRANCH=main RUN apt-get update && apt-get -y install \ debootstrap \ fdisk \ file \ genisoimage \ git \ ipxe \ jq \ lsof \ python3 \ python3-apt \ qemu-utils \ rsync \ schroot \ squashfs-tools \ subversion \ syslinux \ syslinux-efi \ syslinux-utils \ && rm -rf /var/lib/apt/lists/* RUN groupadd opengnsys RUN mkdir -p /opt/opengnsys/client /tmp/opengnsys/oglive_builder /var/lib/tftpboot/ RUN ln -fs /var/lib/tftpboot /opt/opengnsys ## take client stuff from the OG repo RUN git clone -c http.sslVerify=false --branch ${OPENGNSYS_BRANCH} https://ognproject.evlt.uma.es/gitea/opengnsys/opengnsys.git /tmp/ogrepo RUN rsync -aH /tmp/ogrepo/client/engine /tmp/ogrepo/client/shared /tmp/opengnsys/ RUN echo foo4 COPY . /tmp/opengnsys/oglive_builder/ RUN cp /tmp/opengnsys/oglive_builder/schroot.conf /tmp/opengnsys/oglive_builder/mount-defaults /etc/schroot/ && echo '' >/etc/schroot/default/nssdatabases && rm -f /etc/schroot/setup.d/*chrootname ENTRYPOINT ["/tmp/opengnsys/oglive_builder/mkoglive.py"]