diff --git a/Dockerfile b/Dockerfile index 66cd633..97e461c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=linux/amd64 ubuntu:20.04 +FROM --platform=linux/amd64 ubuntu:22.04 ARG build_date=unspecified @@ -9,13 +9,13 @@ ENV ANSIBLE_COLLECTIONS_PATH / COPY requirements.txt /tmp/requirements.txt COPY requirements.yml /tmp/requirements.yml -COPY ./ /tmp/ansible-mdd +COPY . /tmp/ansible-mdd USER root RUN mkdir /root/.ssh && bash -c 'echo -e "Host *\n KexAlgorithms +diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1" > /root/.ssh/config' RUN mkdir /ansible_collections && chmod 777 /ansible_collections RUN apt-get update && \ - apt-get install -y python3.8 python3-pip sshpass git && \ + apt-get install -y python3.10 python3-pip sshpass git && \ pip3 install --upgrade --no-cache-dir setuptools pip && \ echo "===> Installing PIP Requirements <===" && \ pip3 install --no-cache -r /tmp/requirements.txt && \ diff --git a/requirements.txt b/requirements.txt index 6a5fee9..caec60c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -ansible==4.5.0 +ansible==8.4.0 virl2_client==2.6.0 netaddr pynetbox