Skip to content

Instantly share code, notes, and snippets.

@harlowja
Created March 27, 2017 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harlowja/1327d63b10ad5955bc6758b8712fb081 to your computer and use it in GitHub Desktop.
Save harlowja/1327d63b10ad5955bc6758b8712fb081 to your computer and use it in GitHub Desktop.
# NOTE: this is a template, not the actual docker file...
#
# It will be turned into a dockerfile and processed by
# jenkins and the corresponding jenkinsfile contained in
# this working directory.
FROM centos:7
MAINTAINER ${maintainers}
LABEL JENKINS_BUILD=${build_number}
LABEL JENKINS_BUILD_TAG=${build_tag}
LABEL JENKINS_BUILD_URL=${build_url}
RUN yum -y install ${epel_cent7_url}
RUN yum -y clean all
RUN yum -y install make gcc python-devel \
python-pip python-virtualenv openldap-devel \
supervisor openssl-devel libffi-devel \
libxml2-devel libxslt-devel
# So that the right mimetypes get registered.
#
# Otherwise svg don't show up right.
RUN yum -y install mailcap
RUN mkdir -p /opt/daddy/
RUN mkdir -p /etc/daddy/
RUN mkdir -p /etc/daddy/secrets
RUN mkdir -p /etc/ansible/
COPY dist/*.tar.gz /opt/daddy/
RUN virtualenv /opt/daddy/venv
RUN source /opt/daddy/venv/bin/activate && \
pip install pip --upgrade
RUN source /opt/daddy/venv/bin/activate && \
pip install setuptools==33.1.1
RUN source /opt/daddy/venv/bin/activate && \
pip install pbr>=1.8
RUN source /opt/daddy/venv/bin/activate && \
pip install /opt/daddy/*.tar.gz
# Add conf files
#
# For now these will just be statically bundled.
#
# That should be fine (for the foreseeable future).
COPY conf/daddy.yaml /etc/daddy/daddy.yaml
COPY secrets/ci.eyaml /etc/daddy/secrets/ci.eyaml
COPY secrets/clouds.eyaml /etc/daddy/secrets/clouds.eyaml
COPY secrets/daddy.eyaml /etc/daddy/secrets/daddy.eyaml
COPY conf/ansible.cfg /etc/ansible/ansible.cfg
COPY conf/supervisord.conf /etc/supervisord.conf
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment