Some checks failed
Homelab/ansible-playbook-runner/pipeline/head There was a failure building this commit
18 lines
595 B
Docker
18 lines
595 B
Docker
FROM alpine:latest
|
|
|
|
RUN apk add --no-cache python3 py-pip openssl ca-certificates bash git sudo zip rsync \
|
|
&& apk --no-cache add --virtual build-dependencies build-base python3-dev libffi-dev openssl-dev curl \
|
|
&& pip install --upgrade pip cffi \
|
|
&& pip install ansible \
|
|
&& pip install --upgrade pycrypto pywinrm \
|
|
&& apk --no-cache add sshpass openssh-client \
|
|
&& apk del build-dependencies
|
|
|
|
RUN addgroup -S jenkins && adduser -S jenkins -G jenkins && mkdir -p /home/jenkins/agent
|
|
USER jenkins
|
|
WORKDIR /home/jenkins/agent
|
|
|
|
CMD ["ansible-playbook", "--version"]
|
|
|
|
|