Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add runc to image #138

Merged
merged 2 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN make

FROM registry.ci.openshift.org/ocp/4.14:base-rhel9
ARG OC_VERSION=latest
RUN dnf -y update && dnf install -y binutils file go podman && dnf clean all
RUN dnf -y update && dnf install -y binutils file go podman runc && dnf clean all
RUN wget -O "openshift-client-linux-${OC_VERSION}.tar.gz" "https://mirror.openshift.com/pub/openshift-v4/amd64/clients/ocp/${OC_VERSION}/openshift-client-linux.tar.gz" \
&& tar -C /usr/local/bin -xzvf "openshift-client-linux-$OC_VERSION.tar.gz" oc
RUN curl --fail --retry 3 -LJO https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/latest-4.14/opm-linux.tar.gz && \
Expand Down
10 changes: 9 additions & 1 deletion Dockerfile.upstream
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@ COPY . ./
RUN make

FROM fedora:38
RUN dnf -y update && dnf install -y binutils go file && dnf clean all
ARG OC_VERSION=latest

RUN curl -LJo "openshift-client-linux-${OC_VERSION}.tar.gz" "https://mirror.openshift.com/pub/openshift-v4/amd64/clients/ocp/${OC_VERSION}/openshift-client-linux.tar.gz" \
&& tar -C /usr/local/bin -xzvf "openshift-client-linux-$OC_VERSION.tar.gz" oc
RUN dnf -y update && dnf install -y binutils go file runc podman && dnf clean all
RUN curl --fail --retry 3 -LJO https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/latest-4.14/opm-linux.tar.gz && \
tar -xzf opm-linux.tar.gz && \
mv ./opm /usr/local/bin/ && \
rm -f opm-linux.tar.gz
COPY --from=builder /app/check-payload /check-payload

ENTRYPOINT ["/check-payload"]