17 Commits

Author SHA1 Message Date
e854da83ca added support for ubuntu 22.04
Some checks failed
continuous-integration/drone/push Build is failing
2022-04-20 19:32:06 +02:00
61bcffed6a Update '.drone.yml'
All checks were successful
continuous-integration/drone/push Build is passing
2022-03-28 20:49:45 +00:00
d07b70a09f trigger build
All checks were successful
continuous-integration/drone/push Build is passing
2022-02-15 22:33:11 +01:00
d6a66a4e8f cpu limit as digit 2022-02-15 22:31:59 +01:00
d661d20093 trigger build 2022-02-15 22:31:11 +01:00
da6b0189ce welp drones jsonnet support does seem to lack a few things
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is failing
2022-02-13 19:40:16 +01:00
fb3a10a4d3 converted pipeline with jsonnet 2022-02-13 19:30:33 +01:00
9245bc02a6 increased limits
All checks were successful
continuous-integration/drone/push Build is passing
2022-02-13 18:29:55 +01:00
974e29e405 LIMITS
Some checks reported errors
continuous-integration/drone/push Build was killed
2022-02-10 16:25:01 +01:00
5c06f04f69 removed centos 8 in favor of almalinux
All checks were successful
continuous-integration/drone/push Build is passing
2022-02-10 15:53:05 +01:00
c2252c72f0 drone yaml
All checks were successful
continuous-integration/drone/push Build is passing
2021-11-07 17:54:53 +01:00
6bf134506d added cron to event list
All checks were successful
continuous-integration/drone/push Build is passing
2021-10-17 21:15:58 +02:00
8bafe97a18 Merge branch 'master' of git.uploadfilter24.eu:lerentis/ansible
All checks were successful
continuous-integration/drone/push Build is passing
2021-10-05 22:24:03 +02:00
3728e4d4d2 fixed build badge 2021-10-05 22:23:42 +02:00
d4b71fcddc [CI SKIP] updated readme 2021-10-02 17:01:42 +00:00
29a5ac9221 better message for none release
All checks were successful
continuous-integration/drone/push Build is passing
2021-10-02 18:56:41 +02:00
f6128fe7cf better message on release
All checks were successful
continuous-integration/drone/push Build is passing
2021-10-02 18:42:30 +02:00
6 changed files with 259 additions and 46 deletions

44
.drone.jsonnet Normal file
View File

@@ -0,0 +1,44 @@
local Pipeline(tag) = {
kind: "pipeline",
type: "kubernetes",
name: tag + "build",
platform: {
os: "linux",
arch: "amd64",
},
steps: [
{
name: tag,
image: "plugins/kaniko",
settings: {
repo: "lerentis/ansible",
username: { "from_secret": "docker_username" },
password: { "from_secret": "docker_password" },
dockerfile: tag + "/Dockerfile",
tags: [ tag ],
},
resources: {
limits: {
cpu: 200,
memory: "1024MiB",
},
},
when: [ "push", "pull_request", "cron" ]
}
]
};
[
Pipeline("ubuntu-20.04"),
Pipeline("ubuntu-18.04"),
Pipeline("ubuntu-14.04"),
Pipeline("debian-8"),
Pipeline("debian-9"),
Pipeline("debian-10"),
Pipeline("centos-7"),
Pipeline("almalinux-8"),
Pipeline("fedora-24"),
Pipeline("alpine-3"),
Pipeline("arch"),
]

View File

