source: ogLive-Builder-Git/Dockerfile @ 1f695da

deps-vadimfilebeat-installerimprove-versionlgromero-testsmainpull-from-cloning-engine
Last change on this file since 1f695da was 1f695da, checked in by Natalia Serrano <natalia.serrano@…>, 6 months ago

refs #809 try to invalidate docker cache at a specific point

  • Property mode set to 100644
File size: 1.4 KB
Line 
1FROM ubuntu:noble
2
3RUN apt-get update && apt-get -y install \
4  debootstrap \
5  fdisk \
6  file \
7  genisoimage \
8  git \
9  ipxe \
10  jq \
11  lsof \
12  python3 \
13  python3-apt \
14  qemu-utils \
15  rsync \
16  schroot \
17  squashfs-tools \
18  subversion \
19  syslinux \
20  syslinux-efi \
21  syslinux-utils \
22  && rm -rf /var/lib/apt/lists/*
23
24RUN groupadd opengnsys
25RUN mkdir -p /opt/opengnsys/client /tmp/opengnsys/oglive_builder /var/lib/tftpboot/
26RUN ln -fs /var/lib/tftpboot /opt/opengnsys
27
28ARG OPENGNSYS_BRANCH=main
29
30## take stuff from the OG repo: a) cloning engine, b) shared stuff and c) gitrelease
31RUN git clone -c http.sslVerify=false --branch ${OPENGNSYS_BRANCH} https://ognproject.evlt.uma.es/gitea/opengnsys/opengnsys.git /tmp/ogrepo && \
32    git --git-dir /tmp/ogrepo/.git rev-parse HEAD && \
33    mv /tmp/ogrepo/client/engine /tmp/ogrepo/client/shared /tmp/opengnsys/ && \
34    git --git-dir /tmp/ogrepo/.git log --date format:r%Y%m%d --format=%ad -1 >/tmp/opengnsys/oglive_builder/gitrelease && \
35    rm -rf /tmp/ogrepo/
36
37## if we place the ogagent.deb and the ogbrowser.deb in the cwd, then this 'COPY .' copies them to the image
38COPY . /tmp/opengnsys/oglive_builder/
39RUN cp /tmp/opengnsys/oglive_builder/schroot.conf /tmp/opengnsys/oglive_builder/mount-defaults /etc/schroot/ && \
40    echo '' >/etc/schroot/default/nssdatabases && \
41    rm -f /etc/schroot/setup.d/*chrootname
42
43ENTRYPOINT ["/tmp/opengnsys/oglive_builder/mkoglive.py"]
Note: See TracBrowser for help on using the repository browser.