Public Repository

Last pushed: 3 months ago
Short Description
jenkins with mysql client and rvm (ruby 2.3.3)
Full Description

I have no idea what I'm doing so pull at your own risk :|

FROM jenkins

USER root

COPY jenkins-sudo /etc/sudoers.d/jenkins

RUN apt-get update
RUN apt-get install sudo

#install mysql-client
RUN apt-get install -y mysql-client

#install the necessary binary for mysql2 gem
RUN apt-get install -y libmysqlclient-dev
RUN apt-get install -y nginx openssh-server git-core openssh-client curl
RUN apt-get install -y vim
RUN apt-get install -y build-essential
RUN apt-get install -y openssl libreadline6 libreadline6-dev curl zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config

USER jenkins

RUN /usr/local/bin/ database-mysql:1.1

RUN \curl -L | sudo bash -s stable

#multi user rvm -- to use add jenkins to rvm group
RUN /bin/bash -l -c "sudo usermod -aG rvm jenkins"
RUN /bin/bash -l -c "which rvm"
RUN /bin/bash -l -c "rvm requirements"
RUN /bin/bash -l -c "rvm install 2.3"
ENV PATH "/var/jenkins_home/.rvm/gems/ruby-2.3.3/bin:/var/jenkins_home/.rvm/gems/ruby-2.3.3@global/bin:/var/jenkins_home/.rvm/rubies/ruby-2.3.3/bin:$PATH"
RUN /bin/bash -l -c "gem install bundler --no-ri --no-rdoc"

Docker Pull Command

Comments (0)