@@ -9,8 +9,29 @@ platform:
steps:
- name: build-ubuntu-20
- name: build-ubuntu-22
image: plugins/kaniko
settings:
dockerfile: ubuntu-22.04/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- ubuntu-22.04-dev
when:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
- name: build-ubuntu-20
image: plugins/kaniko:1.4.1
settings:
dockerfile: ubuntu-20.04/Dockerfile
password:
@@ -24,9 +45,14 @@ steps:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
- name: build-ubuntu-18
image: plugins/kaniko
image: plugins/kaniko:1.4.1
settings:
dockerfile: ubuntu-18.04/Dockerfile
password:
@@ -40,9 +66,14 @@ steps:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
- name: build-ubuntu-16
image: plugins/kaniko
image: plugins/kaniko:1.4.1
settings:
dockerfile: ubuntu-16.04/Dockerfile
password:
@@ -56,9 +87,14 @@ steps:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
- name: build-ubuntu-14
image: plugins/kaniko
image: plugins/kaniko:1.4.1
settings:
dockerfile: ubuntu-14.04/Dockerfile
password:
@@ -72,9 +108,14 @@ steps:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
- name: build-debian-8
image: plugins/kaniko
image: plugins/kaniko:1.4.1
settings:
dockerfile: debian-8/Dockerfile
password:
@@ -88,9 +129,14 @@ steps:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
- name: build-debian-9
image: plugins/kaniko
image: plugins/kaniko:1.4.1
settings:
dockerfile: debian-9/Dockerfile
password:
@@ -104,9 +150,14 @@ steps:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
- name: build-debian-10
image: plugins/kaniko
image: plugins/kaniko:1.4.1
settings:
dockerfile: debian-10/Dockerfile
password:
@@ -120,6 +171,11 @@ steps:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
---
kind: pipeline
@@ -133,7 +189,7 @@ platform:
steps:
- name: build-fedora-24
image: plugins/kaniko
image: plugins/kaniko:1.4.1
settings:
dockerfile: fedora-24/Dockerfile
password:
@@ -147,25 +203,35 @@ steps:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
- name: build-centos-8
image: plugins/kaniko
- name: build-almalinux-8
image: plugins/kaniko:1.4.1
settings:
dockerfile: centos-8/Dockerfile
dockerfile: almalinux-8/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- centos-8-dev
- almalinux-8-dev
when:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
- name: build-centos-7
image: plugins/kaniko
image: plugins/kaniko:1.4.1
settings:
dockerfile: centos-7/Dockerfile
password:
@@ -179,6 +245,11 @@ steps:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
---
kind: pipeline
@@ -192,7 +263,7 @@ platform:
steps:
- name: build-alpine-3
image: plugins/kaniko
image: plugins/kaniko:1.4.1
settings:
dockerfile: alpine-3/Dockerfile
password:
@@ -206,6 +277,11 @@ steps:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
---
kind: pipeline
@@ -219,7 +295,7 @@ platform:
steps:
- name: build-arch
image: plugins/kaniko
image: plugins/kaniko:1.4.1
settings:
dockerfile: arch/Dockerfile
password:
@@ -233,6 +309,11 @@ steps:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
---
kind: pipeline
@@ -245,8 +326,27 @@ platform:
steps:
- name: build-ubuntu-20-release
- name: build-ubuntu-22-release
image: plugins/kaniko
settings:
dockerfile: ubuntu-22.04/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- ubuntu-22.04
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
- name: build-ubuntu-20-release
image: plugins/kaniko:1.4.1
settings:
dockerfile: ubuntu-20.04/Dockerfile
password:
@@ -259,9 +359,13 @@ steps:
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
- name: build-ubuntu-18-release
image: plugins/kaniko
image: plugins/kaniko:1.4.1
settings:
dockerfile: ubuntu-18.04/Dockerfile
password:
@@ -274,9 +378,13 @@ steps:
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
- name: build-ubuntu-16-release
image: plugins/kaniko
image: plugins/kaniko:1.4.1
settings:
dockerfile: ubuntu-16.04/Dockerfile
password:
@@ -289,9 +397,13 @@ steps:
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
- name: build-ubuntu-14-release
image: plugins/kaniko
image: plugins/kaniko:1.4.1
settings:
dockerfile: ubuntu-14.04/Dockerfile
password:
@@ -304,9 +416,13 @@ steps:
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
- name: build-debian-8-release
image: plugins/kaniko
image: plugins/kaniko:1.4.1
settings:
dockerfile: debian-8/Dockerfile
password:
@@ -319,9 +435,13 @@ steps:
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
- name: build-debian-9-release
image: plugins/kaniko
image: plugins/kaniko:1.4.1
settings:
dockerfile: debian-9/Dockerfile
password:
@@ -334,9 +454,13 @@ steps:
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
- name: build-debian-10-release
image: plugins/kaniko
image: plugins/kaniko:1.4.1
settings:
dockerfile: debian-10/Dockerfile
password:
@@ -349,6 +473,10 @@ steps:
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
---
kind: pipeline
@@ -362,7 +490,7 @@ platform:
steps:
- name: build-fedora-24-release
image: plugins/kaniko
image: plugins/kaniko:1.4.1
settings:
dockerfile: fedora-24/Dockerfile
password:
@@ -375,24 +503,32 @@ steps:
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
- name: build-centos-8-release
image: plugins/kaniko
- name: build-almalinux-8-release
image: plugins/kaniko:1.4.1
settings:
dockerfile: centos-8/Dockerfile
dockerfile: almalinux-8/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- centos-8
- almalinux-8
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
- name: build-centos-7-release
image: plugins/kaniko
image: plugins/kaniko:1.4.1
settings:
dockerfile: centos-7/Dockerfile
password:
@@ -405,6 +541,10 @@ steps:
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
---
kind: pipeline
@@ -418,7 +558,7 @@ platform:
steps:
- name: build-alpine-3-release
image: plugins/kaniko
image: plugins/kaniko:1.4.1
settings:
dockerfile: alpine-3/Dockerfile
password:
@@ -431,6 +571,10 @@ steps:
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
---
kind: pipeline
@@ -444,7 +588,7 @@ platform:
steps:
- name: build-arch-release
image: plugins/kaniko
image: plugins/kaniko:1.4.1
settings:
dockerfile: arch/Dockerfile
password:
@@ -457,7 +601,10 @@ steps:
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
---
kind: pipeline
@@ -473,9 +620,11 @@ steps:
- name: notify
image: appleboy/drone-telegram
settings:
message: "Commit {{ commit.link }} ran with build {{ build.number }} and finished with status {{ build.status }}."
to: 14852963
token: 335668211:AAF-YgId7iI6ANBuZVy4uVOYYqA4R4uAaqY
message: "Commit {{ commit.message }} ran with build {{ build.number }} and finished with status {{ build.status }}."
to:
from_secret: telegram_userid
token:
from_secret: telegram_secret
when:
status:
- failure
@@ -483,6 +632,7 @@ steps:
event:
- push
- pull_request
- cron
depends_on:
- build-arch
- build-alpine
@@ -503,9 +653,11 @@ steps:
- name: notify
image: appleboy/drone-telegram
settings:
message: "Commit {{ commit.link }} ran with build {{ build.number }} and finished with status {{ build.status }}."
to: 14852963
token: 335668211:AAF-YgId7iI6ANBuZVy4uVOYYqA4R4uAaqY
message: "Release {{ build.tag }} ran with build {{ build.number }} and finished with status {{ build.status }}."
to:
from_secret: telegram_userid
token:
from_secret: telegram_secret
when:
status:
- failure

