summaryrefslogtreecommitdiff
path: root/Dockerfile.openssl3
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile.openssl3')
-rw-r--r--Dockerfile.openssl317
1 files changed, 17 insertions, 0 deletions
diff --git a/Dockerfile.openssl3 b/Dockerfile.openssl3
new file mode 100644
index 0000000..4e2e6f6
--- /dev/null
+++ b/Dockerfile.openssl3
@@ -0,0 +1,17 @@
+FROM ubuntu:22.04
+
+ENV INSTALL_PATH="/netssh"
+
+RUN apt update && apt install -y openssl ruby ruby-dev git build-essential
+
+WORKDIR $INSTALL_PATH
+
+COPY Gemfile net-ssh.gemspec $INSTALL_PATH/
+
+COPY lib/net/ssh/version.rb $INSTALL_PATH/lib/net/ssh/version.rb
+
+RUN ls -l && gem install bundler && bundle install
+
+COPY . $INSTALL_PATH/
+
+CMD openssl version && ruby -ropenssl -e 'puts OpenSSL::OPENSSL_VERSION' && rake test