Skip to content

Commit

Permalink
move shim to this repo
Browse files Browse the repository at this point in the history
  • Loading branch information
antheas committed Mar 7, 2025
1 parent c14c25d commit c945e9e
Show file tree
Hide file tree
Showing 6 changed files with 2,440 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@ RUN dnf install -y rust cargo libzstd-devel git openssl-devel \
# Required to unencapsulate OCI to ostree
# rpm-ostree seems to not have the ability.
# It is not provided as a package in fedora.
RUN mkdir -p /sources; \
cd /sources; \
git clone --depth 1 \
https://github.com/hhd-dev/ostree-ext-cli ostree-rs-ext;
COPY ./ostree-ext-cli /sources/ostree-ext-cli

WORKDIR /sources/ostree-rs-ext
WORKDIR /sources/ostree-ext-cli
RUN cargo fetch
RUN cargo build --release

Expand All @@ -29,7 +26,7 @@ RUN dnf install -y python3 python3-pip python3-devel rsync git tree \
libzstd openssl glib2 ghc-gio ostree skopeo selinux-policy-targeted

# Copy the built binary after installing deps
COPY --from=build /sources/ostree-rs-ext/target/release/ostree-ext-cli \
COPY --from=build /sources/ostree-ext-cli/target/release/ostree-ext-cli \
/usr/bin/ostree-ext-cli

# Install rechunk
Expand Down
1 change: 1 addition & 0 deletions ostree-ext-cli/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target
1 change: 1 addition & 0 deletions ostree-ext-cli/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target
Loading

0 comments on commit c945e9e

Please sign in to comment.