Sha256: 3ab8bc5ba06612dc27fffa5d7bd0d490903ba878edd4b51ab607b29eb801b80a

Contents?: true

Size: 928 Bytes

Versions: 7

Compression:

Stored size: 928 Bytes

Contents

ARG RUBY_VERSION=3.1
FROM ruby:${RUBY_VERSION}

ARG BUNDLERV=

RUN apt update && apt install -y openssh-server sudo netcat-openbsd \
  && 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 ${BUNDLERV}  && bundle install

COPY . $INSTALL_PATH/

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

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
net-ssh-7.3.0 Dockerfile
net-ssh-7.3.0.rc1 Dockerfile
harbr-2.8.1 vendor/bundle/ruby/3.2.0/gems/net-ssh-7.2.1/Dockerfile
net-ssh-7.2.3 Dockerfile
net-ssh-7.2.2.rc1 Dockerfile
net-ssh-7.2.1 Dockerfile
net-ssh-7.2.1.rc1 Dockerfile