Skip to content

Commit

Permalink
Don't remove & create the dir, just chmod
Browse files Browse the repository at this point in the history
The original inspiration from:
https://github.com/thesteve0/myDockerImages/blob/master/simpleNoRoot/Dockerfile

says:

> need to change some permissions to allow non-root user to start things
> had to do these steps to give the httpd deamon the ability to.
> This actually appears due to a bug with Windows and Mac. It looks like
> we could have just "ls" on the directory to get the chmod to stick

but this seems to not be the case for us
  • Loading branch information
atodorov committed Apr 13, 2020
1 parent 1961f6b commit 6f36aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -15,7 +15,7 @@ RUN sed -i 's/Listen 80/Listen 8080/' /etc/httpd/conf/httpd.conf && \
sed -i 's!ErrorLog logs/ssl_error_log!ErrorLog "/dev/stderr"!' /etc/httpd/conf.d/ssl.conf && \
sed -i 's!TransferLog logs/ssl_access_log!TransferLog "/dev/stdout"!' /etc/httpd/conf.d/ssl.conf && \
sed -i 's!CustomLog logs/ssl_request_log!CustomLog "/dev/stdout"!' /etc/httpd/conf.d/ssl.conf && \
rm -rf /run/httpd && mkdir /run/httpd && chmod -R a+rwx /run/httpd
chmod -R a+rwx /run/httpd
COPY ./etc/kiwi-httpd.conf /etc/httpd/conf.d/

ENV PATH /venv/bin:${PATH} \
Expand Down

0 comments on commit 6f36aa3

Please sign in to comment.