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

ssh example, but -slim instead of -alpine #1105

Open
johny-b opened this issue Mar 2, 2023 · 0 comments
Open

ssh example, but -slim instead of -alpine #1105

johny-b opened this issue Mar 2, 2023 · 0 comments

Comments

@johny-b
Copy link
Contributor

johny-b commented Mar 2, 2023

  1. examples/ssh is a nice place to start with the VPN
  2. Many things don't work on -alpine images - e.g. pip3 install ray in my case, but this seems more general (from this article (...) some teams are moving away from alpine because these images can cause compatibility issues that are hard to debug. Specifically, if using python images, some wheels are built to be compatible with Debian and will need to be recompiled to work with an Apline-based image.
  3. Running the same example on a -slim image requires some non-trivial (... for me) changes.

I think these non-trivial changes include:

RUN apt-get update
RUN apt-get install -y openssh-server iproute2 tcpdump net-tools screen

instead of

RUN apk add --no-cache --update bash openssh iproute2 tcpdump net-tools screen

and

script.run("/bin/bash", "-c", "ssh-keygen -A")
script.run("/bin/bash", "-c", f'echo -e "{password}\n{password}" | passwd')
script.run("/bin/bash", "-c", "service ssh start")

instead of

script.run("/bin/bash", "-c", "syslogd")
script.run("/bin/bash", "-c", "ssh-keygen -A")
script.run("/bin/bash", "-c", f'echo -e "{password}\n{password}" | passwd')
script.run("/bin/bash", "-c", "/usr/sbin/sshd")
@johny-b johny-b changed the title ssh example, but -slim instead of `-alpine' ssh example, but -slim instead of -alpine Mar 2, 2023
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

No branches or pull requests

1 participant