-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
42 lines (35 loc) · 1.25 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
ARG BASE_IMAGE="fedora:37"
FROM ${BASE_IMAGE}
ARG OCM_CLI_VERSION="0.1.60"
ARG BACKPLANE_CLI_VERSION="0.1.2"
RUN dnf update -y && \
dnf install -y procps \
wget \
golang \
sudo \
jq \
python3 \
python-pip \
git \
htop && \
yum install -y net-tools \
make && \
curl -Lo /usr/bin/ocm https://github.com/openshift-online/ocm-cli/releases/download/v${OCM_CLI_VERSION}/ocm-linux-amd64 && \
chmod +x /usr/bin/ocm && \
wget https://github.com/openshift/backplane-cli/releases/download/v${BACKPLANE_CLI_VERSION}/ocm-backplane_${BACKPLANE_CLI_VERSION}_Linux_x86_64.tar.gz && \
tar -xvf ocm-backplane_${BACKPLANE_CLI_VERSION}_Linux_x86_64.tar.gz && \
mv $PWD/ocm-backplane /usr/bin/ocm-backplane && \
chmod +x /usr/bin/ocm-backplane && \
wget https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable/openshift-client-linux.tar.gz && \
tar -xvf openshift-client-linux.tar.gz && \
mv $PWD/oc /usr/bin/oc && \
mv $PWD/kubectl /usr/bin/kubectl
# User python packages
RUN pip install aiohttp \
kubernetes
ARG BUILD_SHA=
ENV BUILD_SHA=${BUILD_SHA}
RUN mkdir -p /ocm-workspace
WORKDIR /ocm-workspace
ADD ./workspace .
RUN chmod +x ./workspace && cp ./workspace /usr/bin/workspace