Skip to content

Commit

Permalink
Merge pull request #136 from tmaeno/master
Browse files Browse the repository at this point in the history
image with 80 -> 8080 and 443->8443
  • Loading branch information
tmaeno authored Aug 31, 2022
2 parents b507714 + f24971c commit 4f32bd5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,15 @@ COPY docker/activate_this.py ${BIGMON_VIRTUALENV_PATH}/bin/activate_this.py
COPY docker/start-daemon.sh /usr/local/bin/
COPY docker/conf.d/*.conf /etc/httpd/conf.d/


# symlinks to allow late customization
RUN ln -fs ${BIGMON_WSGI_PATH}/config/local.py ${BIGMON_WSGI_PATH}/core/settings/local.py

# to work with non-root
RUN grep -v Listen /etc/httpd/conf/httpd.conf > /etc/httpd/conf/tmp; \
echo Listen 8080 > /etc/httpd/conf/httpd.conf; \
cat /etc/httpd/conf/tmp >> /etc/httpd/conf/httpd.conf; \
rm /etc/httpd/conf/tmp
RUN chmod 777 ${BIGMON_WSGI_PATH}/logs
RUN chmod 777 /var/log/httpd
RUN chmod 777 /etc/grid-security
Expand All @@ -90,13 +95,10 @@ RUN chmod -R 777 /etc/httpd/conf.d
# to be removed for prodiction
RUN chmod -R 777 ${BIGMON_WSGI_PATH} && chmod -R 777 ${BIGMON_VIRTUALENV_PATH}

# to grant low port number access to non-root
RUN setcap CAP_NET_BIND_SERVICE=+eip /usr/sbin/httpd

ENTRYPOINT ["start-daemon.sh"]


STOPSIGNAL SIGINT

EXPOSE 443
EXPOSE 8443 8080
CMD ["all"]
2 changes: 1 addition & 1 deletion docker/conf.d/25-port443-httpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Managed by Puppet
# ************************************
#
<VirtualHost *:443>
<VirtualHost *:8443>

## Vhost docroot
DocumentRoot "/var/www/html"
Expand Down
2 changes: 1 addition & 1 deletion docker/conf.d/25-port80-httpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Managed by Puppet
# ************************************
#
<VirtualHost *:80>
<VirtualHost *:8080>

## Vhost docroot
DocumentRoot "/var/www/html"
Expand Down
2 changes: 1 addition & 1 deletion docker/conf.d/ssl-httpd.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Listen 443
Listen 8443

<IfModule mod_ssl.c>
SSLRandomSeed startup builtin
Expand Down

0 comments on commit 4f32bd5

Please sign in to comment.