Skip to content

Commit

Permalink
Merge pull request #157 from tmaeno/master
Browse files Browse the repository at this point in the history
to publish condor_logs in container
  • Loading branch information
tmaeno authored Oct 20, 2022
2 parents c9d7061 + 8899db6 commit 8574aa0
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 2 deletions.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM docker.io/centos:7

RUN yum update -y
RUN yum install -y epel-release
RUN yum install -y python3 python3-devel gcc less git mysql-devel curl mariadb voms-clients-cpp wget
RUN yum install -y python3 python3-devel gcc less git mysql-devel curl mariadb voms-clients-cpp wget httpd

RUN mkdir -p /data/condor; cd /data/condor; \
curl -fsSL https://get.htcondor.org | /bin/bash -s -- --download --channel stable; \
Expand Down Expand Up @@ -57,7 +57,10 @@ RUN mkdir -p /etc/grid-security/certificates
RUN chmod -R 777 /etc/grid-security/certificates
RUN chmod -R 777 /data/harvester
RUN chmod -R 777 /data/condor
RUN chmod -R 777 /etc/httpd
RUN chmod -R 777 /var/log/httpd
RUN mkdir -p /opt/harvester/etc/queue_config && chmod 777 /opt/harvester/etc/queue_config
COPY docker/httpd.conf /etc/httpd/conf/

# make lock dir
ENV PANDA_LOCK_DIR /var/run/panda
Expand All @@ -77,8 +80,11 @@ cd condor \n\
. condor.sh \n\
cp /data/harvester/condor_config.local /data/condor/condor/local/config.d/ \n\
condor_master \n\
/sbin/httpd \n\
/opt/harvester/etc/rc.d/init.d/panda_harvester-uwsgi start \n ' > /opt/harvester/etc/rc.d/init.d/run-harvester-services

RUN chmod +x /opt/harvester/etc/rc.d/init.d/run-harvester-services

CMD exec /bin/bash -c "trap : TERM INT; sleep infinity & wait"

EXPOSE 8080
37 changes: 37 additions & 0 deletions docker/httpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
ServerRoot "/etc/httpd"
ServerName localhost

LoadModule mpm_event_module modules/mod_mpm_event.so
LoadModule dir_module modules/mod_dir.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule mime_module modules/mod_mime.so
LoadModule unixd_module modules/mod_unixd.so
LoadModule autoindex_module modules/mod_autoindex.so

TypesConfig /etc/mime.types

PidFile /var/run/panda/httpd.pid

# Port to Listen on
Listen *:8080

# In a basic setup httpd can only serve files from its document root
DocumentRoot "/var/log/panda/condor_logs"

# Default file to serve
DirectoryIndex disabled

# Errors go to their own log
ErrorLog logs/error_log

# Never change this block
<Directory />
AllowOverride None
Require all denied
</Directory>

# Allow documents to be served from the DocumentRoot
<Directory "/var/log/panda/condor_logs">
Options +Indexes +FollowSymLinks
Require all granted
</Directory>
2 changes: 1 addition & 1 deletion pandaharvester/panda_pkg_info.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
release_version = "0.2.17"
release_version = "0.2.18"

0 comments on commit 8574aa0

Please sign in to comment.