/
Dockerfile.build-inaugurator
50 lines (41 loc) · 1.29 KB
/
Dockerfile.build-inaugurator
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
FROM centos:7.8.2003
MAINTAINER guymenahem@neokarm.com
# Install other tools
RUN yum update -y && \
yum -y clean all
RUN yum install -y \
sudo \
wget \
boost-devel \
boost-static \
openssl-devel \
gcc-c++ \
hwdata \
kexec-tools \
net-tools \
parted \
e2fsprogs \
dosfstools \
lvm2 \
make \
rsync \
ipmitool \
smartmontools && \
yum -y clean all
# Install PIP (obtained from EPEL)
RUN yum install -y epel-release && \
yum install -y python-pip && \
yum -y clean all
# Add the Elrepo repository and install the CCISS driver
RUN rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org && \
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm && \
yum install -y kmod-cciss && \
yum -y clean all
RUN pip2 install --upgrade setuptools==41.2.0 && pip2 install pep8 pika==0.11.2 mock==3.0.5 simplejson
# Edit sudoers file to avoid error: sudo: sorry, you must have a tty to run sudo
RUN sed -i -e "s/Defaults requiretty.*/ #Defaults requiretty/g" /etc/sudoers
# Install busybox with a Fedora RPM since there's no such package for Centos 7
RUN curl http://yum-repo.dc1.strato/repos/busybox/busybox-1.30.1-2.fc31.x86_64.rpm -o temp && \
rpm -ivh temp && \
rm temp
WORKDIR /root/inaugurator