Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Update mitogen docker images (#476)
Browse files Browse the repository at this point in the history
Signed-off-by: BulatSaif <bulat@parity.io>

Signed-off-by: BulatSaif <bulat@parity.io>
  • Loading branch information
BulatSaif authored Nov 3, 2022
1 parent 282da3e commit ae32de9
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion dockerfiles/mitogen/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,19 @@ ENV ANSIBLE_STRATEGY=mitogen_linear
ENV ANSIBLE_STRATEGY_PLUGINS=/opt/mitogen/ansible_mitogen/plugins/strategy
RUN cd /opt && git clone --depth 1 --branch v0.3.3 https://github.com/mitogen-hq/mitogen.git

# TODO: switch to non-root here after 'FF_DISABLE_UMASK_FOR_DOCKER_EXECUTOR' is properly set in gitlab ci
ARG WORKDIR=/work
RUN groupadd --gid 10001 nonroot && \
useradd --home-dir /home/nonroot \
--create-home \
--shell /bin/bash \
--gid nonroot \
--groups nonroot \
--uid 10000 nonroot
RUN chown -R nonroot. /home/nonroot
RUN mkdir ${WORKDIR}
RUN chown -R nonroot. ${WORKDIR}
USER 10000:10001
WORKDIR ${WORKDIR}

ENTRYPOINT ["/usr/bin/tini", "--"]

0 comments on commit ae32de9

Please sign in to comment.