Add an autostart, for autoloading from the "ssh_private_key" env var.
This commit is contained in:
parent
c9f5dd48ad
commit
17bbc35df4
|
@ -9,7 +9,7 @@ RUN rm -rf /var/cache/apk/*
|
||||||
RUN mkdir ~/.ssh
|
RUN mkdir ~/.ssh
|
||||||
|
|
||||||
# Copy in our executables.
|
# Copy in our executables.
|
||||||
COPY agent-start agent-stop agent-add /bin/
|
COPY agent-start agent-stop agent-add agent-autostart /bin/
|
||||||
COPY hosts-clear hosts-add /bin/
|
COPY hosts-clear hosts-add /bin/
|
||||||
RUN chmod +x /bin/agent-* /bin/hosts-*
|
RUN chmod +x /bin/agent-* /bin/hosts-*
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
source agent-start
|
||||||
|
echo "$SSH_PRIVATE_KEY" | agent-add
|
Loading…
Reference in New Issue