forked from puppetlabs/puppet-dev-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
52 lines (47 loc) · 2.01 KB
/
Dockerfile
File metadata and controls
52 lines (47 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM centos:7
# Set up the paths for Software Collection Library tools
ENV PATH=/opt/rh/rh-ruby24/root/usr/local/bin:/opt/rh/rh-ruby24/root/usr/bin:/opt/rh/rh-git218/root/usr/local/bin:/opt/rh/rh-git218/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV LD_LIBRARY_PATH=/opt/rh/rh-ruby24/root/usr/local/lib64:/opt/rh/rh-ruby24/root/usr/lib64:/opt/rh/rh-git218/root/usr/local/lib64:/opt/rh/rh-git218/root/usr/lib64
ENV MANPATH=/opt/rh/rh-ruby24/root/usr/local/share/man:/opt/rh/rh-ruby24/root/usr/share/man:/opt/rh/rh-git218/root/usr/local/share/man:/opt/rh/rh-git218/root/usr/share/man
ENV X_SCLS=rh-ruby24,rh-git218
ENV XDG_DATA_DIRS=/opt/rh/rh-ruby24/root/usr/local/share:/opt/rh/rh-ruby24/root/usr/share:/opt/rh/rh-git218/root/usr/local/share:/opt/rh/rh-git218/root/usr/share:/usr/local/share:/usr/share
ENV PKG_CONFIG_PATH=/opt/rh/rh-ruby24/root/usr/local/lib64/pkgconfig:/opt/rh/rh-ruby24/root/usr/lib64/pkgconfig:/opt/rh/rh-git218/root/usr/local/lib64/pkgconfig:/opt/rh/rh-git218/root/usr/lib64/pkgconfig
# Install latest PDK and image dependencies
RUN rpm -i https://pm.puppet.com/cgi-bin/pdk_download.cgi?arch=x86_64\&dist=el\&rel=7\&ver=latest \
&& yum makecache && yum install -y \
make \
gcc \
gcc-c++ \
autoconf \
automake \
patch \
readline \
readline-dev \
zlib \
zlib-devel \
libffi-devel \
libxml2-devel \
openssl-devel \
libgcc \
bash \
wget \
ca-certificates \
centos-release-scl \
&& yum-config-manager --enable rhel-server-rhscl-7-rpms \
&& yum install -y rh-ruby24 rh-ruby24-ruby-devel rh-git218 \
&& yum clean all
#Set up Ruby 2.4. Must be separate from Ruby installed with PDK
# Install dependent gems
RUN gem install --no-ri --no-rdoc r10k \
json \
puppet:5.3.3 \
rubocop \
puppetlabs_spec_helper \
puppet-lint \
onceover \
onceover-codequality \
rest-client \
ra10ke
COPY Rakefile /Rakefile
RUN mkdir -p /repo
WORKDIR /repo