Skip to content

Commit c945e9e

Browse files
committed
move shim to this repo
1 parent c14c25d commit c945e9e

File tree

6 files changed

+2440
-6
lines changed

6 files changed

+2440
-6
lines changed

Dockerfile

+3-6
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,9 @@ RUN dnf install -y rust cargo libzstd-devel git openssl-devel \
1212
# Required to unencapsulate OCI to ostree
1313
# rpm-ostree seems to not have the ability.
1414
# It is not provided as a package in fedora.
15-
RUN mkdir -p /sources; \
16-
cd /sources; \
17-
git clone --depth 1 \
18-
https://github.com/hhd-dev/ostree-ext-cli ostree-rs-ext;
15+
COPY ./ostree-ext-cli /sources/ostree-ext-cli
1916

20-
WORKDIR /sources/ostree-rs-ext
17+
WORKDIR /sources/ostree-ext-cli
2118
RUN cargo fetch
2219
RUN cargo build --release
2320

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

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

3532
# Install rechunk

ostree-ext-cli/.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target

ostree-ext-cli/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target

0 commit comments

Comments
 (0)