mirror of
https://github.com/Burnett01/rsync-deployments.git
synced 2024-11-24 00:13:46 +01:00
Add an autostart, for autoloading from the "ssh_private_key" env var.
This commit is contained in:
parent
c9f5dd48ad
commit
17bbc35df4
2 changed files with 5 additions and 1 deletions
|
@ -9,7 +9,7 @@ RUN rm -rf /var/cache/apk/*
|
|||
RUN mkdir ~/.ssh
|
||||
|
||||
# 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/
|
||||
RUN chmod +x /bin/agent-* /bin/hosts-*
|
||||
|
||||
|
|
4
agent-autostart
Normal file
4
agent-autostart
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
source agent-start
|
||||
echo "$SSH_PRIVATE_KEY" | agent-add
|
Loading…
Reference in a new issue