Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable ssh in debug docker for jepsen tests #2693

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

muhamadazmy
Copy link
Contributor

Enable ssh in debug docker for jepsen tests

Summary:
Making sure that opensshd is running inside the debug docker
containers for the jepsen tests to be able to work against
containers

To allow this, we use a simple process manager (zinit) as an entry
point and configure it to run 2 processes

  • restate
  • sshd

You can add user keys to the container (in runtime)
by setting the SSH_USERS env var to a space separated
list of usernames. The container will fetch the user
keys from github (if you have your ssh public keys)

For example in docker compose make sure to include

SSH_USERS: "<your github username>"

So your key is automatically added to the container(s)

Summary:
Making sure that opensshd is running inside the debug docker
containers for the jepsen tests to be able to work against
containers

To allow this, we use a simple process manager (zinit) as an entry
point and configure it to run 2 processes
- restate
- sshd

You can add user keys to the container (in runtime)
by setting the `SSH_USERS` env var to a space separated
list of usernames. The container will fetch the user
keys from github (if you have your ssh public keys)

For example in docker compose make sure to include
```
SSH_USERS: "<your github username>"
```
So your key is automatically added to the container(s)
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.

1 participant