Skip to content

Commit

Permalink
Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaeno committed Jul 5, 2022
1 parent d6f37ed commit d15b420
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ RUN chown atlpan -R /opt/idds
# RUN chown atlpan -R /opt/idds_source
RUN chown atlpan /var/log/idds
RUN chown apache -R /var/idds/wsgisocks/

# to run with non-root PID
RUN chmod -R 777 /var/log/idds
RUN chmod -R 777 /var/idds
RUN chmod -R 777 /etc/httpd/conf.d
Expand Down Expand Up @@ -93,7 +95,10 @@ RUN rm -rf /tmp/src

RUN mkdir /opt/idds/config
RUN mkdir /opt/idds/config/idds

# to run with non-root PID
RUN chmod -R 777 /opt/idds/config

# RUN mkdir /opt/idds/config_default

# ADD idds.cfg.default /opt/idds/config
Expand All @@ -103,10 +108,11 @@ RUN chmod -R 777 /opt/idds/config

# for rest service

# to grant low-numbered port access to non-root
RUN setcap CAP_NET_BIND_SERVICE=+eip /usr/sbin/httpd
RUN chmod -R 777 /etc/grid-security

# to grant low-numbered port to non-root
RUN setcap CAP_NET_BIND_SERVICE=+eip /usr/sbin/httpd
# required for ssl.conf to run with non-root PID
RUN chmod a+r /etc/pki/tls/certs/localhost.crt
RUN chmod a+r /etc/pki/tls/private/localhost.key

Expand Down

0 comments on commit d15b420

Please sign in to comment.