Skip to content

Commit

Permalink
deps: update to alpine 3.18 and python 3.11
Browse files Browse the repository at this point in the history
The base alpine image we use that has musl and glibc is now
updated to alpine 3.18 which ships with python 3.11. This
does the following:

- bumps the various Dockerfile base images
- unpins python and pip3
- Pushs new base-envoy image by bump baserel ver

Signed-off-by: Lance Austin <laustin@dataiwre.io>
  • Loading branch information
Lance Austin authored and LanceEa committed Oct 20, 2023
1 parent 9209418 commit c316a95
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 11 deletions.
4 changes: 1 addition & 3 deletions DEPENDENCIES.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ libraries:
kubernetes 28.1.0 Apache License 2.0
oauthlib 3.2.2 3-clause BSD license
orjson 3.9.9 Apache License 2.0, MIT license
packaging 23.2 2-clause BSD license, Apache License 2.0
packaging 23.1 2-clause BSD license, Apache License 2.0
pip-tools 7.3.0 3-clause BSD license
prometheus-client 0.17.1 Apache License 2.0
pyasn1 0.5.0 2-clause BSD license
Expand All @@ -195,11 +195,9 @@ libraries:
python-json-logger 2.0.7 2-clause BSD license
requests 2.31.0 Apache License 2.0
requests-oauthlib 1.3.1 ISC license
retrying 1.3.3 Apache License 2.0
rsa 4.9 Apache License 2.0
semantic-version 2.10.0 2-clause BSD license
six 1.16.0 MIT license
tomli 2.0.1 MIT license
typing_extensions 4.8.0 Python Software Foundation license
urllib3 1.26.17 MIT license
websocket-client 1.6.4 Apache License 2.0
2 changes: 1 addition & 1 deletion _cxx/envoy.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ENVOY_COMMIT ?= 6637fd1bab315774420f3c3d97488fedb7fc710f
ENVOY_COMPILATION_MODE ?= opt
# Increment BASE_ENVOY_RELVER on changes to `docker/base-envoy/Dockerfile`, or Envoy recipes.
# You may reset BASE_ENVOY_RELVER when adjusting ENVOY_COMMIT.
BASE_ENVOY_RELVER ?= 0
BASE_ENVOY_RELVER ?= 1

# Set to non-empty to enable compiling Envoy in FIPS mode.
FIPS_MODE ?=
Expand Down
2 changes: 1 addition & 1 deletion build-aux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ COPY --from=artifacts /opt/image-build /opt/image-build
RUN /opt/image-build/install.sh

# External Python packages we use
COPY --from=artifacts /usr/lib/python3.10/site-packages /usr/lib/python3.10/site-packages
COPY --from=artifacts /usr/lib/python3.11/site-packages /usr/lib/python3.11/site-packages

# Our envoy. The capabilities here grant the wrapper the ability to use the
# cap_net_bind_service cap and for Envoy to inherit it.
Expand Down
2 changes: 1 addition & 1 deletion docker/base-envoy/Dockerfile.stripped
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# If you have to change this file, you _must_ update BASE_ENVOY_RELVER
# in the Makefile, then run "make update-base" to build and push the
# new image.
FROM frolvlad/alpine-glibc:alpine-3.17_glibc-2.34
FROM frolvlad/alpine-glibc:alpine-3.18_glibc-2.34

# We use rsync to move things in and out of the container.
RUN apk add rsync
Expand Down
6 changes: 3 additions & 3 deletions docker/base-python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# Third-party code
########################################

FROM docker.io/frolvlad/alpine-glibc:alpine-3.17_glibc-2.34
FROM docker.io/frolvlad/alpine-glibc:alpine-3.18_glibc-2.34

WORKDIR /buildroot

Expand Down Expand Up @@ -59,8 +59,8 @@ RUN apk --no-cache add \
libffi-dev \
ncurses \
openssl-dev \
py3-pip=~22 \
python3=~3.10 \
py3-pip \
python3=~3.11 \
python3-dev \
rust \
cargo \
Expand Down
2 changes: 1 addition & 1 deletion docker/test-stats/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# See the License for the specific language governing permissions and
# limitations under the License

FROM docker.io/frolvlad/alpine-glibc:alpine-3.17
FROM docker.io/frolvlad/alpine-glibc:alpine-3.18_glibc-2.34

LABEL PROJECT_REPO_URL = "git@github.com:datawire/ambassador.git" \
PROJECT_REPO_BROWSER_URL = "https://github.com/datawire/ambassador" \
Expand Down
2 changes: 1 addition & 1 deletion python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile --allow-unsafe
Expand Down
1 change: 1 addition & 0 deletions tools/src/py-mkopensource/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func parseLicenses(name, version, license string) map[License]struct{} {
// These are packages with non-trivial strings to parse, and
// it's easier to just hard-code it.
{"orjson", "3.9.9", "Apache-2.0 OR MIT"}: {Apache2, MIT},
{"packaging", "23.1", ""}: {BSD2, Apache2},
{"packaging", "23.2", ""}: {BSD2, Apache2},
}[tuple{name, version, license}]
if ok {
Expand Down

0 comments on commit c316a95

Please sign in to comment.