Skip to content

Commit

Permalink
Debian Unstable and Ubuntu Devel now default to Mapnik v4.0.0 (openst…
Browse files Browse the repository at this point in the history
…reetmap#450)

* Fix `Dockerfile`s & `docker-compose.yml` to support this.
* Mark debian:unstable & ubuntu:devel experimental
  • Loading branch information
hummeltech authored Jun 21, 2024
1 parent 1309fdc commit 344215a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 13 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/install-package-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,21 @@ on:

jobs:
install-package-and-test:
continue-on-error: ${{ matrix.experimental || false }}
name: ${{ matrix.image }}
runs-on: ubuntu-latest
strategy:
matrix:
image:
- "debian:11"
- "debian:12"
- "debian:unstable"
- "ubuntu:22.04"
- "ubuntu:24.04"
- "ubuntu:devel"
include:
- image: "debian:unstable"
experimental: true
- image: "ubuntu:devel"
experimental: true
fail-fast: false
container:
image: ${{ matrix.image }}
Expand Down
6 changes: 3 additions & 3 deletions docker/debian/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Arguments
ARG debian_version=12
ARG libmapnik_version=3.1
ARG runner_additional_packages=libcurl4 libglib2.0

# Builder
FROM debian:${debian_version} as builder
Expand Down Expand Up @@ -53,18 +54,17 @@ FROM debian:${debian_version} as runner
## Arguments
ARG debian_version
ARG libmapnik_version
ARG runner_additional_packages

## Install runner dependencies
RUN --mount=id=debian:${debian_version}-/var/cache/apt,sharing=locked,target=/var/cache/apt,type=cache \
--mount=id=debian:${debian_version}-/var/lib/apt,sharing=locked,target=/var/lib/apt,type=cache \
export DEBIAN_FRONTEND=noninteractive && \
apt-get --yes update && \
apt-get --yes upgrade && \
apt-get --no-install-recommends --yes install \
apt-get --no-install-recommends --yes install ${runner_additional_packages} \
apache2 \
libcairo2 \
libcurl4 \
libglib2.0 \
libiniparser1 \
libmapnik${libmapnik_version} \
libmemcached11 \
Expand Down
6 changes: 3 additions & 3 deletions docker/debian/Dockerfile.autotools
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Arguments
ARG debian_version=12
ARG libmapnik_version=3.1
ARG runner_additional_packages=libcurl4 libglib2.0

# Builder
FROM debian:${debian_version} as builder
Expand Down Expand Up @@ -44,18 +45,17 @@ FROM debian:${debian_version} as runner
## Arguments
ARG debian_version
ARG libmapnik_version
ARG runner_additional_packages

## Install runner dependencies
RUN --mount=id=debian:${debian_version}-/var/cache/apt,sharing=locked,target=/var/cache/apt,type=cache \
--mount=id=debian:${debian_version}-/var/lib/apt,sharing=locked,target=/var/lib/apt,type=cache \
export DEBIAN_FRONTEND=noninteractive && \
apt-get --yes update && \
apt-get --yes upgrade && \
apt-get --no-install-recommends --yes install \
apt-get --no-install-recommends --yes install ${runner_additional_packages} \
apache2 \
libcairo2 \
libcurl4 \
libglib2.0 \
libiniparser1 \
libmapnik${libmapnik_version} \
libmemcached11 \
Expand Down
16 changes: 11 additions & 5 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,21 @@ services:
build:
<<: *build_defaults_debian
args:
libmapnik_version: "3.1"
libmapnik_version: "4.0"
debian_version: unstable
runner_additional_packages: >-
libcurl4t64
libglib2.0-0t64
debian-unstable-autotools:
<<: *service_defaults
build:
<<: *build_defaults_debian
args:
libmapnik_version: "3.1"
libmapnik_version: "4.0"
debian_version: unstable
runner_additional_packages: >-
libcurl4t64
libglib2.0-0t64
dockerfile: docker/debian/Dockerfile.autotools
fedora-34:
<<: *service_defaults
Expand Down Expand Up @@ -241,22 +247,22 @@ services:
build:
<<: *build_defaults_ubuntu
args:
libmapnik_version: "3.1"
libmapnik_version: "4.0"
ubuntu_version: "devel"
ubuntu-devel-autotools:
<<: *service_defaults
build:
<<: *build_defaults_ubuntu
args:
libmapnik_version: "3.1"
libmapnik_version: "4.0"
ubuntu_version: "devel"
dockerfile: docker/ubuntu/Dockerfile.autotools
ubuntu-devel-full:
<<: *service_defaults
build:
<<: *build_defaults_ubuntu
args:
libmapnik_version: "3.1"
libmapnik_version: "4.0"
runner_additional_packages: >-
curl
gdal-bin
Expand Down

0 comments on commit 344215a

Please sign in to comment.