Public Repository

Last pushed: a year ago
Short Description
A basic runtime for jenkins and rvm to work
Full Description

A basic runtime for jenkins and rvm to work

Dockerfile:

FROM ubuntu:latest
MAINTAINER Tsung-en Hsiao <joshua841025@gmail.com>

RUN locale-gen en_US.UTF-8
RUN apt-get update && \
    apt-get upgrade -y && \
    apt-get install -y --no-install-recommends curl git openssh-server openjdk-8-jre-headless sudo nodejs

ENV LANG en_US.UTF-8 
ENV LANGUAGE en_US:en 
ENV LC_ALL en_US.UTF-8

RUN mkdir /var/run/sshd
RUN useradd -m jenkins
RUN echo "jenkins:jenkins" | chpasswd
RUN echo "jenkins ALL=(ALL) NOPASSWD: /usr/bin/apt-get" >> /etc/sudoers

USER jenkins
RUN cd /home/jenkins
RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
RUN curl -sSL https://get.rvm.io | bash -s stable
RUN /bin/bash -c 'source ~/.rvm/scripts/rvm && rvm requirements'

USER root
EXPOSE 22
Docker Pull Command
Owner
joshua5201

Comments (0)