Update demo script

This commit is contained in:
Jan Eitzinger 2023-04-12 10:10:07 +02:00
parent 92c37a4b40
commit 9ea0d6c8d1
2 changed files with 17 additions and 20 deletions

View File

@ -6,45 +6,45 @@
},
"clusters": [
{
"name": "emmy",
"name": "fritz",
"metricDataRepository": {
"kind": "cc-metric-store",
"url": "http://localhost:8081",
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSJ9.eyJ1c2VyIjoiYWRtaW4iLCJyb2xlcyI6WyJST0xFX0FETUlOIiwiUk9MRV9BTkFMWVNUIiwiUk9MRV9VU0VSIl19.d-3_3FZTsadPjDEdsWrrQ7nS0edMAR4zjl-eK7rJU3HziNBfI9PDHDIpJVHTNN5E5SlLGLFXctWyKAkwhXL-Dw"
"url": "http://localhost:8082",
"token": ""
},
"filterRanges": {
"numNodes": {
"from": 1,
"to": 32
"to": 64
},
"duration": {
"from": 0,
"to": 172800
"to": 86400
},
"startTime": {
"from": "2010-01-01T00:00:00Z",
"from": "2022-01-01T00:00:00Z",
"to": null
}
}
},
{
"name": "woody",
"name": "alex",
"metricDataRepository": {
"kind": "cc-metric-store",
"url": "http://localhost:8081",
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSJ9.eyJ1c2VyIjoiYWRtaW4iLCJyb2xlcyI6WyJST0xFX0FETUlOIiwiUk9MRV9BTkFMWVNUIiwiUk9MRV9VU0VSIl19.d-3_3FZTsadPjDEdsWrrQ7nS0edMAR4zjl-eK7rJU3HziNBfI9PDHDIpJVHTNN5E5SlLGLFXctWyKAkwhXL-Dw"
"url": "http://localhost:8082",
"token": ""
},
"filterRanges": {
"numNodes": {
"from": 1,
"to": 1
"to": 64
},
"duration": {
"from": 0,
"to": 172800
"to": 86400
},
"startTime": {
"from": "2015-01-01T00:00:00Z",
"from": "2022-01-01T00:00:00Z",
"to": null
}
}

View File

@ -5,16 +5,13 @@ if [ -d './var' ]; then
./cc-backend --server --dev
else
make
cd var
wget https://hpc-mover.rrze.uni-erlangen.de/HPC-Data/0x7b58aefb/eig7ahyo6fo2bais0ephuf2aitohv1ai/job-archive-dev.tar.xz
tar xJf job-archive-dev.tar.xz
rm ./job-archive-dev.tar.xz
cd ../
wget https://hpc-mover.rrze.uni-erlangen.de/HPC-Data/0x7b58aefb/eig7ahyo6fo2bais0ephuf2aitohv1ai/job-archive-demo.tar
tar xf job-archive-demo.tar
rm ./job-archive-demo.tar
cp ./configs/env-template.txt .env
cp ./docs/config.json config.json
./cc-backend --migrate-db
./cc-backend --server --dev --init-db --add-user demo:admin:AdminDev
./cc-backend --server --dev --init-db --add-user demo:admin:demo
fi