| 1 |
FROM centos:7 |
| 2 |
MAINTAINER Chad Barraford <[email protected]> |
| 3 |
|
| 4 |
# EPEL |
| 5 |
RUN yum -y install epel-release |
| 6 |
|
| 7 |
# RPMForge |
| 8 |
RUN rpm -Uvh http://mirror.chpc.utah.edu/pub/repoforge/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm |
| 9 |
|
| 10 |
# SSH |
| 11 |
EXPOSE 22 |
| 12 |
RUN yum -y groupinstall "Development tools" |
| 13 |
RUN yum -y install rsyslog screen passwd java-1.7.0-openjdk sudo wget git python3 tar python3-devel mercurial gcc glibc-devel xorg-x11-server-Xvfb firefox pam-devel |
| 14 |
|
| 15 |
|
| 16 |
# There's a networking bug with some versions of git which sometimes causes |
| 17 |
# 'go get' to hang; force a git update. |
| 18 |
# |
| 19 |
# http://stackoverflow.com/questions/21820715/how-to-install-latest-version-of-git-on-centos-6-x |
| 20 |
# https://groups.google.com/forum/#!topic/golang-nuts/RKz9ASmJm3o |
| 21 |
RUN yum -y --disablerepo=base,updates --enablerepo=rpmforge-extras update git |
| 22 |
|
| 23 |
RUN yum install -y python3-setuptools python3-unittest2 |
| 24 |
RUN yum install -y R curl libcurl-devel |
| 25 |
|
| 26 |
RUN yum -y install centos-release-scl |
| 27 |
RUN yum -y install devtoolset-11 |
| 28 |
|
| 29 |
# Use cmake 3.21.3 (newer is probably fine too). Must avoid 3.18-3.20 due to %posttrans issue |
| 30 |
RUN wget -q https://github.com/Kitware/CMake/releases/download/v3.21.3/cmake-3.21.3-linux-x86_64.tar.gz |
| 31 |
RUN tar xzf cmake-3.21.3-linux-x86_64.tar.gz -C /usr/local --strip-components=1 |
| 32 |
|
| 33 |
# create jenkins user, make sudo. try to keep this toward the bottom for less cache busting |
| 34 |
ARG JENKINS_GID=512 |
| 35 |
ARG JENKINS_UID=512 |
| 36 |
RUN groupadd -g $JENKINS_GID jenkins && \ |
| 37 |
useradd -m -d /var/lib/jenkins -u $JENKINS_UID -g jenkins jenkins && \ |
| 38 |
echo "jenkins ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers |