Merge branch 'develop' into 'main'
Some checks failed
Build podman-dind-like / build-and-push (GITHUB_TOKEN, HOME_NEXUS_DOCKER_PASSWORD, NEXUS_DOCKER_USER, ghcr.io, $NEXUS_PROXY_REGISTRY, GITHUB_DOCKER_USER) (push) Has been cancelled
Build podman-dind-like / build-and-push (HOME_NEXUS_DOCKER_PASSWORD, HOME_NEXUS_DOCKER_PASSWORD, NEXUS_DOCKER_USER, nexus.jamesjonesconsulting.com:5443, $NEXUS_PROXY_REGISTRY, NEXUS_DOCKER_USER) (push) Has been cancelled
Some checks failed
Build podman-dind-like / build-and-push (GITHUB_TOKEN, HOME_NEXUS_DOCKER_PASSWORD, NEXUS_DOCKER_USER, ghcr.io, $NEXUS_PROXY_REGISTRY, GITHUB_DOCKER_USER) (push) Has been cancelled
Build podman-dind-like / build-and-push (HOME_NEXUS_DOCKER_PASSWORD, HOME_NEXUS_DOCKER_PASSWORD, NEXUS_DOCKER_USER, nexus.jamesjonesconsulting.com:5443, $NEXUS_PROXY_REGISTRY, NEXUS_DOCKER_USER) (push) Has been cancelled
Moving the updated pip.conf into /etc and setting an env var so Python knows where to find it. This will allow all users to use the proxy rather than the user running in the container. See merge request ymdllc/containers/podman-dind-like!20
This commit is contained in:
@@ -64,7 +64,12 @@ RUN gem install ffi \
|
||||
# Setting up Pypi to use proxy
|
||||
RUN curl -k -s -o - \
|
||||
https://nexus.jamesjonesconsulting.com/repository/package-config/pypi/python3-pypi-repos.sh |\
|
||||
bash
|
||||
bash \
|
||||
&& mv ~/.config/pip/pip.conf /etc/pip.conf \
|
||||
&& chmod 644 /etc/pip.conf \
|
||||
&& rm -Rf ~/.config/pip
|
||||
|
||||
ENV PIP_CONFIG_FILE=/etc/pip.conf
|
||||
|
||||
# Adding on the CPAN mirror settings for Carton and cpanminus
|
||||
ENV PERL_CPANM_OPT="--mirror https://nexus.jamesjonesconsulting.com/repository/cpan-proxy/" \
|
||||
|
||||
Reference in New Issue
Block a user