2024-07-25 02:49:30 +02:00
|
|
|
FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.22@sha256:86a3c48a61915a8c62c0e1d7594730399caa3feb73655dfe96c7bc17710e96cf as build
|
2023-10-30 11:40:39 +01:00
|
|
|
|
|
|
|
ARG TARGETOS
|
|
|
|
ARG TARGETARCH
|
|
|
|
|
|
|
|
ADD . /src
|
|
|
|
WORKDIR /src
|
|
|
|
|
|
|
|
RUN make build
|
|
|
|
|
2024-07-25 02:49:30 +02:00
|
|
|
FROM docker.io/python:3.12-alpine@sha256:7f15e22f496c65cffbbac5e30e7e98d60f3e3b9cc5ee5d51cf3c55ed604787c8
|
2018-07-18 17:05:45 +02:00
|
|
|
|
2023-12-19 09:19:23 +01:00
|
|
|
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
|
|
|
|
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
|
|
|
|
LABEL org.opencontainers.image.title="wp-ansible"
|
|
|
|
LABEL org.opencontainers.image.url="https://github.com/thegeeklab/wp-ansible"
|
|
|
|
LABEL org.opencontainers.image.source="https://github.com/thegeeklab/wp-ansible"
|
|
|
|
LABEL org.opencontainers.image.documentation="https://github.com/thegeeklab/wp-ansible"
|
2021-01-26 14:05:35 +01:00
|
|
|
|
2023-10-30 11:40:39 +01:00
|
|
|
ARG TARGETOS
|
|
|
|
ARG TARGETARCH
|
2021-02-09 10:45:07 +01:00
|
|
|
ARG ANSIBLE_VERSION
|
|
|
|
|
2021-01-26 14:05:35 +01:00
|
|
|
# renovate: datasource=pypi depName=ansible
|
2024-07-18 10:27:50 +02:00
|
|
|
ENV ANSIBLE_VERSION="${ANSIBLE_VERSION:-10.2.0}"
|
2018-07-18 17:05:45 +02:00
|
|
|
|
2023-11-13 10:10:56 +01:00
|
|
|
RUN apk --update add --virtual .build-deps python3-dev libffi-dev build-base && \
|
2023-12-14 11:26:15 +01:00
|
|
|
apk add --no-cache bash git curl rsync openssh-client sshpass && \
|
2023-11-13 10:20:28 +01:00
|
|
|
apk upgrade --no-cache libcrypto3 libssl3 && \
|
2023-12-14 11:26:15 +01:00
|
|
|
pip install -qq --no-cache-dir --upgrade pip && \
|
|
|
|
pip install -qq --no-cache-dir ansible=="${ANSIBLE_VERSION}" \
|
|
|
|
boto3 hcloud pywinrm passlib jsonschema && \
|
2023-11-13 10:20:28 +01:00
|
|
|
apk del .build-deps && \
|
|
|
|
rm -rf /var/cache/apk/* && \
|
2023-12-14 11:26:15 +01:00
|
|
|
rm -rf /tmp/* && \
|
|
|
|
rm -rf /root/.cache/
|
2018-07-18 17:05:45 +02:00
|
|
|
|
2023-12-19 09:19:23 +01:00
|
|
|
COPY --from=build /src/dist/wp-ansible /bin/wp-ansible
|
|
|
|
ENTRYPOINT ["/bin/wp-ansible"]
|