Skip to content

Commit cad5bb4

Browse files
author
Mike Place
authored
Merge pull request cachedout#37 from terminalmage/cent6-cpp
Update cent6 Dockerfile for python2.7, cffi
2 parents c39f05e + 11c0893 commit cad5bb4

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

cent6/Dockerfile

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,18 @@ FROM centos:6
33
COPY base.txt /base.txt
44
COPY dev_python27.txt /dev_python27.txt
55

6-
RUN yum -y install wget gcc git vim
6+
RUN yum -y install epel-release
7+
RUN yum -y install wget gcc gcc-c++ git vim libffi-devel
78
RUN yum install -y https://repo.saltstack.com/yum/redhat/salt-repo-latest-2.el6.noarch.rpm
89
RUN yum clean expire-cache
910

10-
RUN yum -y install salt-master
11-
RUN yum -y install salt-minion
12-
RUN yum -y install salt-ssh
13-
RUN yum -y install salt-syndic
14-
RUN yum -y install salt-cloud
15-
RUN yum -y install salt-api
16-
17-
RUN yum -y install epel-release
18-
19-
RUN yum -y install python-pip
20-
RUN yum -y install python-devel
11+
RUN yum -y install salt-master salt-minion salt-ssh salt-syndic salt-cloud salt-api
2112

22-
RUN pip install -r /dev_python27.txt
13+
RUN yum -y install python27-pip python27-devel
14+
RUN pip2.7 install -r /dev_python27.txt
2315

2416
# Install pudb, get rid of welcome message, and turn on line numbers
25-
RUN pip install pudb
17+
RUN pip2.7 install pudb
2618
RUN sed -i 's/seen_welcome = .\+/seen_welcome = e033/' /root/.config/pudb/pudb.cfg
2719
RUN sed -i 's/line_numbers = .\+/line_numbers = True/' /root/.config/pudb/pudb.cfg
2820

cent6/dev_python27.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
-r base.txt
22

3+
# Older cffi needed because newer cffi requires newer libffi
4+
cffi==0.6
35
mock
46
apache-libcloud>=0.14.0
57
boto>=2.32.1

0 commit comments

Comments
 (0)