将JVM安装为jenkins用户

时间:2016-05-26 10:27:19

标签: ruby jenkins docker

我正在尝试设置一个安装了jenkins和rvm的docker容器,但每当我尝试安装rvm作为jenkins用户时,我都会收到以下错误

GPG signature verification failed for '/var/jenkins_home/.rvm/archives/rvm-1.27.0.tgz' - 'https://github.com/rvm/rvm/releases/download/1.27.0/1.27.0.tar.gz.asc'! try downloading the signatures:

到目前为止,我的Dockerfile看起来像

FROM jenkins
USER root
# Install some dependencies
RUN apt-get update
RUN apt-get -y -q install curl patch gawk g++ gcc make libc6-dev patch libreadline6-dev zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 autoconf libgmp-dev libgdbm-dev libncurses5-dev automake libtool bison pkg-config libffi-dev
USER jenkins
# Install rvm
RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
RUN \curl -sSL https://get.rvm.io | bash -s stable

输出

Step 6 : RUN \curl -sSL https://get.rvm.io | bash -s stable
---> Running in 45b40000a9f1
Downloading https://github.com/rvm/rvm/archive/1.27.0.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.27.0/1.27.0.tar.gz.asc
gpg: directory `/var/jenkins_home/.gnupg' created
gpg: new configuration file `/var/jenkins_home/.gnupg/gpg.conf' created
gpg: WARNING: options in `/var/jenkins_home/.gnupg/gpg.conf' are not yet active during this run
gpg: keyring `/var/jenkins_home/.gnupg/pubring.gpg' created
gpg: Signature made Tue 29 Mar 2016 01:49:47 PM UTC using RSA key ID BF04FF17
gpg: Can't check signature: public key not found

对我做错的任何想法?

由于

1 个答案:

答案 0 :(得分:1)

我相信你需要做以下事情(当然是jenkins用户:

 <a data-toggle="collapse" data-target="#optional" class="btn btn-default">More Options</a>

...在https://rvm.io/rvm/install指定。