mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-11-10 08:57:25 +01:00
Update demo script
This commit is contained in:
parent
92c37a4b40
commit
9ea0d6c8d1
@ -1,50 +1,50 @@
|
|||||||
{
|
{
|
||||||
"addr": "127.0.0.1:8080",
|
"addr": "127.0.0.1:8080",
|
||||||
"archive": {
|
"archive": {
|
||||||
"kind": "file",
|
"kind": "file",
|
||||||
"path": "./var/job-archive"
|
"path": "./var/job-archive"
|
||||||
},
|
},
|
||||||
"clusters": [
|
"clusters": [
|
||||||
{
|
{
|
||||||
"name": "emmy",
|
"name": "fritz",
|
||||||
"metricDataRepository": {
|
"metricDataRepository": {
|
||||||
"kind": "cc-metric-store",
|
"kind": "cc-metric-store",
|
||||||
"url": "http://localhost:8081",
|
"url": "http://localhost:8082",
|
||||||
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSJ9.eyJ1c2VyIjoiYWRtaW4iLCJyb2xlcyI6WyJST0xFX0FETUlOIiwiUk9MRV9BTkFMWVNUIiwiUk9MRV9VU0VSIl19.d-3_3FZTsadPjDEdsWrrQ7nS0edMAR4zjl-eK7rJU3HziNBfI9PDHDIpJVHTNN5E5SlLGLFXctWyKAkwhXL-Dw"
|
"token": ""
|
||||||
},
|
},
|
||||||
"filterRanges": {
|
"filterRanges": {
|
||||||
"numNodes": {
|
"numNodes": {
|
||||||
"from": 1,
|
"from": 1,
|
||||||
"to": 32
|
"to": 64
|
||||||
},
|
},
|
||||||
"duration": {
|
"duration": {
|
||||||
"from": 0,
|
"from": 0,
|
||||||
"to": 172800
|
"to": 86400
|
||||||
},
|
},
|
||||||
"startTime": {
|
"startTime": {
|
||||||
"from": "2010-01-01T00:00:00Z",
|
"from": "2022-01-01T00:00:00Z",
|
||||||
"to": null
|
"to": null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "woody",
|
"name": "alex",
|
||||||
"metricDataRepository": {
|
"metricDataRepository": {
|
||||||
"kind": "cc-metric-store",
|
"kind": "cc-metric-store",
|
||||||
"url": "http://localhost:8081",
|
"url": "http://localhost:8082",
|
||||||
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSJ9.eyJ1c2VyIjoiYWRtaW4iLCJyb2xlcyI6WyJST0xFX0FETUlOIiwiUk9MRV9BTkFMWVNUIiwiUk9MRV9VU0VSIl19.d-3_3FZTsadPjDEdsWrrQ7nS0edMAR4zjl-eK7rJU3HziNBfI9PDHDIpJVHTNN5E5SlLGLFXctWyKAkwhXL-Dw"
|
"token": ""
|
||||||
},
|
},
|
||||||
"filterRanges": {
|
"filterRanges": {
|
||||||
"numNodes": {
|
"numNodes": {
|
||||||
"from": 1,
|
"from": 1,
|
||||||
"to": 1
|
"to": 64
|
||||||
},
|
},
|
||||||
"duration": {
|
"duration": {
|
||||||
"from": 0,
|
"from": 0,
|
||||||
"to": 172800
|
"to": 86400
|
||||||
},
|
},
|
||||||
"startTime": {
|
"startTime": {
|
||||||
"from": "2015-01-01T00:00:00Z",
|
"from": "2022-01-01T00:00:00Z",
|
||||||
"to": null
|
"to": null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
11
startDemo.sh
11
startDemo.sh
@ -5,16 +5,13 @@ if [ -d './var' ]; then
|
|||||||
./cc-backend --server --dev
|
./cc-backend --server --dev
|
||||||
else
|
else
|
||||||
make
|
make
|
||||||
|
wget https://hpc-mover.rrze.uni-erlangen.de/HPC-Data/0x7b58aefb/eig7ahyo6fo2bais0ephuf2aitohv1ai/job-archive-demo.tar
|
||||||
cd var
|
tar xf job-archive-demo.tar
|
||||||
wget https://hpc-mover.rrze.uni-erlangen.de/HPC-Data/0x7b58aefb/eig7ahyo6fo2bais0ephuf2aitohv1ai/job-archive-dev.tar.xz
|
rm ./job-archive-demo.tar
|
||||||
tar xJf job-archive-dev.tar.xz
|
|
||||||
rm ./job-archive-dev.tar.xz
|
|
||||||
cd ../
|
|
||||||
|
|
||||||
cp ./configs/env-template.txt .env
|
cp ./configs/env-template.txt .env
|
||||||
cp ./docs/config.json config.json
|
cp ./docs/config.json config.json
|
||||||
|
|
||||||
./cc-backend --migrate-db
|
./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
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user