diff --git a/configure-all-datastores.sh b/configure-all-datastores.sh new file mode 100644 index 0000000..06b7e23 --- /dev/null +++ b/configure-all-datastores.sh @@ -0,0 +1,42 @@ +#!/bin/bash +# Configure tous les datastores GeoServer pour Smart City Digital Twin +# Usage: bash configure-all-datastores.sh + +GEOSERVER_URL="https://geoserver.digitribe.fr/geoserver" +USER="admin" +PASS="Digitribe972" + +# 1. Create workspace smartcity +curl -s -u $USER:$PASS -X POST "$GEOSERVER_URL/rest/workspaces" \ + -H "Content-type: text/xml" \ + -d 'smartcity' + +# 2. FROST PostgreSQL (SensorThings) +curl -s -u $USER:$PASS -X POST "$GEOSERVER_URL/rest/workspaces/smartcity/datastores" \ + -H "Content-type: text/xml" \ + -d ' + + frost-sensorthings + + 0cd2213a58ad + 5432 + sensorthings + sensorthings + Digitribe972 + postgis + +' + +echo "✅ FROST datastore configured" + +# 3. Stellio PostgreSQL + TimescaleDB +# (À compléter avec identifiants Stellio) + +# 4. MapStore PostGIS +# (À compléter avec identifiants MapStore) + +# 5. Orion-LD MongoDB +# Nécessite extension MongoDB dans GeoServer +# (À installer si manquante) + +echo "🎉 Configuration terminée" diff --git a/digital-twin-toolbox b/digital-twin-toolbox new file mode 160000 index 0000000..9344695 --- /dev/null +++ b/digital-twin-toolbox @@ -0,0 +1 @@ +Subproject commit 9344695e369d7130be5712ad6f85bdb10d28e8de diff --git a/docker b/docker new file mode 160000 index 0000000..cc3a5ef --- /dev/null +++ b/docker @@ -0,0 +1 @@ +Subproject commit cc3a5ef399f2eb74dc759f5301017a3d5f58da85 diff --git a/geoserver-cloud b/geoserver-cloud new file mode 160000 index 0000000..d5ee0d6 --- /dev/null +++ b/geoserver-cloud @@ -0,0 +1 @@ +Subproject commit d5ee0d61ab4849440e3d9dff2da4321cfb4021d4 diff --git a/geoserver-config.sh b/geoserver-config.sh new file mode 100644 index 0000000..372bc72 --- /dev/null +++ b/geoserver-config.sh @@ -0,0 +1,68 @@ +#!/bin/bash +# Configuration GeoServer - Smart City Digital Twin +# À exécuter avec : bash geoserver-config.sh +# Nécessite : admin/Digitribe972 + +GEOSERVER="https://geoserver.digitribe.fr/geoserver" +USER="admin" +PASS="Digitribe972" + +echo "🗺️ Configuration GeoServer pour Smart City..." + +# 1. Workspace smartcity +curl -s -u $USER:$PASS -X POST "$GEOSERVER/rest/workspaces" \ + -H "Content-type: text/xml" \ + -d 'smartcity' + +# 2. FROST PostgreSQL (SensorThings) +curl -s -u $USER:$PASS -X POST "$GEOSERVER/rest/workspaces/smartcity/datastores" \ + -H "Content-type: text/xml" \ + -d ' + + frost-sensorthings + + 0cd2213a58ad + 5432 + sensorthings + sensorthings + Digitribe972 + postgis + +' + +# 3. Stellio PostgreSQL + TimescaleDB +curl -s -u $USER:$PASS -X POST "$GEOSERVER/rest/workspaces/smartcity/datastores" \ + -H "Content-type: text/xml" \ + -d ' + + stellio-timescale + + 9e24c6771977 + 5432 + stellio + stellio + Digitribe972 + postgis + +' + +# 4. MapStore PostGIS +curl -s -u $USER:$PASS -X POST "$GEOSERVER/rest/workspaces/smartcity/datastores" \ + -H "Content-type: text/xml" \ + -d ' + + mapstore-postgis + + 67804b3a308f + 5432 + mapstore + mapstore + Digitribe972 + postgis + +' + +# 5. Orion-LD MongoDB (nécessite extension MongoDB) +echo "⚠️ Pour Orion-LD (MongoDB), installer l'extension MongoDB dans GeoServer" + +echo "✅ Configuration terminée ! Vérifie dans l'UI GeoServer."