Skip to content

Commit 908aa61

Browse files
Merge pull request #2133 from njhale/fix/image-cp
fix(bundles): symlink cp at expected path
2 parents 9359b9d + a686c6b commit 908aa61

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: upstream.Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ LABEL stage=builder
33
WORKDIR /build
44

55
# install dependencies and go 1.16
6-
RUN dnf update -y && dnf install -y bash make git mercurial jq wget golang && dnf upgrade -y
76

87
# copy just enough of the git repo to parse HEAD, used to record version in OLM binaries
8+
RUN dnf update -y && dnf install -y bash make git mercurial jq wget golang && dnf upgrade -y
99
COPY .git/HEAD .git/HEAD
1010
COPY .git/refs/heads/. .git/refs/heads
1111
RUN mkdir -p .git/objects
@@ -25,6 +25,8 @@ RUN make build-util
2525
FROM gcr.io/distroless/static:debug
2626
LABEL stage=olm
2727
WORKDIR /
28+
# bundle unpack Jobs require cp at /bin/cp
29+
RUN ["/busybox/ln", "-s", "/busybox/cp", "/bin/cp"]
2830
COPY --from=builder /build/bin/olm /bin/olm
2931
COPY --from=builder /build/bin/catalog /bin/catalog
3032
COPY --from=builder /build/bin/package-server /bin/package-server

0 commit comments

Comments
 (0)