diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-14 20:03:01 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-14 20:03:01 +0000 |
commit | a453ac31f3428614cceb99027f8efbdb9258a40b (patch) | |
tree | f61f87408f32a8511cbd91799f9cececb53e0374 /collections-debian-merged/ansible_collections/community/okd/ci/Dockerfile | |
parent | Initial commit. (diff) | |
download | ansible-upstream.tar.xz ansible-upstream.zip |
Adding upstream version 2.10.7+merged+base+2.10.8+dfsg.upstream/2.10.7+merged+base+2.10.8+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'collections-debian-merged/ansible_collections/community/okd/ci/Dockerfile')
-rw-r--r-- | collections-debian-merged/ansible_collections/community/okd/ci/Dockerfile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/collections-debian-merged/ansible_collections/community/okd/ci/Dockerfile b/collections-debian-merged/ansible_collections/community/okd/ci/Dockerfile new file mode 100644 index 00000000..37227966 --- /dev/null +++ b/collections-debian-merged/ansible_collections/community/okd/ci/Dockerfile @@ -0,0 +1,40 @@ +FROM registry.access.redhat.com/ubi8/ubi + +ENV OPERATOR=/usr/local/bin/ansible-operator \ + USER_UID=1001 \ + USER_NAME=ansible-operator\ + HOME=/opt/ansible \ + ANSIBLE_LOCAL_TMP=/opt/ansible/tmp + +RUN yum install -y \ + glibc-langpack-en \ + git \ + make \ + python3 \ + python3-devel \ + python3-pip \ + python3-setuptools \ + && pip3 install --no-cache-dir --upgrade setuptools pip \ + && pip3 install --no-cache-dir \ + openshift \ + ansible==2.9.* \ + molecule \ + && yum clean all \ + && rm -rf $HOME/.cache \ + && curl -L https://github.com/openshift/okd/releases/download/4.5.0-0.okd-2020-08-12-020541/openshift-client-linux-4.5.0-0.okd-2020-08-12-020541.tar.gz | tar -xz -C /usr/local/bin + # TODO: Is there a better way to install this client in ubi8? + +COPY . /opt/ansible + +WORKDIR /opt/ansible + +RUN echo "${USER_NAME}:x:${USER_UID}:0:${USER_NAME} user:${HOME}:/sbin/nologin" >> /etc/passwd \ + && mkdir -p "${HOME}/.ansible/tmp" \ + && chown -R "${USER_UID}:0" "${HOME}" \ + && chmod -R ug+rwX "${HOME}" \ + && mkdir /go \ + && chown -R "${USER_UID}:0" /go \ + && chmod -R ug+rwX /go + + +USER ${USER_UID} |