Skip to content

Commit

Permalink
chore(docker): run as www-data rather than spinnaker (#5117)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwander committed Apr 4, 2018
1 parent 19dc6df commit 709df33
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions Dockerfile.slim
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ COPY docker /opt/deck/docker

WORKDIR /opt/deck

RUN adduser --disabled-password --system spinnaker

USER spinnaker

RUN docker/setup-apache2.sh

USER www-data

CMD docker/run-apache2.sh
1 change: 0 additions & 1 deletion docker/run-apache2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ then
# SSL not enabled
cp docker/spinnaker.conf.gen spinnaker.conf
else
service apache2 stop
a2enmod ssl
cp docker/spinnaker.conf.ssl spinnaker.conf
sed -ie 's|{%DECK_CERT_PATH%}|'$_DECK_CERT_PATH'|g' spinnaker.conf
Expand Down
1 change: 1 addition & 0 deletions docker/setup-apache2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ apt-get update
apt-get install apache2 -y
service apache2 stop
a2enmod proxy proxy_ajp proxy_http rewrite deflate headers proxy_balancer proxy_connect proxy_html xml2enc
chown -R www-data:www-data /etc/apache2

0 comments on commit 709df33

Please sign in to comment.