File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
password: ${{ secrets.DOCKER_PASSWORD }}
2424
repository: matthewfeickert/docker-python3-ubuntu
2525
dockerfile: Dockerfile
26-
tags: latest,3.8.7
26+
tags: latest,3.9.10
2727
- name: Build and Publish to Registry with Release Tag
2828
if: startsWith(.ref, 'refs/tags/')
2929
uses: docker/build-push-action@v1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ WORKDIR /root
55

66
SHELL [ "/bin/bash", "-c" ]
77

8-
ARG PYTHON_VERSION_TAG=3.8.7
8+
ARG PYTHON_VERSION_TAG=3.9.10
99
ARG LINK_PYTHON_TO_PYTHON3=1
1010

1111
# Existing lsb_release causes issues with modern installations of Python3
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
default: image
22

3-
all: image py_3.8.7 py_3.8.3 py_3.8.1 py_3.8.0 py_3.7.4 py_3.6.8
3+
all: image py_3.9.10 py_3.8.3 py_3.8.1 py_3.8.0 py_3.7.4 py_3.6.8
44

55
image:
66
docker build . \
77
--pull \
88
-f Dockerfile \
99
--cache-from matthewfeickert/docker-python3-ubuntu:latest \
10-
--build-arg PYTHON_VERSION_TAG=3.8.7 \
10+
--build-arg PYTHON_VERSION_TAG=3.9.10 \
1111
--build-arg LINK_PYTHON_TO_PYTHON3=1 \
1212
-t matthewfeickert/docker-python3-ubuntu:latest \
13-
-t matthewfeickert/docker-python3-ubuntu:3.8.7 \
13+
-t matthewfeickert/docker-python3-ubuntu:3.9.10 \
1414
--compress
1515

16-
py_3.8.7:
16+
py_3.9.10:
1717
docker build . \
1818
--pull \
1919
-f Dockerfile \
2020
--cache-from matthewfeickert/docker-python3-ubuntu:latest \
21-
--build-arg PYTHON_VERSION_TAG=3.8.7 \
21+
--build-arg PYTHON_VERSION_TAG=3.9.10 \
2222
--build-arg LINK_PYTHON_TO_PYTHON3=1 \
2323
-t matthewfeickert/docker-python3-ubuntu:latest \
24-
-t matthewfeickert/docker-python3-ubuntu:3.8.7 \
24+
-t matthewfeickert/docker-python3-ubuntu:3.9.10 \
2525
--compress
2626

2727
py_3.8.3:
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Python3 on Ubuntu Docker
22

3-
Dockerfile for image built off [Ubuntu 20.04](https://wiki.ubuntu.com/FocalFossa/ReleaseNotes/20.04) containing [Python 3.8](https://www.python.org/downloads/release/python-387/) ([Python 3.6](https://www.python.org/downloads/release/python-368/), [Python 3.7](https://www.python.org/downloads/release/python-374/)) built from source
3+
Dockerfile for image built off [Ubuntu 20.04](https://wiki.ubuntu.com/FocalFossa/ReleaseNotes/20.04) containing [Python 3.9](https://www.python.org/downloads/release/python-3910/) ([Python 3.6](https://www.python.org/downloads/release/python-368/), [Python 3.7](https://www.python.org/downloads/release/python-374/), [Python 3.8](https://www.python.org/downloads/release/python-387/) built from source
44

55
[![ Actions Status: CI](https://.com/matthewfeickert/Docker-Python3-Ubuntu/workflows/CI/badge.svg?branch=master)](https://.com/matthewfeickert/Docker-Python3-Ubuntu/actions?query=workflow%3ACI+branch%3Amaster)
66
[![Docker Automated build](https://img.shields.io/docker/automated/matthewfeickert/docker-python3-ubuntu.svg)](https://hub.docker.com/r/matthewfeickert/docker-python3-ubuntu/)
@@ -37,4 +37,4 @@ Dockerfile for image built off [Ubuntu 20.04](https://wiki.ubuntu.com/FocalFossa
3737

3838
### From source
3939

40-
- Python 3.8 (3.6, 3.7)
40+
- Python 3.9 (3.6, 3.7, 3.8)
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ function build_cpython () {
2929
# 2: the Python version being built
3030

3131
# https://docs.python.org/3/using/unix.html#building-python
32+
# https://.com/python/cpython/blob/3.9/README.rst
3233
# https://.com/python/cpython/blob/3.8/README.rst
3334
# https://.com/python/cpython/blob/3.7/README.rst
3435
# https://.com/python/cpython/blob/3.6/README.rst
@@ -78,7 +79,7 @@ function symlink_python_to_python3 {
7879
local python_version
7980
python_version="$(python3 --version)"
8081
local which_python
81-
which_python="$(command -v python3)${python_version:8:-2}"
82+
which_python="$(command -v python3)${python_version:8:2}"
8283
local which_pip
8384
which_pip="$(command -v pip3)"
8485

@@ -101,7 +102,7 @@ function main() {
101102
# 1: the Python version tag
102103
# 2: bool of if should symlink python and pip to python3 versions
103104

104-
PYTHON_VERSION_TAG=3.8.7
105+
PYTHON_VERSION_TAG=3.9.10
105106
LINK_PYTHON_TO_PYTHON3=0 # By default don't link so as to reserve python for Python 2
106107
if [[ $# -gt 0 ]]; then
107108
PYTHON_VERSION_TAG="${1}"

0 commit comments

Comments
 (0)