forked from redhat-cop/containers-quickstarts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (38 loc) · 1.19 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM quay.io/openshift/origin-jenkins-agent-base:4.9
ARG ANSIBLE_VERSION=2.9.13
LABEL \
release="1" \
version="4.8" \
architecture="x86_64" \
io.k8s.display-name="Jenkins Agent Ansible" \
name="openshift/origin-jenkins-agent-ansible-ubi8" \
io.openshift.tags="openshift,jenkins,agent,ansible" \
com.redhat.component="jenkins-agent-ansible-ubi8-docker" \
io.k8s.description="The jenkins agent ansible image has ansible on top of the jenkins agent base image."
ARG DNF_FLAGS="-y"
ARG PIP_PKGS="\
molecule \
paramiko \
openshift \
kubernetes \
ansible==${ANSIBLE_VERSION} \
"
ARG DNF_PKGS="\
python38-pip \
"
ADD ubi8.repo /tmp/ubi8.repo
RUN set -x \
&& rm -f /etc/yum.repos.d/*.repo \
&& mv /tmp/ubi8.repo /etc/yum.repos.d/ \
&& dnf install ${DNF_FLAGS} ${DNF_PKGS} \
&& dnf ${DNF_FLAGS} clean all \
&& rm -rf /var/cache/dnf \
&& alternatives --set python3 /usr/bin/python3.8 \
&& python3 -m pip install ${PIP_PKGS} \
&& chmod -R 775 /etc/alternatives \
&& chmod -R 775 /var/lib/alternatives \
&& echo
USER 1001
ENV \
LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8 \