View File

@@ -1,6 +1,6 @@
# ansible
[![Build Status](https://drone.burntbunch.org/api/badges/lerentis/ansible-container/status.svg)](https://drone.burntbunch.org/lerentis/ansible-container)
[![Build Status](https://drone.uploadfilter24.eu/api/badges/lerentis/ansible/status.svg)](https://drone.uploadfilter24.eu/lerentis/ansible)
Docker images for running and testing ansible playbooks with various operating systems.
This Project is based on this [project](https://github.com/pauvos/ansible), which seems abandoned
@@ -10,11 +10,13 @@ Available operating systems:
* alpine-3
* centos-7
* almalinux-8
* debian-8
* fedora-24
* ubuntu-16.04
* ubuntu-18.04
* ubuntu-19.04
* ubuntu-20.04
* ubuntu-22.04
* arch
## run playbooks
@@ -69,6 +71,6 @@ Note: /root/.ansible must not be an overlayfs, otherwise ssh accelerate won't wo
## references
* [project](https://git.burntbunch.org/lerentis/ansible-container)
* [project](https://git.uploadfilter24.eu/lerentis/ansible)
Current Version: 0.7.2
Current Version: 1.5

View File

@@ -1,8 +1,7 @@
FROM centos:8
FROM almalinux:8
RUN dnf -y install python3-pip &&\
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm &&\
dnf install -y --enablerepo epel-playground ansible curl \
RUN dnf -y install python3-pip epel-release \
&& dnf install -y ansible curl \
&& curl -L https://github.com/aelsabbahy/goss/releases/latest/download/goss-linux-amd64 -o /usr/local/bin/goss \
&& chmod +rx /usr/local/bin/goss \
&& touch ~/.netrc && chmod og-rw ~/.netrc \

View File

@@ -8,5 +8,5 @@ cd ../debian-9 && docker buildx build -t lerentis/ansible:debian-9 --platform=li
cd ../debian-8 && docker buildx build -t lerentis/ansible:debian-8 --platform=linux/arm,linux/amd64 . --push
cd ../debian-10 && docker buildx build -t lerentis/ansible:debian-10 --platform=linux/arm64,linux/amd64 . --push
cd ../centos-7 && docker buildx build -t lerentis/ansible:centos-7 --platform=linux/arm64,linux/amd64 . --push
cd ../centos-8 && docker buildx build -t lerentis/ansible:centos-8 --platform=linux/arm64,linux/amd64 . --push
cd ../almalinux-8 && docker buildx build -t lerentis/ansible:almalinux-8 --platform=linux/arm64,linux/amd64 . --push
cd ../arch && docker buildx build -t lerentis/ansible:arch --platform=linux/arm,linux/amd64 . --push

16
ubuntu-22.04/Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
FROM ubuntu:22.04
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
software-properties-common \
apt-utils \
ansible \
python-apt \
git-core \
openssh-client \
curl \
&& curl -L https://github.com/aelsabbahy/goss/releases/latest/download/goss-linux-amd64 -o /usr/local/bin/goss \
&& chmod +rx /usr/local/bin/goss \
&& apt-get clean
CMD ["ansible-playbook", "--help"]