Skip to content

Commit

Permalink
Merge pull request #29 from darkwizard242/feature/add-debian-bullseye
Browse files Browse the repository at this point in the history
Add Debian Bullseye
  • Loading branch information
darkwizard242 authored Mar 24, 2022
2 parents db18647 + 139989d commit ae9d999
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
build:
runs-on: ubuntu-20.04
strategy:
max-parallel: 7
max-parallel: 10
matrix:
TAG_NAME: [ubuntu-20.04, ubuntu-18.04, rockylinux-8, centos-7, debian-buster]
TAG_NAME: [ubuntu-20.04, ubuntu-18.04, rockylinux-8, centos-7, debian-bullseye, debian-buster]

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
build:
runs-on: ubuntu-20.04
strategy:
max-parallel: 7
max-parallel: 10
matrix:
TAG_NAME: [ubuntu-20.04, ubuntu-18.04, rockylinux-8, centos-7, debian-buster]
TAG_NAME: [ubuntu-20.04, ubuntu-18.04, rockylinux-8, centos-7, debian-bullseye, debian-buster]

steps:
- uses: actions/checkout@v2
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ For CentOS 7, docker tag and Dockerfile:

- [centos-7](https://github.com/darkwizard242/docker-ansible/blob/master/centos-7/Dockerfile)

For Debian 11 (bullseye), docker tag and Dockerfile:

- [debian-buster](https://github.com/darkwizard242/docker-ansible/blob/master/debian-bullseye/Dockerfile)

For Debian 10 (buster), docker tag and Dockerfile:

- [debian-buster](https://github.com/darkwizard242/docker-ansible/blob/master/debian-buster/Dockerfile)
Expand Down Expand Up @@ -82,6 +86,12 @@ docker run -it darkwizard242/ansible:centos-8 /bin/bash
docker run -it darkwizard242/ansible:centos-7 /bin/bash
```

### Debain 11 (Bullseye):

```shell
docker run -it darkwizard242/ansible:debian-bullseye /bin/bash
```

### Debain 10 (Buster):

```shell
Expand Down
22 changes: 22 additions & 0 deletions debian-bullseye/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM debian:bullseye 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"

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"]

0 comments on commit ae9d999

Please sign in to comment.