Skip to content

Conversation

MorganLindqvist
Copy link

Saves ssh keys and authorization keys in a volume between restarts. Using latest alpine image.

Change-Id: I886d0785d981ebf6bceae6f2cb1a1fd089a7ffbb
Change-Id: Idebb63788b0c75af45487a8c6e64b6b9ebfa40dd
Change-Id: Ie0b1aa0ce78600531a340ba34391966836238533
Change-Id: I080f037e88f2623a1801e5ec5592115134804b2f
@MorganLindqvist
Copy link
Author

It solves issue #4 and issue #8

@avoinea avoinea requested a review from valentinab25 June 5, 2022 16:47
@valentinab25
Copy link
Contributor

valentinab25 commented Jun 6, 2022

@MorganLindqvist - Why do you need to declare /data as a volume in Dockerfile ? If you want key persistence , it's enough to declare in your docker-compose / docker command /root/.ssh as a volume.

Is there a reason you need it to be another directory ?
Example:

docker run --name=rsync_client -v client_vol_to_sync:/data \
                 -v ssh-key:/root/.ssh \
                 -e CRON_TASK_1="0 1 * * * /data/pack-db.sh" \
                 -e CRON_TASK_2="0 3 * * * rsync -e 'ssh -p 2222' -aqx --numeric-ids [email protected]:/data/ /data/" \
             eeacms/rsync client

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants