From d2f6cbb796778bb7d14e4079b64dfcaf0c885bf1 Mon Sep 17 00:00:00 2001 From: Aleksandr Shmaraiev Date: Wed, 12 Apr 2023 16:39:50 +0300 Subject: [PATCH] Create the 'Dockerfile' to configure ci-operator --- .ci/openshift-ci/Dockerfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .ci/openshift-ci/Dockerfile diff --git a/.ci/openshift-ci/Dockerfile b/.ci/openshift-ci/Dockerfile new file mode 100644 index 00000000000..320c5fbc4dd --- /dev/null +++ b/.ci/openshift-ci/Dockerfile @@ -0,0 +1,28 @@ +#!/bin/bash +# +# Copyright (c) 2019-2021 Red Hat, Inc. +# This program and the accompanying materials are made +# available under the terms of the Eclipse Public License 2.0 +# which is available at https://www.eclipse.org/legal/epl-2.0/ +# +# SPDX-License-Identifier: EPL-2.0 +# +# Contributors: +# Red Hat, Inc. - initial API and implementation + +# Dockerfile to bootstrap build and test in openshift-ci + +FROM registry.ci.openshift.org/openshift/release:golang-1.18 + +SHELL ["/bin/bash", "-c"] + +# Install yq, kubectl, chectl cli used by olm/olm.sh script. +RUN yum install --assumeyes -d1 python3-pip httpd-tools && \ + pip3 install --upgrade setuptools && \ + pip3 install yq && \ + curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && \ + chmod +x ./kubectl && \ + mv ./kubectl /usr/local/bin && \ + bash <(curl -sL https://www.eclipse.org/che/chectl/) --channel=next && \ + curl https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.12.4/openshift-client-linux.tar.gz | tar xvzf - -C /usr/local/bin/ oc && \ + chmod ug+x /usr/local/bin/oc