source: ogLive-Builder-Git/Dockerfile @ dffb315

deps-vadimfilebeat-installerimprove-versionlgromero-testsmainpull-from-cloning-engine
Last change on this file since dffb315 was dffb315, 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.2 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
28## take stuff from the OG repo: a) cloning engine, b) shared stuff and c) gitrelease
29RUN git --git-dir ./opengnsys/.git rev-parse HEAD && \
30    mv ./opengnsys/client/engine ./opengnsys/client/shared /tmp/opengnsys/ && \
31    git --git-dir ./opengnsys/.git log --date format:r%Y%m%d --format=%ad -1 >/tmp/opengnsys/oglive_builder/gitrelease
32
33## if we place the ogagent.deb and the ogbrowser.deb in the cwd, then this 'COPY .' copies them to the image
34COPY . /tmp/opengnsys/oglive_builder/
35RUN cp /tmp/opengnsys/oglive_builder/schroot.conf /tmp/opengnsys/oglive_builder/mount-defaults /etc/schroot/ && \
36    echo '' >/etc/schroot/default/nssdatabases && \
37    rm -f /etc/schroot/setup.d/*chrootname
38
39ENTRYPOINT ["/tmp/opengnsys/oglive_builder/mkoglive.py"]
Note: See TracBrowser for help on using the repository browser.