woodpecker-ansible-runner/Dockerfile

25 lines
553 B
Docker
Raw Normal View History

FROM golang:1.21.6-alpine AS build-stage
2021-12-15 00:21:52 +01:00
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY *.go ./
RUN CGO_ENABLED=0 GOOS=linux go build -o /entrypoint
FROM python:3.12.1-alpine AS runtime-stage
2023-08-02 09:22:28 +02:00
RUN apk --no-cache add git openssh tar
2021-12-15 16:34:59 +01:00
2021-12-15 00:21:52 +01:00
# renovate: datasource=pypi depName=ansible
:arrow_up: Update dependency ansible to v9 (#31) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [ansible](https://ansible.com/) ([source](https://github.com/ansible-community/ansible-build-data)) | major | `8.6.1` -> `9.1.0` | --- ### Release Notes <details> <summary>ansible-community/ansible-build-data (ansible)</summary> ### [`v9.1.0`](https://github.com/ansible-community/ansible-build-data/compare/9.0.1...9.1.0) [Compare Source](https://github.com/ansible-community/ansible-build-data/compare/9.0.1...9.1.0) ### [`v9.0.1`](https://github.com/ansible-community/ansible-build-data/compare/9.0.0...9.0.1) [Compare Source](https://github.com/ansible-community/ansible-build-data/compare/9.0.0...9.0.1) ### [`v9.0.0`](https://github.com/ansible-community/ansible-build-data/compare/8.7.0...9.0.0) [Compare Source](https://github.com/ansible-community/ansible-build-data/compare/8.7.0...9.0.0) ### [`v8.7.0`](https://github.com/ansible-community/ansible-build-data/compare/8.6.1...8.7.0) [Compare Source](https://github.com/ansible-community/ansible-build-data/compare/8.6.1...8.7.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy42NC4zIiwidXBkYXRlZEluVmVyIjoiMzcuODkuMCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9--> Reviewed-on: https://git.sebclem.fr/sebclem/woodpecker-ansible-runner/pulls/31 Co-authored-by: Renovate <ronovate@seb6596.ovh> Co-committed-by: Renovate <ronovate@seb6596.ovh>
2023-12-07 14:24:20 +01:00
ENV ANSIBLE_VERSION=9.1.0
2023-05-29 19:18:36 +02:00
RUN pip3 install --no-cache-dir ansible==${ANSIBLE_VERSION} dnspython passlib netaddr
2021-12-15 00:21:52 +01:00
COPY --from=build-stage /entrypoint /bin/entrypoint
2021-12-15 00:21:52 +01:00
2023-07-04 17:30:14 +02:00
ENV ANSIBLE_HOST_KEY_CHECKING=False
2023-07-04 18:01:16 +02:00
ENV PYTHONUNBUFFERED=1
2021-12-15 00:21:52 +01:00
ENTRYPOINT [ "/bin/entrypoint" ]