15,024
edits
| Line 210: | Line 210: | ||
== Python version on docker images == | == Python version on docker images == | ||
=== docker image: docker === | |||
* [https://hub.docker.com/_/docker/ library/docker - Docker Hub] python v. 2.7.15 {{access | date=2018-08-30}} | * [https://hub.docker.com/_/docker/ library/docker - Docker Hub] python v. 2.7.15 {{access | date=2018-08-30}} | ||
=== docker image: ubuntu === | |||
[https://hub.docker.com/_/ubuntu/ library/ubuntu - Docker Hub] | |||
<pre> | <pre> | ||
# install python3 on ubuntu:latest image | # install python3 on ubuntu:latest image | ||
| Line 225: | Line 228: | ||
- pip3 -V | - pip3 -V | ||
- pip3 install -r requirements.txt | - pip3 install -r requirements.txt | ||
</pre> | |||
=== docker image: centos === | |||
[https://hub.docker.com/_/centos/ library/centos - Docker Hub] python v. 2.7.5 for tag:centos7 {{access | date=2018-09-06}} | |||
<pre> | |||
# install python3 on centos:centos7 image | |||
image: centos:centos7 | |||
before_script: | |||
- yum install -y gcc zlib-devel wget | |||
- yum groupinstall -y 'Development Tools' | |||
- python -V | |||
- cd /usr/src | |||
# https://www.python.org/downloads/ | |||
- wget https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tgz | |||
- tar xzf Python-3.6.6.tgz | |||
- cd Python-3.6.6 | |||
- ./configure | |||
- make altinstall | |||
- ln -s /usr/src/Python-3.6.6/python python3 | |||
- python3 -V | |||
# https://github.com/pypa/pip/releases | |||
- cd /usr/bin | |||
- wget --no-check-certificate https://github.com/pypa/pip/archive/10.0.1.tar.gz | |||
- tar xzf 10.0.1.tar.gz | |||
- cd pip-10.0.1 | |||
- python3 setup.py install | |||
- pip3 -V | |||
</pre> | </pre> | ||