From 5716524c0d76f70029cda19f79c458b6b4b17a7b Mon Sep 17 00:00:00 2001 From: darkwizard242 Date: Fri, 13 May 2022 15:49:45 -0400 Subject: [PATCH 1/2] dockerfile for ubuntu 22.04 / jammy and update docs --- README.md | 10 ++++++++++ ubuntu-22.04/Dockerfile | 22 ++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 ubuntu-22.04/Dockerfile diff --git a/README.md b/README.md index 0498fb6..bfe73b0 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,10 @@ Docker images that contains ansible and/or any pre-requistes installed within th ## Supported tags and Dockerfile: +For Ubuntu 22.04 (jammy), docker tag and Dockerfile: + +- [ubuntu-22.04](https://github.com/darkwizard242/docker-ansible/blob/master/ubuntu-22.04/Dockerfile) + For Ubuntu 20.04 (focal), docker tag and Dockerfile: - [ubuntu-20.04](https://github.com/darkwizard242/docker-ansible/blob/master/ubuntu-20.04/Dockerfile) @@ -50,6 +54,12 @@ For Debian 8 (jessie), docker tag and Dockerfile: Simply, pull the docker image using whichever tag you prefer or run it directly. +### Ubuntu 22.04: + +```shell +docker run -it darkwizard242/ansible:ubuntu-22.04 /bin/bash +``` + ### Ubuntu 20.04: ```shell diff --git a/ubuntu-22.04/Dockerfile b/ubuntu-22.04/Dockerfile new file mode 100644 index 0000000..fc94ca6 --- /dev/null +++ b/ubuntu-22.04/Dockerfile @@ -0,0 +1,22 @@ +FROM ubuntu:jammy as base +LABEL maintainer="Ali Muhammad" + +ENV DEPENDENCIES "software-properties-common python3 python3-pip python3-setuptools python3-software-properties sudo apt-transport-https iputils-ping wget curl gnupg gcc python3-dev xz-utils" + +ENV PIP_PKGS "ansible" + +# Install required dependencies +RUN DEBIAN_FRONTEND=non-interactive apt-get update -y \ + && DEBIAN_FRONTEND=non-interactive apt-get --no-install-recommends -y upgrade \ + && DEBIAN_FRONTEND=non-interactive apt-get install --no-install-recommends -y ${DEPENDENCIES} \ + && python3 -m pip install --no-cache-dir -U pip wheel \ + && python3 -m pip install --no-cache-dir -U ${PIP_PKGS} \ + && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*.deb \ + && for FILE in $(find /var/log -maxdepth 2 -type f); do echo "" > ${FILE}; done \ + && apt-get autoremove \ + && apt-get clean + +FROM base + +# Initialize +CMD ["/bin/bash"] From 10c41cba78b3c8ddf3db15e5c52732e0bcee4edb Mon Sep 17 00:00:00 2001 From: darkwizard242 Date: Fri, 13 May 2022 15:50:39 -0400 Subject: [PATCH 2/2] update build-master and build-pr workflows to include ubuntu 22.04 --- .github/workflows/build-master.yml | 2 +- .github/workflows/build-pr.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-master.yml b/.github/workflows/build-master.yml index 0ec91ce..0301ec5 100644 --- a/.github/workflows/build-master.yml +++ b/.github/workflows/build-master.yml @@ -13,7 +13,7 @@ jobs: strategy: max-parallel: 10 matrix: - TAG_NAME: [ubuntu-20.04, ubuntu-18.04, rockylinux-8, centos-7, debian-bullseye, debian-buster] + TAG_NAME: [ubuntu-22.04, ubuntu-20.04, ubuntu-18.04, rockylinux-8, centos-7, debian-bullseye, debian-buster] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index 71fd83c..55943cf 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -11,7 +11,7 @@ jobs: strategy: max-parallel: 10 matrix: - TAG_NAME: [ubuntu-20.04, ubuntu-18.04, rockylinux-8, centos-7, debian-bullseye, debian-buster] + TAG_NAME: [ubuntu-22.04, ubuntu-20.04, ubuntu-18.04, rockylinux-8, centos-7, debian-bullseye, debian-buster] steps: - uses: actions/checkout@v2