FROM ubuntu:14.04
MAINTAINER Robert Cowham "rcowham@perforce.com"
RUN sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe"; \
apt-get -y update; \
echo "postfix postfix/mailname string `hostname`" | sudo debconf-set-selections; \
echo "postfix postfix/main_mailer_type string 'No configuration'" | sudo debconf-set-selections; \
sudo apt-get install -y postfix; \
sudo apt-get install -y mailutils; \
sudo apt-get install -y build-essential; \
sudo apt-get install -y wget
# Python 3.3 required - there is apt-get package for Python 3.2 but that is a dodgy release with bugs for P4Python etc.
RUN cd /tmp; \
wget -q http://www.python.org/ftp/python/3.3.6/Python-3.3.6.tar.xz; \
tar xJf ./Python-3.3.6.tar.xz; \
cd ./Python-3.3.6; \
./configure; \
make; \
sudo make install; \
cd /tmp; \
rm -rf ./Python-3.3.6.xz ./Python-3.3.6
# Build P4Python
RUN cd /tmp; \
mkdir p4python; \
cd p4python; \
wget -q ftp://ftp.perforce.com/perforce/r15.1/bin.linux26x86_64/p4api.tgz; \
tar xzf p4api.tgz; \
wget -q ftp://ftp.perforce.com/perforce/r15.1/bin.tools/p4python.tgz; \
tar xzf p4python.tgz; \
P4PYTHON_PATH=`find /tmp/p4python/ -name "p4python-*"`; \
cd $P4PYTHON_PATH; \
API_PATH=`find /tmp/p4python/ -name "p4api-*" -type d`; \
mv setup.cfg setup.cfg.bak; \
echo [p4python_config] > setup.cfg; \
echo p4_api=$API_PATH>> setup.cfg; \
sudo python3 setup.py install; \
cd /tmp; \
rm -rf $P4PYTHON_PATH p4api.tgz p4python.tgz
| # | Change | User | Description | Committed | |
|---|---|---|---|---|---|
| #9 | 27002 | C. Thomas Tyler |
Updated ubuntu tests to add needed utilities, and change from testing Ubuntu 16.04 to 20.04. Changed 'centos' to imply cento7 rather than centos6 (which we shoud drop soon). |
||
| #8 | 25264 | Robert Cowham | Fix Dockerfile error | ||
| #7 | 25263 | Robert Cowham |
Fix Centos permissions Fix ubuntu ssh |
||
| #6 | 25149 | Robert Cowham |
Changes to docker files as part of prep for multi-container work Centos6 & 7 now install python 3.6 from ISU Community as pre-built Refer to p4python==17.2 to avoid need to compile Changes to test infrastructure only |
||
| #5 | 20723 | Robert Cowham |
P4Python 16.1 now requires SSL - so include in the base packages. Note that the versions installed are probably not latest (still security holes) so fine for testing but not production! |
||
| #4 | 19046 | Robert Cowham |
Avoid warnings. Fix pip3 install of p4python. |
||
| #3 | 19045 | Robert Cowham |
Add docker file for Centos7 Refactor to move common stuff to a shell script. |
||
| #2 | 19040 | Robert Cowham |
Tweaks to Docker files. Ubuntu uses packages for Python 3.4. Centos doesn't yet. |
||
| #1 | 19017 | Robert Cowham | Ubuntu basic docker working | ||
| //guest/perforce_software/sdp/dev/test/docker/Dockerfile.base | |||||
| #1 | 19013 | Robert Cowham | Initial docker file | ||