1dc7503838
This is a major downside of reworking and generating new CI flows, it's super easy to lose testing what you intend to. Also, we clearly need to figure out a flow where this is shared across repos, since I don't want to copy-paste this into e.g. ostree too. That's https://github.com/coreos/fedora-coreos-tracker/issues/263
20 lines
771 B
Docker
20 lines
771 B
Docker
FROM registry.ci.openshift.org/coreos/cosa-buildroot:latest as builder
|
|
WORKDIR /src
|
|
COPY . .
|
|
RUN ./ci/build.sh && make install DESTDIR=/cosa/component-install
|
|
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 registry.ci.openshift.org/coreos/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/ /
|
|
COPY --from=builder /src/ci/prow/fcos-e2e.sh /usr/bin/fcos-e2e
|
|
USER builder
|