Skip to content

Commit

Permalink
Merge pull request #42 from fisuda/improve/maintenance_script
Browse files Browse the repository at this point in the history
Improve maintenance script
  • Loading branch information
fisuda authored Jun 3, 2024
2 parents c94dd99 + 43dee3a commit 9b96354
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 1 deletion.
43 changes: 43 additions & 0 deletions .config.sh
Original file line number Diff line number Diff line change
@@ -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=
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion maintenance/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions tests/script/lint-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b96354

Please sign in to comment.