From 43dee3a280b995817a93ec6c4d2315d78db22942 Mon Sep 17 00:00:00 2001 From: Kazuhito Suda Date: Mon, 3 Jun 2024 19:14:32 +0900 Subject: [PATCH] Improve maintenance script --- .config.sh | 43 +++++++++++++++++++++++++++++++++++++ CHANGELOG.md | 1 + maintenance/release.sh | 2 +- tests/script/lint-config.sh | 3 +++ 4 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 .config.sh diff --git a/.config.sh b/.config.sh new file mode 100644 index 0000000..50cae3c --- /dev/null +++ b/.config.sh @@ -0,0 +1,43 @@ +#!/bin/bash + +# Use Cygnus sink (true or false) Default: false +CYGNUS_MONGO= +CYGNUS_MYSQL= +CYGNUS_POSTGRES= +CYGNUS_ELASTICSEARCH= + +# Set passowrd for database systems +MYSQL_ROOT_PASSWORD= +POSTGRES_PASSWORD= +ELASTICSEARCH_PASSWORD= + +# Use STH-Comet (true or false) Default: false +COMET= + +# Use Quantumleap (true or false) Default: false +QUANTUMLEAP= + +# Use Perseo (true or false) Default: false +PERSEO= + +# Use WireCloud (true or false) Default: false +WIRECLOUD= + +# Use IoT Agent for UltraLight 2.0 (true or false) Default: false +IOTAGENT_UL= + +# Use IoT Agent for JSON (true or false) Default: false +IOTAGENT_JSON= + +# Specify transport protocol for IoT Agent (HTTP and/or MQTT) +# Use HTTP (true or false) Default: true +IOTAGENT_HTTP= + +# Use MQTT (true or false) Default: false +IOTAGENT_MQTT= + +# Use node-red (true or false) Default: false +NODE_RED= + +# Start containers (true or false) Default: true +START_CONTAINER= diff --git a/CHANGELOG.md b/CHANGELOG.md index 58929b3..fc03690 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## FIWARE Small Bang v0.4.0-next +- Improve maintenance script (#42) - Update Perseo FE to 1.30.0 (#41) - Update IoT Agent for JSON to 3.4.0 (#40) - Update IoT Agent for UltraLight to 3.4.0 (#39) diff --git a/maintenance/release.sh b/maintenance/release.sh index ffd3031..8390df1 100755 --- a/maintenance/release.sh +++ b/maintenance/release.sh @@ -75,7 +75,7 @@ RES=$(curl -X POST \ DIR="${NAME}-${TAG//v/}" mkdir "${DIR}" -for FILE in LICENSE README.md config.sh setup-fiware.sh +for FILE in LICENSE README.md config.sh .config.sh setup-fiware.sh do cp -a "${FILE}" "${DIR}/" done diff --git a/tests/script/lint-config.sh b/tests/script/lint-config.sh index 15f902f..bcbc2a7 100755 --- a/tests/script/lint-config.sh +++ b/tests/script/lint-config.sh @@ -31,6 +31,9 @@ set -ue cd "$(dirname "$0")" cd ../.. +echo "*** diff config.sh .config.sh ***" +diff config.sh .config.sh + . ./config.sh for NAME in CYGNUS_MONGO CYGNUS_MYSQL CYGNUS_POSTGRES CYGNUS_ELASTICSEARCH ELASTICSEARCH_PASSWORD MYSQL_ROOT_PASSWORD POSTGRES_PASSWORD COMET QUANTUMLEAP PERSEO WIRECLOUD IOTAGENT_UL IOTAGENT_JSON IOTAGENT_HTTP IOTAGENT_MQTT NODE_RED START_CONTAINER