Change default user
Some checks failed
Homelab/ansible-playbook-runner/pipeline/head There was a failure building this commit
Some checks failed
Homelab/ansible-playbook-runner/pipeline/head There was a failure building this commit
This commit is contained in:
parent
0f4a6381e1
commit
dd96371917
@ -8,9 +8,9 @@ RUN apk add --no-cache python3 py-pip openssl ca-certificates bash git sudo zip
|
||||
&& apk --no-cache add sshpass openssh-client \
|
||||
&& apk del build-dependencies
|
||||
|
||||
RUN addgroup -S ansible && adduser -S ansible -G ansible
|
||||
USER ansible
|
||||
WORKDIR /home/ansible
|
||||
RUN addgroup -S jenkins && adduser -S jenkins -G jenkins && mkdir -p /home/jenkins/agent
|
||||
USER jenkins
|
||||
WORKDIR /home/jenkins/agent
|
||||
|
||||
CMD ["ansible-playbook", "--version"]
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user