Vanilla HTCondor server configured as a single pool and sufficient for testing and debugging
1.6K
######################################################
#
# Agave DevOps HTCondor Server
# Tag: agaveapi/htcondor
#
# This container provides a standard condor controller
# and worker created on top of the agaveapi/centos-base
# image. Nothing special here.
#
# Usage:
# docker run -h docker.example.com -i -t \
# -p 10022:22 \ # SSHD, SFTP
# agaveapi/htcondor
#
# note: you will need to make sure the file limit on
# the docker host is set to at least 10240 in order
# for condor to start properly. The following command
# will set this for you. Call it prior to starting the
# docker daemon
#
# $> ulimit -n 10240
#
# https://bitbucket.org/taccaci/agave-environment
#
######################################################
FROM agaveapi/centos-base
MAINTAINER Rion Dooley <[email protected]>
# Add condor user
RUN adduser condor && \
echo "condor:condor" | chpasswd
USER condor
RUN mkdir /home/condor/.ssh
ADD ssh/id_rsa.pub /home/condor/.ssh/authorized_keys
USER root
# Install ht condor
RUN curl -o /etc/yum.repos.d/htcondor-stable-rhel6.repo http://research.cs.wisc.edu/htcondor/yum/repo.d/htcondor-stable-rhel6.repo
RUN yum -y --enablerepo=centosplus install condor tar
ADD htcondor/condor_config.local /etc/condor/condor_config.local
ADD htcondor/condor.submit /etc/condor/test.submit
WORKDIR /etc/condor
ADD supervisord.conf /etc/supervisord.conf
RUN mkdir /var/log/supervisor
RUN chmod -R 777 /var/log/supervisor
VOLUME /var/lib/condor
EXPOSE 10389 22 9618
CMD /usr/bin/supervisord