mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-05 13:18:17 +03:00
c1ef3942f3
The old one was a mirror that seems to have finally been decommissioned.
23 lines
842 B
Docker
23 lines
842 B
Docker
FROM quay.io/coreos-assembler/fcos-buildroot:testing-devel as builder
|
|
WORKDIR /src
|
|
COPY . .
|
|
RUN env ./ci/build.sh && make install DESTDIR=/cosa/component-install
|
|
RUN make -C tests/kolainst
|
|
RUN make -C tests/kolainst install DESTDIR=/cosa/component-tests
|
|
# Uncomment this to fake a build to test the code below
|
|
#RUN mkdir -p /cosa/component-install/usr/bin && echo foo > /cosa/component-install/usr/bin/foo
|
|
|
|
FROM quay.io/coreos-assembler/coreos-assembler:latest
|
|
WORKDIR /srv
|
|
USER root
|
|
# Copy binaries from the build
|
|
COPY --from=builder /cosa /cosa
|
|
# Merge them to the real root since we're used at compose time
|
|
RUN rsync -rlv /cosa/component-install/ /
|
|
# Merge installed tests
|
|
RUN rsync -rlv /cosa/component-tests/ /
|
|
# Grab all of our ci scripts
|
|
COPY --from=builder /src/ci/ /ci/
|
|
RUN ln -sr /ci/prow/fcos-e2e.sh /usr/bin/fcos-e2e
|
|
USER builder
|