Skip to content

Commit

Permalink
Update Maplibre-Native to v5.3.0 (#1124)
Browse files Browse the repository at this point in the history
* update to maplibre-gl-native 5.3.0-pre.0

* use ubuntu:jammy

* use node 20 in docker image

* update max node version to 20

* update docs to reflect new requirements

* fix: update workflows to ubuntu-22.04

Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>

* chore: update to maplibre-gl-native 5.3.0

Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>

* chore: update version

Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>

* docs: update OS/package information

Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>

* fix: require node-addon-api ^7

Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>

* fix: update package-lock.json

Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>

---------

Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
  • Loading branch information
acalcutt authored Jan 15, 2024
1 parent 37d2d8f commit 2a94190
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:

jobs:
ci:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Check out repository ✨ (non-dependabot)
if: ${{ github.actor != 'dependabot[bot]' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ct.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:

jobs:
ct:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Check out repository ✨ (non-dependabot)
if: ${{ github.actor != 'dependabot[bot]' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
jobs:
release:
name: 'Build, Test, Publish'
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Check out repository ✨
uses: actions/checkout@v4
Expand Down
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:focal AS builder
FROM ubuntu:jammy AS builder

ENV NODE_ENV="production"

Expand All @@ -15,7 +15,7 @@ RUN set -ex; \
libglfw3-dev \
libuv1-dev \
libjpeg-turbo8 \
libicu66 \
libicu70 \
libcairo2-dev \
libpango1.0-dev \
libjpeg-dev \
Expand All @@ -35,7 +35,7 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]

RUN mkdir -p /etc/apt/keyrings; \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg; \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list; \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list; \
apt-get -qq update; \
apt-get install -y nodejs; \
npm i -g npm@latest; \
Expand All @@ -58,7 +58,7 @@ RUN npm config set maxsockets 1; \
npm ci --omit=dev; \
chown -R root:root /usr/src/app;

FROM ubuntu:focal AS final
FROM ubuntu:jammy AS final

ENV \
NODE_ENV="production" \
Expand All @@ -78,7 +78,7 @@ RUN set -ex; \
libglfw3 \
libuv1 \
libjpeg-turbo8 \
libicu66 \
libicu70 \
libcairo2 \
libgif7 \
libopengl0 \
Expand All @@ -94,7 +94,7 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]

RUN mkdir -p /etc/apt/keyrings; \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg; \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list; \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list; \
apt-get -qq update; \
apt-get install -y nodejs; \
npm i -g npm@latest; \
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile_light
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:focal
FROM ubuntu:jammy

ENV \
NODE_ENV="production" \
Expand All @@ -16,7 +16,7 @@ RUN set -ex; \
gnupg; \
mkdir -p /etc/apt/keyrings; \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg; \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list; \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list; \
apt-get -qq update; \
apt-get install -y nodejs; \
npm i -g npm@latest; \
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile_test
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Simply run "docker build -f Dockerfile_test ."
# WARNING: sometimes it fails with a core dumped exception

FROM ubuntu:focal
FROM ubuntu:jammy

ENV NODE_ENV="development"

Expand All @@ -19,7 +19,7 @@ RUN set -ex; \
libglfw3-dev \
libuv1-dev \
libjpeg-turbo8 \
libicu66 \
libicu70 \
libcairo2-dev \
libpango1.0-dev \
libjpeg-dev \
Expand Down
8 changes: 4 additions & 4 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ npm is supported on the following platforms with `Native Dependencies <#id1>`_ i

- Operating systems:

- Ubuntu 20.04 (x64/arm64)
- Ubuntu 22.04 (x64/arm64)
- macOS 12 (x64/arm64)
- Windows (x64)

- Node.js 18
- Node.js 18,20

Install globally from npmjs.
------------------------------
Expand All @@ -46,9 +46,9 @@ Install locally from source
Native dependencies
-------------------

Ubuntu 20.04 (x64/arm64)
Ubuntu 22.04 (x64/arm64)
~~~~~~~~~~~~~~~~~~~~~~~~~~
- apt install build-essential pkg-config xvfb libglfw3-dev libuv1-dev libjpeg-turbo8 libicu66 libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev gir1.2-rsvg-2.0 librsvg2-2 librsvg2-common libcurl4-openssl-dev libpixman-1-dev libpixman-1-0
- apt install build-essential pkg-config xvfb libglfw3-dev libuv1-dev libjpeg-turbo8 libicu70 libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev gir1.2-rsvg-2.0 librsvg2-2 librsvg2-common libcurl4-openssl-dev libpixman-1-dev libpixman-1-0

MacOS 12 (x64/arm64)
~~~~~~~~~~~~~~~~~~~~~~
Expand Down
35 changes: 21 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tileserver-gl",
"version": "4.7.0",
"version": "4.8.0",
"description": "Map tile server for JSON GL styles - vector and server side generated raster tiles",
"main": "src/main.js",
"bin": "src/main.js",
Expand All @@ -23,7 +23,7 @@
"@mapbox/polyline": "^1.2.1",
"@mapbox/sphericalmercator": "1.2.0",
"@mapbox/vector-tile": "1.3.1",
"@maplibre/maplibre-gl-native": "5.2.0",
"@maplibre/maplibre-gl-native": "5.3.0",
"@maplibre/maplibre-gl-style-spec": "18.0.0",
"@sindresorhus/fnv1a": "3.1.0",
"advanced-pool": "0.3.3",
Expand Down Expand Up @@ -59,6 +59,7 @@
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"mocha": "^10.2.0",
"node-addon-api": "^7",
"prettier": "^3.2.1",
"should": "^13.2.3",
"supertest": "^6.3.3",
Expand All @@ -72,7 +73,7 @@
],
"license": "BSD-2-Clause",
"engines": {
"node": ">=18.17.0 <19"
"node": ">=18.17.0 <21"
},
"repository": {
"url": "git+https://github.com/maptiler/tileserver-gl.git",
Expand Down

0 comments on commit 2a94190

Please sign in to comment.