Skip to content
Snippets Groups Projects
Commit d6149142 authored by lcappelli's avatar lcappelli
Browse files

Change user variable name in Dockerfile

DEV_USER -> USERNAME
DEV_USER_UID -> USER_UID
DEV_GID -> USER_GID

See the best practise:
https://github.com/microsoft/vscode-dev-containers
parent e04bda6e
No related branches found
No related tags found
1 merge request!19Resolve "Remove dependency from storm2/build project"
......@@ -4,23 +4,23 @@
FROM centos:7
# Allow customization of build user ID and name
ARG DEV_USER=vscode
ARG DEV_USER_UID=1000
ARG DEV_GID=${DEV_USER_UID}
ARG USERNAME=vscode
ARG USER_UID=1000
ARG USER_GID=${USER_UID}
ENV DEV_USER $DEV_USER
ENV DEV_USER_UID $DEV_USER_UID
ENV DEV_GID ${DEV_USER_UID}
ENV USERNAME $USERNAME
ENV USER_UID $USER_UID
ENV USER_GID ${USER_UID}
COPY library-script/* /docker/
RUN yum update -y && \
sh /docker/setup.sh && \
sh /docker/provide-user.sh ${DEV_USER} ${DEV_USER_UID} ${DEV_GID} && \
sh /docker/provide-user.sh ${USERNAME} ${USER_UID} ${USER_GID} && \
yum clean all && rm -rf /var/cache/yum
COPY --chown=$DEV_USER:$DEV_USER assets/build-install-openresty-voms.sh /home/$DEV_USER/bin/
COPY --chown=$USERNAME:$USERNAME assets/build-install-openresty-voms.sh /home/$USERNAME/bin/
USER $DEV_USER
USER $USERNAME
RUN sh /docker/build-install-openresty.sh
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment