Skip to content

Add rrsync sidecar docker image - #315

Open
mwestphall wants to merge 1 commit into
opensciencegrid:mainfrom
mwestphall:INF-3810-artifacts-server-rsync-sidecar
Open

Add rrsync sidecar docker image#315
mwestphall wants to merge 1 commit into
opensciencegrid:mainfrom
mwestphall:INF-3810-artifacts-server-rsync-sidecar

Conversation

@mwestphall

Copy link
Copy Markdown
Contributor

Adds a new container to contrib that runs sshd and rrsync to allow rsync-over-ssh, but no shell access, to a bind-mounted volume. Intended to run as a sidecar to another container.

@matyasselmeci matyasselmeci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few tweaks but overall fine. Pre-approving.

Comment thread contrib/rrsync/Dockerfile

RUN mkdir /data

RUN mkdir -p -m0755 /run/sshd && \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might need to create /run/sshd in the entryping, since /run can be a tmpfs.

Comment thread contrib/rrsync/README.md
Comment on lines +20 to +23
docker run --detach --name rsync-ssh \
-v ~/authorized_keys:/root/.ssh/authorized_keys \
-v ~/mydata:/data \
-p2222:22 rsync-ssh

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
docker run --detach --name rsync-ssh \
-v ~/authorized_keys:/root/.ssh/authorized_keys \
-v ~/mydata:/data \
-p2222:22 rsync-ssh
docker run --detach --name rrsync \
-v ~/authorized_keys:/root/.ssh/authorized_keys \
-v ~/mydata:/data \
-p2222:22 rrsync

Also, maybe bind-mount /etc/ssh/keys so they're persisted between runs?

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