more deployment updates
This commit is contained in:
parent
dc0b8ff85c
commit
a62df40c16
|
@ -1,12 +1,42 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
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
|
docker-compose down
|
||||||
|
|
||||||
sudo rm -r ./storage/postgres/data
|
chmod 744 ./elk/elasticsearch/index_init.sh
|
||||||
mkdir ./storage/postgres/data
|
|
||||||
|
|
||||||
sudo rm -r ./storage/elasticsearch
|
recreate_directories() {
|
||||||
mkdir ./storage/elasticsearch
|
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
|
docker-compose up -d opencdmp.elasticsearch
|
||||||
|
|
||||||
|
@ -32,8 +62,9 @@ function loading_icon() {
|
||||||
|
|
||||||
loading_icon 45 "Waiting for Elasticsearch to Startup!"
|
loading_icon 45 "Waiting for Elasticsearch to Startup!"
|
||||||
|
|
||||||
docker exec opencdmp.elasticsearch /usr/share/elasticsearch/config/index_init.sh
|
if [[ $1 == "-r" ]]; then
|
||||||
|
docker exec opencdmp.elasticsearch /usr/share/elasticsearch/config/index_init.sh
|
||||||
|
fi
|
||||||
docker restart opencdmp.elasticsearch
|
docker restart opencdmp.elasticsearch
|
||||||
|
|
||||||
docker-compose up -d opencdmp.postgres
|
docker-compose up -d opencdmp.postgres
|
||||||
|
|
|
@ -3,7 +3,6 @@ metrics:
|
||||||
enable: true
|
enable: true
|
||||||
intervalSeconds: 600
|
intervalSeconds: 600
|
||||||
nexusDate: "2021-01-01T00:00:00.00Z"
|
nexusDate: "2021-01-01T00:00:00.00Z"
|
||||||
usersLoginClient: ${IDP_APIKEY_CLIENT_ID_UUID}
|
|
||||||
referenceTypes:
|
referenceTypes:
|
||||||
funderIds: ["538928bb-c7c6-452e-b66d-08e539f5f082"]
|
funderIds: ["538928bb-c7c6-452e-b66d-08e539f5f082"]
|
||||||
grantIds: ["5b9c284f-f041-4995-96cc-fad7ad13289c"]
|
grantIds: ["5b9c284f-f041-4995-96cc-fad7ad13289c"]
|
||||||
|
|
|
@ -348,7 +348,7 @@
|
||||||
"LANGUAGE": "Language",
|
"LANGUAGE": "Language",
|
||||||
"PRIMARY-COLOR": "Primary Color",
|
"PRIMARY-COLOR": "Primary Color",
|
||||||
"PRIMARY-COLOR-2": "Primary Color 2",
|
"PRIMARY-COLOR-2": "Primary Color 2",
|
||||||
"PRIMARY-COLOR-3": "Primary Color 2",
|
"PRIMARY-COLOR-3": "Primary Color 3",
|
||||||
"SECONDARY-COLOR": "Secondary Color",
|
"SECONDARY-COLOR": "Secondary Color",
|
||||||
"DISABLE-SYSTEM-SOURCES": "Disable System Sources",
|
"DISABLE-SYSTEM-SOURCES": "Disable System Sources",
|
||||||
"DEPOSIT-PLUGINS": "Plugin",
|
"DEPOSIT-PLUGINS": "Plugin",
|
||||||
|
@ -739,7 +739,10 @@
|
||||||
"TITLE": "Description is locked",
|
"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."
|
"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": {
|
"DESCRIPTION-LISTING": {
|
||||||
"TITLE": "My Descriptions",
|
"TITLE": "My Descriptions",
|
||||||
|
|
|
@ -11,7 +11,7 @@ notification:
|
||||||
contacts: [ email ]
|
contacts: [ email ]
|
||||||
- #dmpInvitationExistingUser
|
- #dmpInvitationExistingUser
|
||||||
type: 4904dea2-5079-46d3-83be-3a19c9ab45dc
|
type: 4904dea2-5079-46d3-83be-3a19c9ab45dc
|
||||||
contacts: [ inapp, email ]
|
contacts: [ email, inapp ]
|
||||||
- #dpmModified
|
- #dpmModified
|
||||||
type: 4542262A-22F8-4BAA-9DB6-1C8E70AC1DBB
|
type: 4542262A-22F8-4BAA-9DB6-1C8E70AC1DBB
|
||||||
contacts: [ inapp, email ]
|
contacts: [ inapp, email ]
|
||||||
|
|
Loading…
Reference in New Issue