Last active
April 24, 2017 21:18
-
-
Save cdenneen/cb570c374e836ede65e7002700bf1819 to your computer and use it in GitHub Desktop.
Add RVM to jenkins image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jenkins@5adf47735901:/$ ls -la ~/.bash* | |
-rw-r--r-- 1 jenkins jenkins 220 Nov 5 21:22 /var/jenkins_home/.bash_logout | |
-rw-r--r-- 1 jenkins jenkins 3515 Nov 5 21:22 /var/jenkins_home/.bashrc | |
jenkins@5adf47735901:/$ \curl -L https://get.rvm.io | bash -s stable | |
jenkins@5adf47735901:/$ ls -la ~/.bash* | |
-rw-r--r-- 1 jenkins jenkins 220 Nov 5 21:22 /var/jenkins_home/.bash_logout | |
-rw-r--r-- 1 jenkins jenkins 200 Apr 24 15:35 /var/jenkins_home/.bash_profile | |
-rw-r--r-- 1 jenkins jenkins 3633 Apr 24 15:35 /var/jenkins_home/.bashrc | |
jenkins@5adf47735901:/$ bash -l -c "source ~/.bash_profile" | |
jenkins@5adf47735901:/$ bash -l -c "which rvm" | |
/var/jenkins_home/.rvm/bin/rvm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/src# docker build -t cdenneen/jenkinsrvm:latest . | |
Sending build context to Docker daemon 21.82 GB | |
Step 1/8 : FROM jenkinsci/jenkins | |
---> 24562b76022f | |
Step 2/8 : MAINTAINER Chris Denneen "[email protected]" | |
---> Running in deb44fb51a5d | |
---> f008d0a762f9 | |
Removing intermediate container deb44fb51a5d | |
Step 3/8 : USER root | |
---> Running in 0c23f5e18d72 | |
---> a16a4f57b848 | |
Removing intermediate container 0c23f5e18d72 | |
Step 4/8 : RUN apt-get update && apt-get install -y build-essential libyaml-dev ruby-dev | |
---> Running in ca88c48ee077 | |
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB] | |
Ign http://deb.debian.org jessie InRelease | |
Get:2 http://deb.debian.org jessie-updates InRelease [145 kB] | |
Get:3 http://deb.debian.org jessie-backports InRelease [166 kB] | |
Get:4 http://deb.debian.org jessie Release.gpg [2373 B] | |
Get:5 http://deb.debian.org jessie Release [148 kB] | |
Get:6 http://security.debian.org jessie/updates/main amd64 Packages [507 kB] | |
Get:7 http://deb.debian.org jessie-updates/main amd64 Packages [17.6 kB] | |
Get:8 http://deb.debian.org jessie-backports/main amd64 Packages [1145 kB] | |
Get:9 http://deb.debian.org jessie/main amd64 Packages [9049 kB] | |
Fetched 11.2 MB in 6s (1871 kB/s) | |
Reading package lists... | |
Reading package lists... | |
Building dependency tree... | |
Reading state information... | |
The following extra packages will be installed: | |
binutils cpp cpp-4.9 dpkg-dev fakeroot g++ g++-4.9 gcc gcc-4.9 | |
libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl | |
libasan1 libatomic1 libc-dev-bin libc6-dev libcilkrts5 libcloog-isl4 | |
libdpkg-perl libfakeroot libfile-fcntllock-perl libgcc-4.9-dev libgmp-dev | |
libgmpxx4ldbl libgomp1 libisl10 libitm1 liblsan0 libmpc3 libmpfr4 | |
libquadmath0 libruby2.1 libstdc++-4.9-dev libtimedate-perl libtsan0 | |
libubsan0 libyaml-0-2 linux-libc-dev make manpages manpages-dev patch | |
ruby2.1-dev | |
Suggested packages: | |
binutils-doc cpp-doc gcc-4.9-locales debian-keyring g++-multilib | |
g++-4.9-multilib gcc-4.9-doc libstdc++6-4.9-dbg gcc-multilib autoconf | |
automake libtool flex bison gdb gcc-doc gcc-4.9-multilib libgcc1-dbg | |
libgomp1-dbg libitm1-dbg libatomic1-dbg libasan1-dbg liblsan0-dbg | |
libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libquadmath0-dbg glibc-doc | |
libgmp10-doc libmpfr-dev libstdc++-4.9-doc libyaml-doc make-doc man-browser | |
ed diffutils-doc | |
Recommended packages: | |
libstdc++-4.8-dev libstdc++-dev | |
The following NEW packages will be installed: | |
binutils build-essential cpp cpp-4.9 dpkg-dev fakeroot g++ g++-4.9 gcc | |
gcc-4.9 libalgorithm-diff-perl libalgorithm-diff-xs-perl | |
libalgorithm-merge-perl libasan1 libatomic1 libc-dev-bin libc6-dev | |
libcilkrts5 libcloog-isl4 libdpkg-perl libfakeroot libfile-fcntllock-perl | |
libgcc-4.9-dev libgmp-dev libgmpxx4ldbl libgomp1 libisl10 libitm1 liblsan0 | |
libmpc3 libmpfr4 libquadmath0 libruby2.1 libstdc++-4.9-dev libtimedate-perl | |
libtsan0 libubsan0 libyaml-0-2 libyaml-dev linux-libc-dev make manpages | |
manpages-dev patch ruby-dev ruby2.1-dev | |
0 upgraded, 46 newly installed, 0 to remove and 3 not upgraded. | |
Need to get 55.2 MB of archives. | |
After this operation, 165 MB of additional disk space will be used. | |
Get:1 http://security.debian.org/ jessie/updates/main linux-libc-dev amd64 3.16.39-1+deb8u2 [1046 kB] | |
Get:2 http://deb.debian.org/debian/ jessie/main libasan1 amd64 4.9.2-10 [195 kB] | |
Get:3 http://deb.debian.org/debian/ jessie/main libatomic1 amd64 4.9.2-10 [8992 B] | |
Get:4 http://deb.debian.org/debian/ jessie/main libcilkrts5 amd64 4.9.2-10 [40.1 kB] | |
Get:5 http://deb.debian.org/debian/ jessie/main libisl10 amd64 0.12.2-2 [440 kB] | |
Get:6 http://deb.debian.org/debian/ jessie/main libcloog-isl4 amd64 0.18.2-1+b2 [61.8 kB] | |
Get:7 http://deb.debian.org/debian/ jessie/main libgmpxx4ldbl amd64 2:6.0.0+dfsg-6 [22.1 kB] | |
Get:8 http://deb.debian.org/debian/ jessie/main libgomp1 amd64 4.9.2-10 [37.8 kB] | |
Get:9 http://deb.debian.org/debian/ jessie/main libitm1 amd64 4.9.2-10 [29.2 kB] | |
Get:10 http://deb.debian.org/debian/ jessie/main liblsan0 amd64 4.9.2-10 [92.8 kB] | |
Get:11 http://deb.debian.org/debian/ jessie/main libmpfr4 amd64 3.1.2-2 [527 kB] | |
Get:12 http://deb.debian.org/debian/ jessie/main libquadmath0 amd64 4.9.2-10 [129 kB] | |
Get:13 http://deb.debian.org/debian/ jessie/main libtsan0 amd64 4.9.2-10 [212 kB] | |
Get:14 http://deb.debian.org/debian/ jessie/main libubsan0 amd64 4.9.2-10 [82.4 kB] | |
Get:15 http://deb.debian.org/debian/ jessie/main libyaml-0-2 amd64 0.1.6-3 [50.4 kB] | |
Get:16 http://deb.debian.org/debian/ jessie/main libmpc3 amd64 1.0.2-1 [39.3 kB] | |
Get:17 http://deb.debian.org/debian/ jessie/main manpages all 3.74-1 [997 kB] | |
Get:18 http://deb.debian.org/debian/ jessie/main patch amd64 2.7.5-1 [109 kB] | |
Get:19 http://deb.debian.org/debian/ jessie/main binutils amd64 2.25-5 [3516 kB] | |
Get:20 http://deb.debian.org/debian/ jessie/main libc-dev-bin amd64 2.19-18+deb8u7 [238 kB] | |
Get:21 http://deb.debian.org/debian/ jessie/main libc6-dev amd64 2.19-18+deb8u7 [2002 kB] | |
Get:22 http://deb.debian.org/debian/ jessie/main cpp-4.9 amd64 4.9.2-10 [5169 kB] | |
Get:23 http://deb.debian.org/debian/ jessie/main cpp amd64 4:4.9.2-2 [17.3 kB] | |
Get:24 http://deb.debian.org/debian/ jessie/main libgcc-4.9-dev amd64 4.9.2-10 [2066 kB] | |
Get:25 http://deb.debian.org/debian/ jessie/main gcc-4.9 amd64 4.9.2-10 [5352 kB] | |
Get:26 http://deb.debian.org/debian/ jessie/main gcc amd64 4:4.9.2-2 [5136 B] | |
Get:27 http://deb.debian.org/debian/ jessie/main libstdc++-4.9-dev amd64 4.9.2-10 [1121 kB] | |
Get:28 http://deb.debian.org/debian/ jessie/main g++-4.9 amd64 4.9.2-10 [21.4 MB] | |
Get:29 http://deb.debian.org/debian/ jessie/main g++ amd64 4:4.9.2-2 [1530 B] | |
Get:30 http://deb.debian.org/debian/ jessie/main make amd64 4.0-8.1 [349 kB] | |
Get:31 http://deb.debian.org/debian/ jessie/main libtimedate-perl all 2.3000-2 [42.2 kB] | |
Get:32 http://deb.debian.org/debian/ jessie/main libdpkg-perl all 1.17.27 [1075 kB] | |
Get:33 http://deb.debian.org/debian/ jessie/main dpkg-dev all 1.17.27 [1548 kB] | |
Get:34 http://deb.debian.org/debian/ jessie/main build-essential amd64 11.7 [7114 B] | |
Get:35 http://deb.debian.org/debian/ jessie/main libfakeroot amd64 1.20.2-1 [44.7 kB] | |
Get:36 http://deb.debian.org/debian/ jessie/main fakeroot amd64 1.20.2-1 [84.7 kB] | |
Get:37 http://deb.debian.org/debian/ jessie/main libalgorithm-diff-perl all 1.19.02-3 [51.7 kB] | |
Get:38 http://deb.debian.org/debian/ jessie/main libalgorithm-diff-xs-perl amd64 0.04-3+b1 [12.2 kB] | |
Get:39 http://deb.debian.org/debian/ jessie/main libalgorithm-merge-perl all 0.08-2 [13.5 kB] | |
Get:40 http://deb.debian.org/debian/ jessie/main libfile-fcntllock-perl amd64 0.22-1+b1 [36.4 kB] | |
Get:41 http://deb.debian.org/debian/ jessie/main libgmp-dev amd64 2:6.0.0+dfsg-6 [621 kB] | |
Get:42 http://deb.debian.org/debian/ jessie/main libyaml-dev amd64 0.1.6-3 [59.7 kB] | |
Get:43 http://deb.debian.org/debian/ jessie/main manpages-dev all 3.74-1 [1865 kB] | |
Get:44 http://deb.debian.org/debian/ jessie/main libruby2.1 amd64 2.1.5-2+deb8u3 [3290 kB] | |
Get:45 http://deb.debian.org/debian/ jessie/main ruby2.1-dev amd64 2.1.5-2+deb8u3 [1101 kB] | |
Get:46 http://deb.debian.org/debian/ jessie/main ruby-dev all 1:2.1.5+deb8u2 [8364 B] | |
debconf: delaying package configuration, since apt-utils is not installed | |
Fetched 55.2 MB in 6s (8614 kB/s) | |
Selecting previously unselected package libasan1:amd64. | |
(Reading database ... 17573 files and directories currently installed.) | |
Preparing to unpack .../libasan1_4.9.2-10_amd64.deb ... | |
Unpacking libasan1:amd64 (4.9.2-10) ... | |
Selecting previously unselected package libatomic1:amd64. | |
Preparing to unpack .../libatomic1_4.9.2-10_amd64.deb ... | |
Unpacking libatomic1:amd64 (4.9.2-10) ... | |
Selecting previously unselected package libcilkrts5:amd64. | |
Preparing to unpack .../libcilkrts5_4.9.2-10_amd64.deb ... | |
Unpacking libcilkrts5:amd64 (4.9.2-10) ... | |
Selecting previously unselected package libisl10:amd64. | |
Preparing to unpack .../libisl10_0.12.2-2_amd64.deb ... | |
Unpacking libisl10:amd64 (0.12.2-2) ... | |
Selecting previously unselected package libcloog-isl4:amd64. | |
Preparing to unpack .../libcloog-isl4_0.18.2-1+b2_amd64.deb ... | |
Unpacking libcloog-isl4:amd64 (0.18.2-1+b2) ... | |
Selecting previously unselected package libgmpxx4ldbl:amd64. | |
Preparing to unpack .../libgmpxx4ldbl_2%3a6.0.0+dfsg-6_amd64.deb ... | |
Unpacking libgmpxx4ldbl:amd64 (2:6.0.0+dfsg-6) ... | |
Selecting previously unselected package libgomp1:amd64. | |
Preparing to unpack .../libgomp1_4.9.2-10_amd64.deb ... | |
Unpacking libgomp1:amd64 (4.9.2-10) ... | |
Selecting previously unselected package libitm1:amd64. | |
Preparing to unpack .../libitm1_4.9.2-10_amd64.deb ... | |
Unpacking libitm1:amd64 (4.9.2-10) ... | |
Selecting previously unselected package liblsan0:amd64. | |
Preparing to unpack .../liblsan0_4.9.2-10_amd64.deb ... | |
Unpacking liblsan0:amd64 (4.9.2-10) ... | |
Selecting previously unselected package libmpfr4:amd64. | |
Preparing to unpack .../libmpfr4_3.1.2-2_amd64.deb ... | |
Unpacking libmpfr4:amd64 (3.1.2-2) ... | |
Selecting previously unselected package libquadmath0:amd64. | |
Preparing to unpack .../libquadmath0_4.9.2-10_amd64.deb ... | |
Unpacking libquadmath0:amd64 (4.9.2-10) ... | |
Selecting previously unselected package libtsan0:amd64. | |
Preparing to unpack .../libtsan0_4.9.2-10_amd64.deb ... | |
Unpacking libtsan0:amd64 (4.9.2-10) ... | |
Selecting previously unselected package libubsan0:amd64. | |
Preparing to unpack .../libubsan0_4.9.2-10_amd64.deb ... | |
Unpacking libubsan0:amd64 (4.9.2-10) ... | |
Selecting previously unselected package libyaml-0-2:amd64. | |
Preparing to unpack .../libyaml-0-2_0.1.6-3_amd64.deb ... | |
Unpacking libyaml-0-2:amd64 (0.1.6-3) ... | |
Selecting previously unselected package libmpc3:amd64. | |
Preparing to unpack .../libmpc3_1.0.2-1_amd64.deb ... | |
Unpacking libmpc3:amd64 (1.0.2-1) ... | |
Selecting previously unselected package manpages. | |
Preparing to unpack .../manpages_3.74-1_all.deb ... | |
Unpacking manpages (3.74-1) ... | |
Selecting previously unselected package patch. | |
Preparing to unpack .../patch_2.7.5-1_amd64.deb ... | |
Unpacking patch (2.7.5-1) ... | |
Selecting previously unselected package binutils. | |
Preparing to unpack .../binutils_2.25-5_amd64.deb ... | |
Unpacking binutils (2.25-5) ... | |
Selecting previously unselected package libc-dev-bin. | |
Preparing to unpack .../libc-dev-bin_2.19-18+deb8u7_amd64.deb ... | |
Unpacking libc-dev-bin (2.19-18+deb8u7) ... | |
Selecting previously unselected package linux-libc-dev:amd64. | |
Preparing to unpack .../linux-libc-dev_3.16.39-1+deb8u2_amd64.deb ... | |
Unpacking linux-libc-dev:amd64 (3.16.39-1+deb8u2) ... | |
Selecting previously unselected package libc6-dev:amd64. | |
Preparing to unpack .../libc6-dev_2.19-18+deb8u7_amd64.deb ... | |
Unpacking libc6-dev:amd64 (2.19-18+deb8u7) ... | |
Selecting previously unselected package cpp-4.9. | |
Preparing to unpack .../cpp-4.9_4.9.2-10_amd64.deb ... | |
Unpacking cpp-4.9 (4.9.2-10) ... | |
Selecting previously unselected package cpp. | |
Preparing to unpack .../cpp_4%3a4.9.2-2_amd64.deb ... | |
Unpacking cpp (4:4.9.2-2) ... | |
Selecting previously unselected package libgcc-4.9-dev:amd64. | |
Preparing to unpack .../libgcc-4.9-dev_4.9.2-10_amd64.deb ... | |
Unpacking libgcc-4.9-dev:amd64 (4.9.2-10) ... | |
Selecting previously unselected package gcc-4.9. | |
Preparing to unpack .../gcc-4.9_4.9.2-10_amd64.deb ... | |
Unpacking gcc-4.9 (4.9.2-10) ... | |
Selecting previously unselected package gcc. | |
Preparing to unpack .../gcc_4%3a4.9.2-2_amd64.deb ... | |
Unpacking gcc (4:4.9.2-2) ... | |
Selecting previously unselected package libstdc++-4.9-dev:amd64. | |
Preparing to unpack .../libstdc++-4.9-dev_4.9.2-10_amd64.deb ... | |
Unpacking libstdc++-4.9-dev:amd64 (4.9.2-10) ... | |
Selecting previously unselected package g++-4.9. | |
Preparing to unpack .../g++-4.9_4.9.2-10_amd64.deb ... | |
Unpacking g++-4.9 (4.9.2-10) ... | |
Selecting previously unselected package g++. | |
Preparing to unpack .../g++_4%3a4.9.2-2_amd64.deb ... | |
Unpacking g++ (4:4.9.2-2) ... | |
Selecting previously unselected package make. | |
Preparing to unpack .../make_4.0-8.1_amd64.deb ... | |
Unpacking make (4.0-8.1) ... | |
Selecting previously unselected package libtimedate-perl. | |
Preparing to unpack .../libtimedate-perl_2.3000-2_all.deb ... | |
Unpacking libtimedate-perl (2.3000-2) ... | |
Selecting previously unselected package libdpkg-perl. | |
Preparing to unpack .../libdpkg-perl_1.17.27_all.deb ... | |
Unpacking libdpkg-perl (1.17.27) ... | |
Selecting previously unselected package dpkg-dev. | |
Preparing to unpack .../dpkg-dev_1.17.27_all.deb ... | |
Unpacking dpkg-dev (1.17.27) ... | |
Selecting previously unselected package build-essential. | |
Preparing to unpack .../build-essential_11.7_amd64.deb ... | |
Unpacking build-essential (11.7) ... | |
Selecting previously unselected package libfakeroot:amd64. | |
Preparing to unpack .../libfakeroot_1.20.2-1_amd64.deb ... | |
Unpacking libfakeroot:amd64 (1.20.2-1) ... | |
Selecting previously unselected package fakeroot. | |
Preparing to unpack .../fakeroot_1.20.2-1_amd64.deb ... | |
Unpacking fakeroot (1.20.2-1) ... | |
Selecting previously unselected package libalgorithm-diff-perl. | |
Preparing to unpack .../libalgorithm-diff-perl_1.19.02-3_all.deb ... | |
Unpacking libalgorithm-diff-perl (1.19.02-3) ... | |
Selecting previously unselected package libalgorithm-diff-xs-perl. | |
Preparing to unpack .../libalgorithm-diff-xs-perl_0.04-3+b1_amd64.deb ... | |
Unpacking libalgorithm-diff-xs-perl (0.04-3+b1) ... | |
Selecting previously unselected package libalgorithm-merge-perl. | |
Preparing to unpack .../libalgorithm-merge-perl_0.08-2_all.deb ... | |
Unpacking libalgorithm-merge-perl (0.08-2) ... | |
Selecting previously unselected package libfile-fcntllock-perl. | |
Preparing to unpack .../libfile-fcntllock-perl_0.22-1+b1_amd64.deb ... | |
Unpacking libfile-fcntllock-perl (0.22-1+b1) ... | |
Selecting previously unselected package libgmp-dev:amd64. | |
Preparing to unpack .../libgmp-dev_2%3a6.0.0+dfsg-6_amd64.deb ... | |
Unpacking libgmp-dev:amd64 (2:6.0.0+dfsg-6) ... | |
Selecting previously unselected package libyaml-dev:amd64. | |
Preparing to unpack .../libyaml-dev_0.1.6-3_amd64.deb ... | |
Unpacking libyaml-dev:amd64 (0.1.6-3) ... | |
Selecting previously unselected package manpages-dev. | |
Preparing to unpack .../manpages-dev_3.74-1_all.deb ... | |
Unpacking manpages-dev (3.74-1) ... | |
Selecting previously unselected package libruby2.1:amd64. | |
Preparing to unpack .../libruby2.1_2.1.5-2+deb8u3_amd64.deb ... | |
Unpacking libruby2.1:amd64 (2.1.5-2+deb8u3) ... | |
Selecting previously unselected package ruby2.1-dev:amd64. | |
Preparing to unpack .../ruby2.1-dev_2.1.5-2+deb8u3_amd64.deb ... | |
Unpacking ruby2.1-dev:amd64 (2.1.5-2+deb8u3) ... | |
Selecting previously unselected package ruby-dev. | |
Preparing to unpack .../ruby-dev_1%3a2.1.5+deb8u2_all.deb ... | |
Unpacking ruby-dev (1:2.1.5+deb8u2) ... | |
Setting up libasan1:amd64 (4.9.2-10) ... | |
Setting up libatomic1:amd64 (4.9.2-10) ... | |
Setting up libcilkrts5:amd64 (4.9.2-10) ... | |
Setting up libisl10:amd64 (0.12.2-2) ... | |
Setting up libcloog-isl4:amd64 (0.18.2-1+b2) ... | |
Setting up libgmpxx4ldbl:amd64 (2:6.0.0+dfsg-6) ... | |
Setting up libgomp1:amd64 (4.9.2-10) ... | |
Setting up libitm1:amd64 (4.9.2-10) ... | |
Setting up liblsan0:amd64 (4.9.2-10) ... | |
Setting up libmpfr4:amd64 (3.1.2-2) ... | |
Setting up libquadmath0:amd64 (4.9.2-10) ... | |
Setting up libtsan0:amd64 (4.9.2-10) ... | |
Setting up libubsan0:amd64 (4.9.2-10) ... | |
Setting up libyaml-0-2:amd64 (0.1.6-3) ... | |
Setting up libmpc3:amd64 (1.0.2-1) ... | |
Setting up manpages (3.74-1) ... | |
Setting up patch (2.7.5-1) ... | |
Setting up binutils (2.25-5) ... | |
Setting up libc-dev-bin (2.19-18+deb8u7) ... | |
Setting up linux-libc-dev:amd64 (3.16.39-1+deb8u2) ... | |
Setting up libc6-dev:amd64 (2.19-18+deb8u7) ... | |
Setting up cpp-4.9 (4.9.2-10) ... | |
Setting up cpp (4:4.9.2-2) ... | |
Setting up libgcc-4.9-dev:amd64 (4.9.2-10) ... | |
Setting up gcc-4.9 (4.9.2-10) ... | |
Setting up gcc (4:4.9.2-2) ... | |
Setting up libstdc++-4.9-dev:amd64 (4.9.2-10) ... | |
Setting up g++-4.9 (4.9.2-10) ... | |
Setting up g++ (4:4.9.2-2) ... | |
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode | |
Setting up make (4.0-8.1) ... | |
Setting up libtimedate-perl (2.3000-2) ... | |
Setting up libdpkg-perl (1.17.27) ... | |
Setting up dpkg-dev (1.17.27) ... | |
Setting up build-essential (11.7) ... | |
Setting up libfakeroot:amd64 (1.20.2-1) ... | |
Setting up fakeroot (1.20.2-1) ... | |
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode | |
Setting up libalgorithm-diff-perl (1.19.02-3) ... | |
Setting up libalgorithm-diff-xs-perl (0.04-3+b1) ... | |
Setting up libalgorithm-merge-perl (0.08-2) ... | |
Setting up libfile-fcntllock-perl (0.22-1+b1) ... | |
Setting up libgmp-dev:amd64 (2:6.0.0+dfsg-6) ... | |
Setting up libyaml-dev:amd64 (0.1.6-3) ... | |
Setting up manpages-dev (3.74-1) ... | |
Setting up libruby2.1:amd64 (2.1.5-2+deb8u3) ... | |
Setting up ruby2.1-dev:amd64 (2.1.5-2+deb8u3) ... | |
Setting up ruby-dev (1:2.1.5+deb8u2) ... | |
Processing triggers for libc-bin (2.19-18+deb8u7) ... | |
---> b19f69ed7fb2 | |
Removing intermediate container ca88c48ee077 | |
Step 5/8 : USER jenkins | |
---> Running in cf457682def7 | |
---> 068a665dbf19 | |
Removing intermediate container cf457682def7 | |
Step 6/8 : RUN /bin/bash -l -c "curl -L https://get.rvm.io | bash -s stable" | |
---> Running in 26149266d83f | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 194 100 194 0 0 735 0 --:--:-- --:--:-- --:--:-- 737 | |
100 24062 100 24062 0 0 44695 0 --:--:-- --:--:-- --:--:-- 44695 | |
Downloading https://github.com/rvm/rvm/archive/1.29.1.tar.gz | |
Downloading https://github.com/rvm/rvm/releases/download/1.29.1/1.29.1.tar.gz.asc | |
Found PGP signature at: 'https://github.com/rvm/rvm/releases/download/1.29.1/1.29.1.tar.gz.asc', | |
but no GPG software exists to validate it, skipping. | |
Installing RVM to /var/jenkins_home/.rvm/ | |
Adding rvm PATH line to /var/jenkins_home/.profile /var/jenkins_home/.mkshrc /var/jenkins_home/.bashrc /var/jenkins_home/.zshrc. | |
Adding rvm loading line to /var/jenkins_home/.profile /var/jenkins_home/.bash_profile /var/jenkins_home/.zlogin. | |
Installation of RVM in /var/jenkins_home/.rvm/ is almost complete: | |
* To start using RVM you need to run `source /var/jenkins_home/.rvm/scripts/rvm` | |
in all your open shell windows, in rare cases you need to reopen all shell windows. | |
# jenkins, | |
# | |
# Thank you for using RVM! | |
# We sincerely hope that RVM helps to make your life easier and more enjoyable!!! | |
# | |
# ~Wayne, Michal & team. | |
In case of problems: https://rvm.io/help and https://twitter.com/rvm_io | |
---> 012892a56b41 | |
Removing intermediate container 26149266d83f | |
Step 7/8 : RUN /bin/bash -l -c "source ~/.rvm/scripts/rvm" | |
---> Running in 1371b46c18f9 | |
/bin/bash: /var/jenkins_home/.rvm/scripts/rvm: No such file or directory | |
The command '/bin/sh -c /bin/bash -l -c "source ~/.rvm/scripts/rvm"' returned a non-zero code: 1 | |
~/src# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM jenkinsci/jenkins | |
MAINTAINER Chris Denneen "[email protected]" | |
USER root | |
RUN apt-get update && apt-get install -y build-essential libyaml-dev ruby-dev | |
USER jenkins | |
RUN /bin/bash -l -c "curl -L https://get.rvm.io | bash -s stable" | |
RUN /bin/bash -l -c "source ~/.rvm/scripts/rvm" | |
#RUN /bin/bash -l -c "source ~/.bash_profile; rvm requirements" | |
RUN /bin/bash -l -c "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/bin/bash: /var/jenkins_home/.bash_profile: No such file or directory | |
/bin/bash: rvm: command not found |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment