mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-25 12:59:06 +01:00
Add validate option. Backport startDemo
This commit is contained in:
parent
a168efa8c8
commit
327721bac7
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"addr": "0.0.0.0:8080",
|
"addr": "0.0.0.0:8080",
|
||||||
|
"validate": true,
|
||||||
"archive": {
|
"archive": {
|
||||||
"kind": "file",
|
"kind": "file",
|
||||||
"path": "./var/job-archive"
|
"path": "./var/job-archive"
|
||||||
@ -13,9 +14,18 @@
|
|||||||
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSJ9.eyJ1c2VyIjoiYWRtaW4iLCJyb2xlcyI6WyJST0xFX0FETUlOIiwiUk9MRV9BTkFMWVNUIiwiUk9MRV9VU0VSIl19.d-3_3FZTsadPjDEdsWrrQ7nS0edMAR4zjl-eK7rJU3HziNBfI9PDHDIpJVHTNN5E5SlLGLFXctWyKAkwhXL-Dw"
|
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSJ9.eyJ1c2VyIjoiYWRtaW4iLCJyb2xlcyI6WyJST0xFX0FETUlOIiwiUk9MRV9BTkFMWVNUIiwiUk9MRV9VU0VSIl19.d-3_3FZTsadPjDEdsWrrQ7nS0edMAR4zjl-eK7rJU3HziNBfI9PDHDIpJVHTNN5E5SlLGLFXctWyKAkwhXL-Dw"
|
||||||
},
|
},
|
||||||
"filterRanges": {
|
"filterRanges": {
|
||||||
"numNodes": { "from": 1, "to": 32 },
|
"numNodes": {
|
||||||
"duration": { "from": 0, "to": 172800 },
|
"from": 1,
|
||||||
"startTime": { "from": "2010-01-01T00:00:00Z", "to": null }
|
"to": 32
|
||||||
|
},
|
||||||
|
"duration": {
|
||||||
|
"from": 0,
|
||||||
|
"to": 172800
|
||||||
|
},
|
||||||
|
"startTime": {
|
||||||
|
"from": "2010-01-01T00:00:00Z",
|
||||||
|
"to": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -26,9 +36,18 @@
|
|||||||
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSJ9.eyJ1c2VyIjoiYWRtaW4iLCJyb2xlcyI6WyJST0xFX0FETUlOIiwiUk9MRV9BTkFMWVNUIiwiUk9MRV9VU0VSIl19.d-3_3FZTsadPjDEdsWrrQ7nS0edMAR4zjl-eK7rJU3HziNBfI9PDHDIpJVHTNN5E5SlLGLFXctWyKAkwhXL-Dw"
|
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSJ9.eyJ1c2VyIjoiYWRtaW4iLCJyb2xlcyI6WyJST0xFX0FETUlOIiwiUk9MRV9BTkFMWVNUIiwiUk9MRV9VU0VSIl19.d-3_3FZTsadPjDEdsWrrQ7nS0edMAR4zjl-eK7rJU3HziNBfI9PDHDIpJVHTNN5E5SlLGLFXctWyKAkwhXL-Dw"
|
||||||
},
|
},
|
||||||
"filterRanges": {
|
"filterRanges": {
|
||||||
"numNodes": { "from": 1, "to": 1 },
|
"numNodes": {
|
||||||
"duration": { "from": 0, "to": 172800 },
|
"from": 1,
|
||||||
"startTime": { "from": "2015-01-01T00:00:00Z", "to": null }
|
"to": 1
|
||||||
|
},
|
||||||
|
"duration": {
|
||||||
|
"from": 0,
|
||||||
|
"to": 172800
|
||||||
|
},
|
||||||
|
"startTime": {
|
||||||
|
"from": "2015-01-01T00:00:00Z",
|
||||||
|
"to": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
20
startDemo.sh
20
startDemo.sh
@ -4,29 +4,17 @@ if [ -d './var' ]; then
|
|||||||
echo 'Directory ./var already exists! Skipping initialization.'
|
echo 'Directory ./var already exists! Skipping initialization.'
|
||||||
./cc-backend --server --dev
|
./cc-backend --server --dev
|
||||||
else
|
else
|
||||||
mkdir ./var
|
make
|
||||||
cd ./var
|
|
||||||
|
|
||||||
|
cd var
|
||||||
wget https://hpc-mover.rrze.uni-erlangen.de/HPC-Data/0x7b58aefb/eig7ahyo6fo2bais0ephuf2aitohv1ai/job-archive-dev.tar.xz
|
wget https://hpc-mover.rrze.uni-erlangen.de/HPC-Data/0x7b58aefb/eig7ahyo6fo2bais0ephuf2aitohv1ai/job-archive-dev.tar.xz
|
||||||
tar xJf job-archive-dev.tar.xz
|
tar xJf job-archive-dev.tar.xz
|
||||||
rm ./job-archive-dev.tar.xz
|
rm ./job-archive-dev.tar.xz
|
||||||
|
cd ../
|
||||||
|
|
||||||
touch ./job.db
|
|
||||||
cd ../web/frontend
|
|
||||||
yarn install
|
|
||||||
yarn build
|
|
||||||
|
|
||||||
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
|
||||||
go build ./cmd/cc-backend
|
|
||||||
<<<<<<< Updated upstream
|
|
||||||
|
|
||||||
|
./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:AdminDev
|
||||||
fi
|
fi
|
||||||
|
|
||||||
=======
|
|
||||||
|
|
||||||
./cc-backend --server --dev --init-db --add-user demo:admin:AdminDev
|
|
||||||
fi
|
|
||||||
>>>>>>> Stashed changes
|
|
||||||
|
Loading…
Reference in New Issue
Block a user