mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
create user context in which to run tests
This commit is contained in:
parent
e58d10ec07
commit
acae4e06da
1 changed files with 7 additions and 0 deletions
|
|
@ -43,6 +43,13 @@ RUN if [ -n "$INSTALL_GOLANG_VERSION" ] ; then /scripts/install-golang "${INSTAL
|
|||
ARG POSTGRES_VERSION
|
||||
RUN if [ -n "$POSTGRES_VERSION" ] ; then /scripts/install-postgresql; fi
|
||||
|
||||
# Add a user and set up home dir
|
||||
RUN groupadd --system gitlab && \
|
||||
useradd --system --create-home --gid gitlab --groups audio,video gitlab && \
|
||||
mkdir --parents /home/gitlab/reports && \
|
||||
chown --recursive gitlab:gitlab /home/gitlab
|
||||
|
||||
USER gitlab
|
||||
|
||||
RUN locale-gen en_US.UTF-8
|
||||
ENV LANG en_US.UTF-8
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue