Skip to content

Commit

Permalink
Merge pull request #167 from rynge/ganglia-fix
Browse files Browse the repository at this point in the history
OSPool Ganglia: lock the container to el8 to get a comptabile ganglia/php combo
  • Loading branch information
rynge authored Dec 11, 2023
2 parents 5c1a69a + 1f42ec3 commit 2a3fe16
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 5 deletions.
8 changes: 8 additions & 0 deletions opensciencegrid/ospool-ganglia/10-htcondor.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[program:condor_master]
command=/usr/sbin/condor_master_wrapper
autorestart=True
startsecs=60
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
redirect_stderr=true

36 changes: 31 additions & 5 deletions opensciencegrid/ospool-ganglia/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,48 @@
# Specify the opensciencegrid/ospool-cm image tag
ARG BASE_OSG_SERIES=3.6
# Specify the opensciencegrid/software-base image tag
ARG BASE_OSG_SERIES=23
ARG BASE_YUM_REPO=release

FROM opensciencegrid/ospool-cm:$BASE_OSG_SERIES-$BASE_YUM_REPO
# has to be el8 for a working ganglia/php combination
FROM opensciencegrid/software-base:$BASE_OSG_SERIES-el8-$BASE_YUM_REPO

# has to be redefined for use in the RUN stages
ARG BASE_YUM_REPO

RUN dnf -y install \
ganglia-gmond \
# has to be redefined for use in the RUN stages
ARG BASE_YUM_REPO

RUN dnf -y distro-sync && \
dnf -y install \
epel-release && \
dnf -y install \
bc \
ganglia-gmetad \
ganglia-gmond \
ganglia-web \
git \
httpd \
lsof \
php-fpm \
python3-pip \
rrdtool \
vim \
wget \
&& \
dnf -y clean all && \
mkdir -p /run/php-fpm

# Pull HTCondor from the proper repo. For "release" we need to use
# osg-upcoming-testing to meet the patch tuesday requirements.
RUN if [[ $BASE_YUM_REPO = release ]]; then \
dnf -y --enablerepo=osg-upcoming-testing install condor; \
else \
dnf -y install condor; \
fi

COPY condor_master_wrapper /usr/sbin/
RUN chmod 755 /usr/sbin/condor_master_wrapper
COPY 10-htcondor.conf /etc/supervisord.d/

COPY 05-gmetad.conf /etc/supervisord.d/
COPY 05-gmond.conf /etc/supervisord.d/
COPY 05-httpd.conf /etc/supervisord.d/
Expand Down
6 changes: 6 additions & 0 deletions opensciencegrid/ospool-ganglia/condor_master_wrapper
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

tail -F `condor_config_val LOG`/MasterLog 2>/dev/null &

exec /usr/sbin/condor_master -f

0 comments on commit 2a3fe16

Please sign in to comment.