[v27] Change base from Alpine to Ubuntu
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0fdc51f271
commit
3d49a62772
@ -34,4 +34,4 @@ steps:
|
|||||||
# tags
|
# tags
|
||||||
tags:
|
tags:
|
||||||
- 'latest'
|
- 'latest'
|
||||||
- 'v26'
|
- 'v27'
|
||||||
|
@ -7,23 +7,29 @@ ARG ANSIBLE_LINT_VERSION=6.22.0
|
|||||||
# renovate: datasource=pypi depName=yamllint versioning=pep440
|
# renovate: datasource=pypi depName=yamllint versioning=pep440
|
||||||
ARG YAMLLINT_VERSION=1.33.0
|
ARG YAMLLINT_VERSION=1.33.0
|
||||||
|
|
||||||
# alpine version
|
# ubuntu base
|
||||||
FROM alpine:3.19
|
FROM ubuntu:latest
|
||||||
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
# install software
|
# prepare basic stuff
|
||||||
RUN apk update
|
RUN set -e && ln -sf bash /bin/sh
|
||||||
RUN apk add --no-cache \
|
RUN set -e \
|
||||||
build-base \
|
&& apt -y update \
|
||||||
ca-certificates \
|
&& apt -y upgrade \
|
||||||
git \
|
&& apt -y install --no-install-recommends --no-install-suggests \
|
||||||
libffi-dev \
|
ca-certificates \
|
||||||
openssh \
|
git \
|
||||||
python3 \
|
ssh \
|
||||||
python3-dev \
|
python3 \
|
||||||
py3-pip
|
python3-dev \
|
||||||
|
python3-pip \
|
||||||
|
wget
|
||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
RUN rm -rf /var/cache/apk/*
|
RUN set -e \
|
||||||
|
&& apt -y autoremove \
|
||||||
|
&& apt clean \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# arguments
|
# arguments
|
||||||
ARG ANSIBLE_VERSION
|
ARG ANSIBLE_VERSION
|
||||||
@ -31,16 +37,13 @@ ARG ANSIBLE_LINT_VERSION
|
|||||||
ARG YAMLLINT_VERSION
|
ARG YAMLLINT_VERSION
|
||||||
|
|
||||||
# install ansible + linters
|
# install ansible + linters
|
||||||
RUN pip3 install --use-pep517 --ignore-installed --break-system-packages \
|
RUN pip3 install --use-pep517 --ignore-installed \
|
||||||
ansible-core==${ANSIBLE_VERSION} \
|
ansible-core==${ANSIBLE_VERSION} \
|
||||||
ansible-lint==${ANSIBLE_LINT_VERSION} \
|
ansible-lint==${ANSIBLE_LINT_VERSION} \
|
||||||
yamllint==${YAMLLINT_VERSION}
|
yamllint==${YAMLLINT_VERSION}
|
||||||
|
|
||||||
# download collections
|
|
||||||
RUN wget -O /tmp/ansible-posix.tar.gz https://galaxy.ansible.com/api/v3/plugin/ansible/content/published/collections/artifacts/ansible-posix-1.5.4.tar.gz
|
|
||||||
|
|
||||||
# install ansible collections
|
# install ansible collections
|
||||||
RUN ansible-galaxy collection install /tmp/ansible-posix.tar.gz
|
RUN ansible-galaxy collection install ansible.posix
|
||||||
RUN ansible-galaxy collection install community.docker
|
RUN ansible-galaxy collection install community.docker
|
||||||
RUN ansible-galaxy collection install community.general
|
RUN ansible-galaxy collection install community.general
|
||||||
RUN ansible-galaxy collection install community.mysql
|
RUN ansible-galaxy collection install community.mysql
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[![Build Status](https://ci.simoncor.net/api/badges/siempie/ansible-deployment-container/status.svg)](https://ci.simoncor.net/siempie/ansible-deployment-container)
|
[![Build Status](https://ci.simoncor.net/api/badges/siempie/ansible-deployment-container/status.svg)](https://ci.simoncor.net/siempie/ansible-deployment-container)
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
Small Alpine container useful for an Ansible linter pipeline. Useful for CI/CD pipelines.
|
Small Ubuntu container useful for an Ansible linter pipeline. Useful for CI/CD pipelines.
|
||||||
|
|
||||||
# Preinstalled software
|
# Preinstalled software
|
||||||
- ansible-core
|
- ansible-core
|
||||||
|
Loading…
Reference in New Issue
Block a user