Installation

1. Vorarbeiten

  • Basisinstallation von Ubuntu 24.04 LTS

  • OsmConfigs von Bitbucket nach /zfs_pool/data/OsmConfigs (Optional, da in ZFS eingebunden)

  • Relief-Daten /zfs_pool/data/Relief von anderem Rechner kopieren

2. Installation aus den Quellen

mkdir -p ~/projects && cd ~/projects
git clone git@bitbucket.org:locr/mapbuilder.git MapBuilder
cd MapBuilder
cp .env.example .env # .env anpassen

2.1. OsmDataProvider installieren

2.1.1. Vorarbeiten

Datenbankpasswort für das Installations-/Update-script hinzufügen.

pass insert scripts/pgsql-password

2.1.2. Container Service installieren

./scripts/install_osm_data_provider_service.sh

Status abfragen

systemctl --user status osm-data-provider.service

Im Browser kann der Status auch eingesehen werden unter https://<subdomain>.locr.com:9090/ und dann im Unterpunkt Podman-Container.

2.1.3. Update script im home-Verzeichnis erstellen (Komplettes Script ins Terminal kopieren)

cat <<EOF >~/update_osm_data_provider.sh
#!/usr/bin/env bash

cd ${PWD}
git pull

cd scripts
./update_osm_data_provider_service.sh
EOF

chmod +x ~/update_osm_data_provider.sh

2.2. OsmConfigEditor installieren

2.2.1. Container Service installieren

./scripts/install_osm_config_editor_service.sh

2.2.2. Update script im home-Verzeichnis erstellen

cat <<EOF >~/update_osm_config_editor.sh
#!/usr/bin/env bash

cd ${PWD}
git pull

cd scripts
./update_osm_config_editor_service.sh
EOF

chmod +x ~/update_osm_config_editor.sh

2.3. MapBuilder installieren

2.3.1. Container Service installieren

./scripts/install_map_builder_service.sh

2.3.2. Update script im home-Verzeichnis erstellen

cat <<EOF >~/update_map_builder.sh
#!/usr/bin/env bash

cd ${PWD}
git pull

cd scripts
./update_map_builder_service.sh
EOF

chmod +x ~/update_map_builder.sh

2.4. nginx konfigurieren

sudo cp installation_files/nginx/conf.d/* /etc/nginx/conf.d

Sicherstellen, dass die folgenden Zeilen in der Datei /etc/nginx/sites-enabled/default vorhanden sind.

server {
    ...
    include conf.d/osm-data-provider;
    include conf.d/osm-config-editor;
    include conf.d/map-builder;
    ...
}

nginx neustarten

sudo systemctl restart nginx