-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added OpenSUSE support to build & test pipeline (#344)
* Also added build documentation Resolves #89
- Loading branch information
1 parent
184f143
commit c2896c7
Showing
11 changed files
with
196 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
inputs: | ||
packages: | ||
description: List of package(s) to install | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Install package(s) | ||
run: ${{ !matrix.image && 'sudo' || '' }} zypper --non-interactive install ${{ inputs.packages }} | ||
shell: bash --noprofile --norc -euxo pipefail {0} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Building on openSUSE | ||
|
||
This document provides users with step-by-step instructions on how to compile and use`mod_tile` and `renderd`. | ||
|
||
Please see our [Continuous Integration script](/.github/workflows/build-and-test.yml) for more details. | ||
|
||
_openSUSE does not provide a `mapnik`/`mapnik-devel` package, so it will first need to be built & installed, which is beyond the scope of this document, please visit the project's [installation document on GitHub](https://github.com/mapnik/mapnik/blob/master/INSTALL.md) or our [Continuous Integration script](/.github/actions/dependencies/build-and-install/mapnik/action.yml) for more information._ | ||
|
||
## openSUSE 15 | ||
|
||
```shell | ||
#!/usr/bin/env bash | ||
|
||
# Update installed packages | ||
sudo zypper --non-interactive update | ||
|
||
# Install build dependencies | ||
# (libmemcached-devel & librados-devel are optional) | ||
sudo zypper --non-interactive install \ | ||
apache2 \ | ||
apache2-devel \ | ||
apache2-prefork \ | ||
cairo-devel \ | ||
curl \ | ||
glib2-devel \ | ||
libcurl-devel \ | ||
libiniparser-devel \ | ||
libmemcached-devel \ | ||
librados-devel | ||
|
||
# Create `nobody` user and group | ||
sudo useradd --home-dir / --no-create-home --shell /usr/sbin/nologin --system --user-group nobody | ||
|
||
# Download, Build, Test & Install `mod_tile` | ||
export CMAKE_BUILD_PARALLEL_LEVEL=$(nproc) | ||
rm -rf /tmp/mod_tile_src /tmp/mod_tile_build | ||
mkdir /tmp/mod_tile_src /tmp/mod_tile_build | ||
cd /tmp/mod_tile_src | ||
git clone --depth 1 https://github.com/openstreetmap/mod_tile.git . | ||
cd /tmp/mod_tile_build | ||
cmake -B . -S /tmp/mod_tile_src \ | ||
-DCMAKE_BUILD_TYPE:STRING=Release \ | ||
-DENABLE_TESTS:BOOL=ON | ||
cmake --build . | ||
ctest | ||
sudo cmake --install . --prefix /usr --strip | ||
|
||
# Create /usr/share/renderd directory | ||
sudo mkdir --parents /usr/share/renderd | ||
|
||
# Copy files of example map | ||
sudo cp -av /tmp/mod_tile_src/utils/example-map /usr/share/renderd/example-map | ||
|
||
# Add configuration | ||
sudo cp -av /tmp/mod_tile_src/etc/apache2/renderd-example-map.conf /etc/apache2/conf.d/renderd-example-map.conf | ||
printf '\n[example-map]\nURI=/tiles/renderd-example\nXML=/usr/share/renderd/example-map/mapnik.xml\n' | sudo tee -a /etc/renderd.conf | ||
|
||
# Enable `mod_access_compat` | ||
sudo sed -i 's/^APACHE_MODULES="actions/APACHE_MODULES="access_compat actions/g' /etc/sysconfig/apache2 | ||
|
||
# Start services | ||
sudo apache2ctl start | ||
sudo renderd -f | ||
``` | ||
|
||
Then you can visit: `http://localhost:8081/renderd-example-map` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters