more deployment updates

This commit is contained in:
Alexandros Mandilaras 2024-05-13 17:24:08 +03:00
parent dc0b8ff85c
commit a62df40c16
4 changed files with 44 additions and 11 deletions

View File

@ -1,12 +1,42 @@
#!/bin/bash
set -e
networks=("opencdmp-elastic-shared-network" "opencdmp-gotenberg-shared-network" "opencdmp-keycloak-shared-network" "opencdmp-postgres-shared-network" "opencdmp-rabbitmq-shared-network")
network_exists() {
local name="$1"
docker network inspect "$name" >/dev/null 2>&1
}
for network in "${networks[@]}"; do
if ! network_exists "$network"; then
echo "Creating network: $network"
docker network create "$network"
if [ $? -eq 0 ]; then
echo "Network $network created successfully."
else
echo "Failed to create network $network."
fi
else
echo "Network $network already exists."
fi
done
docker-compose down
sudo rm -r ./storage/postgres/data
mkdir ./storage/postgres/data
chmod 744 ./elk/elasticsearch/index_init.sh
sudo rm -r ./storage/elasticsearch
mkdir ./storage/elasticsearch
recreate_directories() {
echo "Resetting postgres and elasticsearch..."
sudo rm -rf ./storage/postgres/data
mkdir -p ./storage/postgres/data
sudo rm -rf ./storage/elasticsearch
mkdir -p ./storage/elasticsearch
}
if [[ $1 == "-r" ]]; then
recreate_directories
fi
docker-compose up -d opencdmp.elasticsearch
@ -32,8 +62,9 @@ function loading_icon() {
loading_icon 45 "Waiting for Elasticsearch to Startup!"
if [[ $1 == "-r" ]]; then
docker exec opencdmp.elasticsearch /usr/share/elasticsearch/config/index_init.sh
fi
docker restart opencdmp.elasticsearch
docker-compose up -d opencdmp.postgres

View File

@ -3,7 +3,6 @@ metrics:
enable: true
intervalSeconds: 600
nexusDate: "2021-01-01T00:00:00.00Z"
usersLoginClient: ${IDP_APIKEY_CLIENT_ID_UUID}
referenceTypes:
funderIds: ["538928bb-c7c6-452e-b66d-08e539f5f082"]
grantIds: ["5b9c284f-f041-4995-96cc-fad7ad13289c"]

View File

@ -348,7 +348,7 @@
"LANGUAGE": "Language",
"PRIMARY-COLOR": "Primary Color",
"PRIMARY-COLOR-2": "Primary Color 2",
"PRIMARY-COLOR-3": "Primary Color 2",
"PRIMARY-COLOR-3": "Primary Color 3",
"SECONDARY-COLOR": "Secondary Color",
"DISABLE-SYSTEM-SOURCES": "Disable System Sources",
"DEPOSIT-PLUGINS": "Plugin",
@ -739,7 +739,10 @@
"TITLE": "Description is locked",
"MESSAGE": "Somebody else is modifying the description at this moment. If you would like to modify or view it, please come back later."
},
"FINALISE-POPUP": {}
"FINALISE-POPUP": {},
"ROLES": {
"ALL-SECTIONS": "All Sections"
}
},
"DESCRIPTION-LISTING": {
"TITLE": "My Descriptions",

View File

@ -11,7 +11,7 @@ notification:
contacts: [ email ]
- #dmpInvitationExistingUser
type: 4904dea2-5079-46d3-83be-3a19c9ab45dc
contacts: [ inapp, email ]
contacts: [ email, inapp ]
- #dpmModified
type: 4542262A-22F8-4BAA-9DB6-1C8E70AC1DBB
contacts: [ inapp, email ]