Skip to content
Snippets Groups Projects
Commit abd7e021 authored by Cyril L'Orphelin's avatar Cyril L'Orphelin
Browse files

change adduser

parent e1651d44
No related branches found
No related tags found
3 merge requests!5Module Tapes : Try fixing bug 'Mixed Content The page at was loaded over...,!3Openshift deployment,!2Openshift deployment
Pipeline #60177 failed
...@@ -21,10 +21,11 @@ RUN apt-get install -y \ ...@@ -21,10 +21,11 @@ RUN apt-get install -y \
##################### #####################
### NGINX CONF ###### ### NGINX CONF ######
##################### #####################
RUN adduser nginx
RUN useradd -ms /bin/bash nginx
RUN addgroup nginx root RUN addgroup nginx root
# support running as arbitrary user which belongs to the root group # support running as arbitrary user which belongs to the root group
RUN chmod g+rwx /var/cache/nginx /var/run /var/log/nginx RUN chmod g+rwx /var/cache /var/run /var/log
# users are not allowed to listen on priviliged ports # users are not allowed to listen on priviliged ports
RUN sed -i.bak 's/listen\(.*\)80;/listen 8081;/' /etc/nginx/conf.d/default.conf RUN sed -i.bak 's/listen\(.*\)80;/listen 8081;/' /etc/nginx/conf.d/default.conf
# comment user directive as master process is run as user in OpenShift anyhow # comment user directive as master process is run as user in OpenShift anyhow
......
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