refs #809 collaborate with the jenkins job
parent
dffb315879
commit
02b44a1d95
14
Dockerfile
14
Dockerfile
|
@ -25,14 +25,14 @@ RUN groupadd opengnsys
|
||||||
RUN mkdir -p /opt/opengnsys/client /tmp/opengnsys/oglive_builder /var/lib/tftpboot/
|
RUN mkdir -p /opt/opengnsys/client /tmp/opengnsys/oglive_builder /var/lib/tftpboot/
|
||||||
RUN ln -fs /var/lib/tftpboot /opt/opengnsys
|
RUN ln -fs /var/lib/tftpboot /opt/opengnsys
|
||||||
|
|
||||||
## take stuff from the OG repo: a) cloning engine, b) shared stuff and c) gitrelease
|
ARG OPENGNSYS_HEAD
|
||||||
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
|
|
||||||
|
|
||||||
## if we place the ogagent.deb and the ogbrowser.deb in the cwd, then this 'COPY .' copies them to the image
|
COPY ./og_client_engine /tmp/opengnsys/engine
|
||||||
COPY . /tmp/opengnsys/oglive_builder/
|
COPY ./og_client_shared /tmp/opengnsys/shared
|
||||||
RUN cp /tmp/opengnsys/oglive_builder/schroot.conf /tmp/opengnsys/oglive_builder/mount-defaults /etc/schroot/ && \
|
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 && \
|
echo '' >/etc/schroot/default/nssdatabases && \
|
||||||
rm -f /etc/schroot/setup.d/*chrootname
|
rm -f /etc/schroot/setup.d/*chrootname
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue