-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
examples/sshis a nice place to start with the VPN- Many things don't work on
-alpineimages - e.g.pip3 install rayin 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. - Running the same example on a
-slimimage 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")
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels