
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
ENV JENKINS_HOME=/home/jenkins
ENV HOME=/home/jenkins
ENV PIPENV_VENV_IN_PROJECT=true
ENV TZ=Europe/London
RUN groupadd -g 386 jenkins && useradd -m -u 386 -g 386 -s /bin/bash jenkins
### Note: use pip to install pipenv (not apt) to avoid pypa/pipenv#2196 (when using PIPENV_VENV_IN_PROJECT)
RUN apt-get update                 && apt-get install -y git iproute2                       python3-boto python3-boto3 python3-botocore python3-dev python3-distutils python3-dnspython python3-google-auth python3-googleapi python3-libcloud python3-jinja2 python3-jmespath python3-netaddr python3-paramiko python3-pip python3-ruamel.yaml python3-setuptools python3-wheel python3-xmltodict                 && pip3 install pipenv ansible>=5.2.0                 && pip3 install -r $(pip3 show ansible | grep ^Location | sed 's/Location: \(.*\)/\1/')/ansible_collections/azure/azcollection/requirements-azure.txt
