Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
build/Dockerfile: active Python3.9 as default python3
Browse files Browse the repository at this point in the history
  • Loading branch information
kpouget committed Jun 30, 2022
1 parent d9ed58a commit 3d7c48f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@ LABEL io.k8s.display-name="OpenShift PSAP CI artifacts" \
RUN yum install -y --quiet \
glibc-langpack-en \
go git make jq vim wget rsync time gettext \
python3.9 python3-pip python3-setuptools && \
python3 -m pip install --no-cache-dir --quiet --upgrade setuptools pip wheel && \
python3.9 python3-pip python3-setuptools python3-virtualenv && \
yum clean all && \
rm -rf $HOME/.cache && \
rm -rf /var/cache/yum

ENV VIRTUAL_ENV=/opt/venv
RUN virtualenv -p /usr/bin/python3.9 $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN pip install --upgrade pip

# Install dependencies: `oc`
ARG OCP_CLI_VERSION=latest
ARG OCP_CLI_URL=https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/${OCP_CLI_VERSION}/openshift-client-linux.tar.gz
Expand All @@ -33,7 +37,6 @@ ARG HELM_VERSION=v3.5.1
ARG HELM_URL=https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz
RUN curl --silent ${HELM_URL} | tar xfz - -C /usr/local/bin --strip-components 1 linux-amd64/helm


# Install dependencies: `operator-sdk`
ARG OPERATOR_SDK_VERSION=v1.6.2
ARG OPERATOR_SDK_URL=https://github.com/operator-framework/operator-sdk/releases/download/${OPERATOR_SDK_VERSION}
Expand Down Expand Up @@ -61,8 +64,8 @@ ENV USER_NAME=psap-ci-runner \
COPY . ${HOME}/

# Install Python requirements
RUN python3 -m pip install --quiet --no-cache-dir -r ${HOME}/requirements.txt && \
python3 -m pip install --quiet --no-cache-dir -r ${HOME}/subprojects/wdm/requirements.txt
RUN pip install --quiet --no-cache-dir -r ${HOME}/requirements.txt && \
pip install --quiet --no-cache-dir -r ${HOME}/subprojects/wdm/requirements.txt

# Prepare the CI `run` entrypoint
RUN echo -e '#!/usr/bin/env bash \n\
Expand Down

0 comments on commit 3d7c48f

Please sign in to comment.