mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-12 12:36:55 +00:00
fix: fixing mising pip PATH (#585)
* fix: fixing mising pip PATH * chore: removing User Site Directory Co-authored-by: Callum James Tait <callum.tait@photobox.com>
This commit is contained in:
@@ -62,6 +62,7 @@ RUN set -vx; \
|
|||||||
&& echo "%sudo ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers
|
&& echo "%sudo ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers
|
||||||
|
|
||||||
ENV RUNNER_ASSETS_DIR=/runnertmp
|
ENV RUNNER_ASSETS_DIR=/runnertmp
|
||||||
|
ENV HOME=/home/runner
|
||||||
|
|
||||||
# Runner download supports amd64 as x64. Externalstmp is needed for making mount points work inside DinD.
|
# Runner download supports amd64 as x64. Externalstmp is needed for making mount points work inside DinD.
|
||||||
#
|
#
|
||||||
@@ -88,6 +89,9 @@ RUN echo AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache > .env \
|
|||||||
COPY entrypoint.sh /
|
COPY entrypoint.sh /
|
||||||
COPY --chown=runner:docker patched $RUNNER_ASSETS_DIR/patched
|
COPY --chown=runner:docker patched $RUNNER_ASSETS_DIR/patched
|
||||||
|
|
||||||
|
# Add the Python "User Script Directory" to the PATH
|
||||||
|
ENV PATH="${PATH}:${HOME}/.local/bin"
|
||||||
|
|
||||||
USER runner
|
USER runner
|
||||||
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
|
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
|
||||||
CMD ["/entrypoint.sh"]
|
CMD ["/entrypoint.sh"]
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \
|
|||||||
docker --version
|
docker --version
|
||||||
|
|
||||||
ENV RUNNER_ASSETS_DIR=/runnertmp
|
ENV RUNNER_ASSETS_DIR=/runnertmp
|
||||||
|
ENV HOME=/home/runner
|
||||||
|
|
||||||
# Runner download supports amd64 as x64
|
# Runner download supports amd64 as x64
|
||||||
#
|
#
|
||||||
@@ -110,6 +111,9 @@ VOLUME /var/lib/docker
|
|||||||
|
|
||||||
COPY --chown=runner:docker patched $RUNNER_ASSETS_DIR/patched
|
COPY --chown=runner:docker patched $RUNNER_ASSETS_DIR/patched
|
||||||
|
|
||||||
|
# Add the Python "User Script Directory" to the PATH
|
||||||
|
ENV PATH="${PATH}:${HOME}/.local/bin"
|
||||||
|
|
||||||
# No group definition, as that makes it harder to run docker.
|
# No group definition, as that makes it harder to run docker.
|
||||||
USER runner
|
USER runner
|
||||||
|
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ RUN set -vx; \
|
|||||||
&& echo "%sudo ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers
|
&& echo "%sudo ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers
|
||||||
|
|
||||||
ENV RUNNER_ASSETS_DIR=/runnertmp
|
ENV RUNNER_ASSETS_DIR=/runnertmp
|
||||||
|
ENV HOME=/home/runner
|
||||||
|
|
||||||
# Runner download supports amd64 as x64. Externalstmp is needed for making mount points work inside DinD.
|
# Runner download supports amd64 as x64. Externalstmp is needed for making mount points work inside DinD.
|
||||||
#
|
#
|
||||||
@@ -88,6 +89,9 @@ RUN echo AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache > .env \
|
|||||||
COPY entrypoint.sh /
|
COPY entrypoint.sh /
|
||||||
COPY --chown=runner:docker patched $RUNNER_ASSETS_DIR/patched
|
COPY --chown=runner:docker patched $RUNNER_ASSETS_DIR/patched
|
||||||
|
|
||||||
|
# Add the Python "User Script Directory" to the PATH
|
||||||
|
ENV PATH="${PATH}:${HOME}/.local/bin"
|
||||||
|
|
||||||
USER runner
|
USER runner
|
||||||
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
|
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
|
||||||
CMD ["/entrypoint.sh"]
|
CMD ["/entrypoint.sh"]
|
||||||
|
|||||||
Reference in New Issue
Block a user