refs #809 collaborate with the jenkins job

browser
Natalia Serrano 2024-10-24 22:16:44 +02:00 committed by Vadim Troshchinskiy
parent c79b4d992a
commit 6f3a572a29
1 changed files with 7 additions and 7 deletions

View File

@ -25,14 +25,14 @@ 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 stuff from the OG repo: a) cloning engine, b) shared stuff and c) gitrelease
RUN git --git-dir ./opengnsys/.git rev-parse HEAD && \
mv ./opengnsys/client/engine ./opengnsys/client/shared /tmp/opengnsys/ && \
git --git-dir ./opengnsys/.git log --date format:r%Y%m%d --format=%ad -1 >/tmp/opengnsys/oglive_builder/gitrelease
ARG OPENGNSYS_HEAD
## if we place the ogagent.deb and the ogbrowser.deb in the cwd, then this 'COPY .' copies them to the image
COPY . /tmp/opengnsys/oglive_builder/
RUN cp /tmp/opengnsys/oglive_builder/schroot.conf /tmp/opengnsys/oglive_builder/mount-defaults /etc/schroot/ && \
COPY ./og_client_engine /tmp/opengnsys/engine
COPY ./og_client_shared /tmp/opengnsys/shared
COPY ./gitrelease /tmp/opengnsys/
COPY ./*.deb /tmp/opengnsys/oglive_builder/
RUN ls -la /tmp/opengnsys/ /tmp/opengnsys/engine/ /tmp/opengnsys/shared/ /tmp/opengnsys/oglive_builder/ && \
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