use pipx to isolate python packages
This commit is contained in:
parent
9a1584345e
commit
cca86a86fb
@ -33,9 +33,14 @@ ENV POLARIS_VERSION="${POLARIS_VERSION:-8.5.2}"
|
|||||||
# renovate: datasource=pypi depName=flux-local
|
# renovate: datasource=pypi depName=flux-local
|
||||||
ENV FLUX_LOCAL_VERSION="${FLUX_LOCAL_VERSION:-3.2.0}"
|
ENV FLUX_LOCAL_VERSION="${FLUX_LOCAL_VERSION:-3.2.0}"
|
||||||
|
|
||||||
RUN apk --update add curl tar bash python3 py3-yaml py3-pip findutils git && \
|
ENV PIPX_HOME=/opt/pipx
|
||||||
|
ENV PIPX_BIN_DIR=/usr/local/bin
|
||||||
|
|
||||||
|
RUN apk --update add curl tar bash python3 pipx findutils git && \
|
||||||
apk --no-cache upgrade libcrypto3 libssl3 && \
|
apk --no-cache upgrade libcrypto3 libssl3 && \
|
||||||
pip install -qq --no-cache-dir flux-local=="$FLUX_LOCAL_VERSION" && \
|
pipx install --include-deps flux-local=="$FLUX_LOCAL_VERSION" && \
|
||||||
|
pipx inject flux-local PyYAML && \
|
||||||
|
$PIPX_HOME/shared/bin/pip install -U pip setuptools && \
|
||||||
curl -SsfL -o /usr/local/bin/kubectl "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/${TARGETOS}/${TARGETARCH}/kubectl" && \
|
curl -SsfL -o /usr/local/bin/kubectl "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/${TARGETOS}/${TARGETARCH}/kubectl" && \
|
||||||
curl -SsfL -o /usr/local/bin/kubectl-convert "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/${TARGETOS}/${TARGETARCH}/kubectl-convert" && \
|
curl -SsfL -o /usr/local/bin/kubectl-convert "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/${TARGETOS}/${TARGETARCH}/kubectl-convert" && \
|
||||||
curl -SsfL -o /usr/local/bin/yq "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_${TARGETOS}_${TARGETARCH}" && \
|
curl -SsfL -o /usr/local/bin/yq "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_${TARGETOS}_${TARGETARCH}" && \
|
||||||
|
Loading…
Reference in New Issue
Block a user