Added Dockerfile for leapcode/ruby
authorvarac <varacanero@zeromail.org>
Thu, 21 Jul 2016 21:35:20 +0000 (23:35 +0200)
committervarac <varacanero@zeromail.org>
Thu, 21 Jul 2016 21:35:20 +0000 (23:35 +0200)
docker/README.md [new file with mode: 0644]
docker/ruby/Dockerfile [new file with mode: 0644]

diff --git a/docker/README.md b/docker/README.md
new file mode 100644 (file)
index 0000000..0721b34
--- /dev/null
@@ -0,0 +1,10 @@
+# Build
+
+    cd ruby
+    docker build -t leapcode/ruby:2.1-slim .
+
+# Push images
+
+    docker logout
+    docker login -u leapcode
+    docker push leapcode/ruby:2.1-slim
diff --git a/docker/ruby/Dockerfile b/docker/ruby/Dockerfile
new file mode 100644 (file)
index 0000000..44cd04e
--- /dev/null
@@ -0,0 +1,15 @@
+# start with a fresh official ruby image
+# https://hub.docker.com/_/ruby/
+FROM ruby:2.1-slim
+
+MAINTAINER LEAP Encryption Access Project <info@leap.se>
+LABEL Description="Ruby 2.1 including sudo and build tools to build leap_cli etc" Vendor="LEAP" Version="1.0"
+
+# for unknown reason, "rake install" fails in docker, even if the userid is 0
+# so we need to install sudo to use "sudo rake install"
+RUN apt-get update
+RUN apt-get -y install sudo
+
+# install leap_cli prerequisites, see https://0xacab.org/leap/leap_cli
+RUN apt-get -y install git ruby ruby-dev rsync openssh-client openssl rake gcc make zlib1g-dev
+