30 lines
1.1 KiB
Docker
30 lines
1.1 KiB
Docker
#!/bin/bash
|
|
#
|
|
# Copyright (c) 2023 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
|
|
# hadolint ignore=DL3002
|
|
USER 0
|
|
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
# Install yq, kubectl, chectl cli used by olm/olm.sh script.
|
|
# hadolint ignore=DL3041
|
|
# Install yq, kubectl, chectl cli.
|
|
RUN yum install --assumeyes -d1 psmisc python3-pip httpd-tools nodejs && \
|
|
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://che-incubator.github.io/chectl/install.sh) --channel=next
|