FROM centos:centos7 MAINTAINER Robert Cowham "rcowham@perforce.com" RUN yum update -y; \ yum install -y sudo; \ yum install -y wget; \ yum groupinstall -y "Development tools"; \ yum install -y zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel; \ yum install -y openssl-devel; \ yum clean -y all; \ echo /usr/local/lib>> /etc/ld.so.conf; \ sed -ie "s/^Defaults[ \t]*requiretty/#Defaults requiretty/g" /etc/sudoers # Python 3.4 RUN cd /tmp; \ wget -q http://www.python.org/ftp/python/3.4.2/Python-3.4.2.tar.xz; \ tar xJf ./Python-3.4.2.tar.xz; \ cd ./Python-3.4.2; \ ./configure --prefix=/usr/local --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"; \ make; \ make altinstall; \ cd /tmp; \ rm -rf ./Python-3.4.2.xz ./Python-3.4.2 # Build P4Python RUN pip3.4 install p4python