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

Migrate rosa Dockerfile #50960

Merged
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ base_images:
name: cli-ocm
namespace: ci
tag: latest
ocp_builder_rhel-8-golang-1.21-openshift-4.16:
name: builder
namespace: ocp
tag: rhel-8-golang-1.21-openshift-4.16
origin_4.16_cli:
name: "4.16"
namespace: origin
Expand All @@ -13,37 +17,13 @@ build_root:
namespace: ocp
tag: rhel-8-golang-1.21-openshift-4.16
images:
- dockerfile_literal: |
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.21-openshift-4.16 as builder
WORKDIR /go/src/github.com/openshift/rosa
RUN go install ./cmd/rosa
RUN go test -c -o /go/bin/rosatest ./tests/e2e
RUN rosa verify openshift-client

FROM registry.ci.openshift.org/ci/cli-ocm:latest as ocmcli

FROM registry.ci.openshift.org/origin/4.16:cli
COPY --from=builder /go/bin/rosa* /usr/bin
COPY --from=builder /go/src/github.com/openshift/rosa/tests/ci/data /rosa/tests/ci/data
COPY --from=ocmcli /usr/bin/ocm /usr/bin/ocm
RUN yum -y install --setopt=skip_missing_names_on_install=False \
jq \
unzip && yum clean all
RUN curl -s "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip -q awscliv2.zip && \
./aws/install && \
rm -rf awscliv2.zip aws &&\
aws --version
RUN rosa verify openshift-client
WORKDIR /rosa
- dockerfile_path: images/Dockerfile.e2e
from: origin_4.16_cli
inputs:
ci_cli-ocm_latest:
as:
- registry.ci.openshift.org/ci/cli-ocm:latest
origin_4.16_cli:
as:
- registry.ci.openshift.org/origin/4.16:cli
src:
ocp_builder_rhel-8-golang-1.21-openshift-4.16:
as:
- registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.21-openshift-4.16
to: rosa-aws-cli
Expand Down