Interface web pour naviguer dans des catalogues STAC hébergés sur S3.
sudo apt update && sudo apt upgrade -y
sudo apt install -y git apache2 python3 python3-venv
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejssudo git clone https://github.com/lou-heraut/catalog-riverly-data-lake /opt/catalog-riverly-data-lake
sudo chown -R $USER:$USER /opt/catalog-riverly-data-lake
cd /opt/catalog-riverly-data-lakecp dist.env .env
nano .env
chmod 600 .envRemplir les variables :
STAC_APP_NAME=STAC Browser
STAC_CATALOG_URL=https://s3-data.domain.fr/s3-bucket/stac-data/catalog.json
DOMAIN=catalog.data-lake.domain.fr
APACHE_SERVE_DIR=/var/www/stac-browser
S3_ACCESS_KEY=xxx
S3_SECRET_KEY=xxxmake install # Clone STAC Browser, installe les dépendances, configure Apache
make deploy # Build et déploie sur Apachesudo apt install certbot python3-certbot-apache
sudo certbot --apacheLe catalogue STAC est lu en temps rĂ©el depuis le S3 â aucune action nĂ©cessaire quand les donnĂ©es changent.
Si le fichier catalog.json racine est modifié :
make publish-catalogmake updatemake update-browsermake install # Installation initiale (Node.js, Apache, STAC Browser)
make validate # Vérifie que le catalogue S3 est accessible
make configure-apache # Reconfigure le vhost Apache
make deploy # Build et déploie sur Apache
make update # Met Ă jour le projet (Makefile, config, catalog.json)
make update-browser # Met à jour STAC Browser et redéploie
make restart # Redémarre Apache
make status # Statut Apache
make logs # Logs Apache en temps réel
make publish-catalog # Upload le catalog.json racine sur S3
make uninstall # DĂ©sinstalle le serviceCe service est une interface de navigation uniquement â il ne stocke aucune donnĂ©e. Le catalogue STAC et les donnĂ©es sont hĂ©bergĂ©s sur S3 :
bucket: data-lake
âââ stac-data/
â âââ catalog.json â STAC_CATALOG_URL pointe ici
â âââ safran/
â â âââ collection.json
â â âââ items/
â â âââ item-01.json â rĂ©fĂ©rence l'URL S3 de la donnĂ©e
â â âââ ...
â âââ arome/
â âââ collection.json
â âââ items/
âââ data/ â fichiers NetCDF, gĂ©nĂ©rĂ©s par le pipeline
âââ safran/
âââ arome/