Skip to content

Commit

Permalink
Use ostree-rs-ext 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cgwalters committed Nov 8, 2021
1 parent ba6e7de commit 3211836
Show file tree
Hide file tree
Showing 16 changed files with 312 additions and 126 deletions.
4 changes: 1 addition & 3 deletions .cci.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ parallel insttests: {
# include our built rpm-ostree in the image
mkdir -p overrides/rpm
mv *.rpm overrides/rpm
# for now, we cherry-pick newer libsolv to test that it correctly detects our rpmdb
# https://github.com/coreos/rpm-ostree/issues/2548
(cd overrides/rpm && curl -LO https://kojipkgs.fedoraproject.org//packages/libsolv/0.7.17/1.fc33/x86_64/libsolv-0.7.17-1.fc33.x86_64.rpm)
${env.WORKSPACE}/ci/cosa-overrides.sh
coreos-assembler fetch
coreos-assembler build
${env.WORKSPACE}/ci/composepost-checks.sh
Expand Down
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.cosa
target
compose-cache/
206 changes: 179 additions & 27 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ openat = "0.1.21"
openat-ext = "^0.2.2"
openssl = "0.10.38"
os-release = "0.1.0"
ostree-ext = "0.3.0"
ostree-ext = { git = "https://github.com/ostreedev/ostree-rs-ext", branch = "main" }
paste = "1.0"
phf = { version = "0.10", features = ["macros"] }
rand = "0.8.4"
Expand Down
6 changes: 6 additions & 0 deletions ci/cosa-overrides.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
# Inject ideally temporary overrides into our cosa build
# skopeo for containers https://github.com/containers/skopeo/pull/1476
cd overrides/rpm
curl -L --remote-name-all \
https://kojipkgs.fedoraproject.org//packages/skopeo/1.5.1/1.fc35/x86_64/skopeo-1.5.1-1.fc35.x86_64.rpm
6 changes: 4 additions & 2 deletions ci/prow/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ 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
@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
Expand All @@ -15,5 +15,7 @@ COPY --from=builder /cosa /cosa
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
# Grab all of our ci scripts
COPY --from=builder /src/ci/ /ci/
RUN ln -sr /ci/prow/fcos-e2e /usr/bin/fcos-e2e
USER builder
Loading

0 comments on commit 3211836

Please sign in to comment.