Sha256: a13bd23cb0bb5f1993f256533b394015d33440f6bc71cdf33990a896eb8f2a28

Contents?: true

Size: 892 Bytes

Versions: 9

Compression:

Stored size: 892 Bytes

Contents

ARG RUBY_VERSION=3.1
FROM ruby:${RUBY_VERSION}

RUN apt update && apt install -y openssh-server sudo netcat \
  && useradd --create-home --shell '/bin/bash' --comment 'NetSSH' 'net_ssh_1' \
  && useradd --create-home --shell '/bin/bash' --comment 'NetSSH' 'net_ssh_2' \
  && echo net_ssh_1:foopwd | chpasswd \
  && echo net_ssh_2:foo2pwd | chpasswd \
  && mkdir -p /home/net_ssh_1/.ssh \
  && mkdir -p /home/net_ssh_2/.ssh \
  && echo "net_ssh_1 ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers \
  && echo "net_ssh_2 ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers \
  && ssh-keygen -f /etc/ssh/users_ca -N ''

ENV INSTALL_PATH="/netssh"

WORKDIR $INSTALL_PATH

COPY Gemfile net-ssh.gemspec $INSTALL_PATH/

COPY lib/net/ssh/version.rb $INSTALL_PATH/lib/net/ssh/version.rb

RUN gem install bundler && bundle install

COPY . $INSTALL_PATH/

CMD service ssh start && rake test && NET_SSH_NO_ED25519=1 rake test

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
net-ssh-7.2.0.beta1 Dockerfile
net-ssh-7.1.0 Dockerfile
net-ssh-7.1.0.beta2 Dockerfile
net-ssh-7.1.0.beta1 Dockerfile
net-ssh-clone-7.0.1 Dockerfile
net-ssh-7.0.1 Dockerfile
net-ssh-7.0.0 Dockerfile
net-ssh-7.0.0.beta1 Dockerfile
eximius-net-ssh-6.3.1 Dockerfile