Skip to content

Commit

Permalink
[chore] Add Dockerfile for OpenShift containerized test execution on …
Browse files Browse the repository at this point in the history
…Prow CI. (#1865)
  • Loading branch information
Ishwar Kanse committed Jun 30, 2023
1 parent 45704bb commit 257741d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/e2e-openshift/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# The Dockerfile's resulting image is purpose-built for executing OpenTelemetry Operator e2e tests within the OpenShift release (https://github.com/openshift/release) using Prow CI.

FROM golang:1.20

# Copy the repository files
COPY . /tmp/opentelemetry-operator

WORKDIR /tmp

# Install kuttl
RUN curl -L -o kuttl https://github.com/kudobuilder/kuttl/releases/download/v0.15.0/kubectl-kuttl_0.15.0_linux_x86_64 \
&& chmod +x kuttl \
&& mv kuttl /usr/local/bin/kuttl

# Install kubectl and oc
RUN curl -L -o oc.tar.gz https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/latest/openshift-client-linux.tar.gz \
&& tar -xvzf oc.tar.gz \
&& chmod +x kubectl oc \
&& mv oc kubectl /usr/local/bin/

# Set the working directory
WORKDIR /tmp/opentelemetry-operator

0 comments on commit 257741d

Please sign in to comment.