browserbuild-browserdeps-vadimfilebeat-installerimprove-versionlgromero-testsmainno-apt-moduleoglive-ipv6pull-from-cloning-enginepybuilder
Last change
on this file since c79d715 was
866cdb4,
checked in by Natalia Serrano <natalia.serrano@…>, 8 months ago
|
refs #597 make image smaller by not keeping a copy of the opengnsys repo
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[f002c56] | 1 | FROM ubuntu:noble |
---|
| 2 | |
---|
| 3 | ARG OPENGNSYS_BRANCH=main |
---|
| 4 | |
---|
| 5 | RUN apt-get update && apt-get -y install \ |
---|
| 6 | debootstrap \ |
---|
| 7 | fdisk \ |
---|
| 8 | file \ |
---|
| 9 | genisoimage \ |
---|
| 10 | git \ |
---|
| 11 | ipxe \ |
---|
| 12 | jq \ |
---|
| 13 | lsof \ |
---|
| 14 | python3 \ |
---|
| 15 | python3-apt \ |
---|
| 16 | qemu-utils \ |
---|
| 17 | rsync \ |
---|
| 18 | schroot \ |
---|
| 19 | squashfs-tools \ |
---|
| 20 | subversion \ |
---|
| 21 | syslinux \ |
---|
| 22 | syslinux-efi \ |
---|
| 23 | syslinux-utils \ |
---|
| 24 | && rm -rf /var/lib/apt/lists/* |
---|
| 25 | |
---|
| 26 | RUN groupadd opengnsys |
---|
| 27 | RUN mkdir -p /opt/opengnsys/client /tmp/opengnsys/oglive_builder /var/lib/tftpboot/ |
---|
| 28 | RUN ln -fs /var/lib/tftpboot /opt/opengnsys |
---|
| 29 | |
---|
[866cdb4] | 30 | ## take stuff from the OG repo: a) cloning engine, b) shared stuff and c) gitrelease |
---|
| 31 | RUN git clone -c http.sslVerify=false --branch ${OPENGNSYS_BRANCH} https://ognproject.evlt.uma.es/gitea/opengnsys/opengnsys.git /tmp/ogrepo && \ |
---|
| 32 | mv /tmp/ogrepo/client/engine /tmp/ogrepo/client/shared /tmp/opengnsys/ && \ |
---|
| 33 | git --git-dir /tmp/ogrepo/.git log --date format:r%Y%m%d --format=%ad -1 >/tmp/opengnsys/oglive_builder/gitrelease && \ |
---|
| 34 | rm -rf /tmp/ogrepo/ |
---|
[f002c56] | 35 | |
---|
[866cdb4] | 36 | RUN echo foo2 ## development: invalidate docker cache at this point, so that the 'COPY' below actually copies files |
---|
[f002c56] | 37 | COPY . /tmp/opengnsys/oglive_builder/ |
---|
| 38 | 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 |
---|
| 39 | |
---|
| 40 | ENTRYPOINT ["/tmp/opengnsys/oglive_builder/mkoglive.py"] |
---|
Note: See
TracBrowser
for help on using the repository browser.