Skip to content

Commit 32f2a44

Browse files
authored
update Dockerfile to pin to Python 3.9 (#29)
fixes #28
1 parent 04410b6 commit 32f2a44

6 files changed

Lines changed: 74 additions & 9 deletions

File tree

errata.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
# Errata for *Book Title*
22

3-
On **page xx** [Summary of error]:
3+
On **page 6** [Figure captions interchanged]:
44

5-
Details of error here. Highlight key pieces in **bold**.
5+
On page 6 and page 7, the captions for **Figure 1-1 and Figure 1-2 are interchanged**. The caption for Figure 1-1 should read _Representation of three apps running on three different virtual machines_ and the caption for Figure 1-2 should read _Representation of three apps running on three different containers_.
66

77
***
88

9-
On **page xx** [Summary of error]:
9+
On **page 27** [Extra word on the sentence about inter-daemon communication]:
1010

11-
Details of error here. Highlight key pieces in **bold**.
11+
On page 27, in the chapter paragraph about Docker daemon, the example sentence mentions _Some examples of inter-daemon communication include communication Datadog for container metrics monitoring and Aqua for container security monitoring_. This should **actually read** _Some examples of inter-daemon communication include Datadog for container metrics monitoring and Aqua for container security monitoring_
1212

13-
***
13+
***
14+
15+
16+
For the **Telegram chat bot exercises** [Docker image has been updated]:
17+
18+
The exercises refer to Docker iamge to be used as `FROM python:3-alpine`. Due to some breaking changes in Python versions and dependencies, this causes **Docker image to not build**.
19+
For this reason, the Docker images have been **updated** to refer to **Python 3.9** image and as a result, the FROM line has been updated to `FROM python:3.9-alpine` in place of the existing `FROM python:3-alpine`.
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
5+
# C extensions
6+
*.so
7+
8+
# Distribution / packaging
9+
.Python
10+
env/
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
*.egg-info/
23+
.installed.cfg
24+
*.egg
25+
26+
# PyInstaller
27+
# Usually these files are written by a python script from a template
28+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
29+
*.manifest
30+
*.spec
31+
32+
# Installer logs
33+
pip-log.txt
34+
pip-delete-this-directory.txt
35+
36+
# Unit test / coverage reports
37+
htmlcov/
38+
.tox/
39+
.coverage
40+
.coverage.*
41+
.cache
42+
nosetests.xml
43+
coverage.xml
44+
*,cover
45+
46+
# Translations
47+
*.mo
48+
*.pot
49+
50+
# Django stuff:
51+
*.log
52+
53+
# Sphinx documentation
54+
docs/_build/
55+
56+
# PyBuilder
57+
target/
58+
.idea/
59+
last_updated.txt

source-code/chapter-4/exercise-1/docker-hello-world/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3-alpine
1+
FROM python:3.9-alpine
22

33
LABEL description="Dockerfile for Python script which prints Hello, Name"
44

source-code/chapter-4/exercise-2/docker-multi-stage/multistage-build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM python:3 as python-base
22
COPY requirements.txt .
33
RUN pip install -r requirements.txt
44

5-
FROM python:3-alpine
5+
FROM python:3.9-alpine
66
COPY --from=python-base /root/.cache /root/.cache
77
COPY --from=python-base requirements.txt .
88
RUN pip install -r requirements.txt && rm -rf /root/.cache

source-code/chapter-4/exercise-3/newsbot/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3-alpine
1+
FROM python:3.9-alpine
22
WORKDIR /apps/subredditfetcher/
33
COPY . .
44
RUN ["pip", "install", "-r", "requirements.txt"]

source-code/chapter-6/exercise-1/newsbot/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3-alpine
1+
FROM python:3.9-alpine
22

33
RUN apk add gcc musl-dev python3-dev libffi-dev openssl-dev cargo
44
WORKDIR /apps/subredditfetcher/

0 commit comments

Comments
 (0)