File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,8 @@ RUN apk add --no-cache -U python3-dev build-base openssl-dev libffi-dev cargo &&
81
81
find ${ANSIBLE_VENV_PATH} -iname __pycache__ | xargs rm -rf && \
82
82
chown -R semaphore:0 /opt/semaphore
83
83
84
+ RUN echo 'Host *\n StrictHostKeyChecking no\n UserKnownHostsFile /dev/null' > /etc/ssh/ssh_config.d/semaphore.conf
85
+
84
86
USER 1001
85
87
86
88
ENV VIRTUAL_ENV="$ANSIBLE_VENV_PATH"
Original file line number Diff line number Diff line change @@ -59,6 +59,8 @@ RUN apk add --no-cache -U \
59
59
chown -R semaphore:0 /opt/semaphore && \
60
60
find /usr/lib/python* -iname __pycache__ | xargs rm -rf
61
61
62
+ RUN echo 'Host *\n StrictHostKeyChecking no\n UserKnownHostsFile /dev/null' > /etc/ssh/ssh_config.d/semaphore.conf
63
+
62
64
COPY --chown=1001:0 ./deployment/docker/server/ansible.cfg /etc/ansible/ansible.cfg
63
65
COPY --from=builder /go/src/semaphore/deployment/docker/server/server-wrapper /usr/local/bin/
64
66
COPY --from=builder /go/src/semaphore/bin/semaphore /usr/local/bin/
Original file line number Diff line number Diff line change 1
1
[defaults]
2
2
host_key_checking = False
3
3
bin_ansible_callbacks = True
4
- stdout_callback = yaml
5
-
6
- [ssh_connection]
7
- ssh_args = -o UserKnownHostsFile =/dev/null
4
+ stdout_callback = yaml
You can’t perform that action at this time.
0 commit comments