You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.1 KiB
26 lines
1.1 KiB
FROM openshift/jenkins-slave-base-centos7:v3.11
|
|
|
|
MAINTAINER Nicolas Masse <nmasse@redhat.com>
|
|
|
|
# Labels consumed by Red Hat build service
|
|
LABEL name="openshift3/jenkins-agent-ansible-26-centos7" \
|
|
version="v3.11" \
|
|
architecture="x86_64" \
|
|
io.k8s.display-name="Jenkins Agent Ansible" \
|
|
io.k8s.description="The jenkins agent ansible image has the Ansible engine on top of the jenkins slave base image." \
|
|
io.openshift.tags="openshift,jenkins,agent,ansible"
|
|
|
|
USER root
|
|
RUN yum install -y epel-release && \
|
|
yum install -y 'ansible >= 2.6' && \
|
|
yum install -y python27-python-pip && \
|
|
# Remove the existing jinja2 library and its dependencies before re-installing it
|
|
# This is mandatory to prevent any leftover from a previous install
|
|
rm -rf /usr/lib/python2.7/site-packages/markupsafe /usr/lib/python2.7/site-packages/jinja2 && \
|
|
scl enable python27 "pip install --install-option='--install-purelib=/usr/lib/python2.7/site-packages/' jinja2" && \
|
|
yum clean all && \
|
|
rm -rf /var/cache/yum && \
|
|
chown -R 1001:0 $HOME && \
|
|
chmod -R g+rw $HOME
|
|
|
|
USER 1001
|
|
|