Skip to content

Commit 46ccd4a

Browse files
authored
Use docker --pull by default, bump to python 3.10 (#386)
Use docker build --pull by default, unless NO_REFRESH=1 is set (this is the same param as in the primary OMT repo) Also, upgrade to the latest stable Python ver 3.10
1 parent 18e2832 commit 46ccd4a

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ RUN set -eux ;\
3131

3232

3333
# Build osmborder
34-
FROM python:3.8 as c-builder
34+
FROM python:3.10 as c-builder
3535
ARG OSMBORDER_REV=e3ae8f7a2dcdcd6dc80abab4679cb5edb7dc6fa5
3636

3737
RUN set -eux ;\
@@ -60,7 +60,7 @@ RUN set -eux ;\
6060

6161

6262
# Primary image
63-
FROM python:3.8-slim
63+
FROM python:3.10-slim
6464
LABEL maintainer="Yuri Astrakhan <[email protected]>"
6565

6666
ARG PG_MAJOR=12

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ DOCKER_OPTS ?= -i --rm -u $$(id -u $${USER}):$$(id -g $${USER})
1616
# Optionally pass in extra parameters to the docker build command
1717
DOCKER_BUILD_EXTRAS ?=
1818

19+
ifneq ($(strip $(NO_REFRESH)),)
20+
@echo "Skipping docker image refresh"
21+
else
22+
DOCKER_BUILD_EXTRAS := $(DOCKER_BUILD_EXTRAS) --pull
23+
endif
24+
1925
# Current dir is shared with the docker, allowing scripts to write to the dir as a current user
2026
WORKDIR ?= $$( pwd -P )
2127
RUN_CMD := docker run ${DOCKER_OPTS} -v "$(WORKDIR):/tileset"

requirements.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
## This list is also used by setup.py - install_requires
22
## But there it removes all version restrictions
3+
## To upgrade this list, run
4+
## make bash
5+
## pip install pip-upgrader
6+
## /home/openmaptiles/.local/bin/pip-upgrade --skip-virtualenv-check
7+
## cat requirements.txt
8+
## <copy-paste the shown content to this file>
39
aiohttp==3.7.4
410
ascii_graph==1.5.1
511
asyncpg==0.24.0
@@ -8,11 +14,11 @@ betterproto==1.2.5
814
dataclasses-json==0.5.6
915
deprecated==1.2.13
1016
docopt-ng==0.7.2
11-
flake8==3.9.2
12-
flake8-quotes==3.3.0
17+
flake8==4.0.1
18+
flake8-quotes==3.3.1
1319
graphviz==0.17
1420
psycopg2-binary==2.9.1
15-
pyyaml==5.4.1
21+
pyyaml==6.0
1622
requests==2.26.0
1723
tabulate==0.8.9
1824
tornado==6.1

0 commit comments

Comments
 (0)