-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] Add Dockerfile for OpenShift containerized test execution on …
…Prow CI. (#1865)
- Loading branch information
Ishwar Kanse
authored
Jun 30, 2023
1 parent
45704bb
commit 257741d
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |