mirror of
https://github.com/ClusterCockpit/cc-docker.git
synced 2024-12-27 09:49:05 +01:00
add data/sql-source, modify init.sh
-init.sh copies according file to sql-init: * demo.sql for demo use, no influx jobs * dev.sql for devel use, includes influx jobs
This commit is contained in:
parent
7953e18d52
commit
77b3373ffb
@ -5,6 +5,9 @@ wget https://hpc-mover.rrze.uni-erlangen.de/HPC-Data/0x7b58aefb/eig7ahyo6fo2bais
|
|||||||
tar xJf job-archive.tar.xz
|
tar xJf job-archive.tar.xz
|
||||||
rm ./job-archive.tar.xz
|
rm ./job-archive.tar.xz
|
||||||
|
|
||||||
|
# Default: Copy SQL source for demo use - Includes no INFLUX-Job Metadata
|
||||||
|
cp ./sql-source/ClusterCockpit-demo.sql ./sql-init/ClusterCockpit.sql
|
||||||
|
|
||||||
if [ $# -gt 0 ]; then
|
if [ $# -gt 0 ]; then
|
||||||
if [ $1 == "dev" ]; then
|
if [ $1 == "dev" ]; then
|
||||||
# 101 is the uid and gid of the user and group www in the cc-php container running php-fpm.
|
# 101 is the uid and gid of the user and group www in the cc-php container running php-fpm.
|
||||||
@ -16,5 +19,8 @@ if [ $# -gt 0 ]; then
|
|||||||
cd influxdb/data
|
cd influxdb/data
|
||||||
tar xJf ../../influxdbv2-data.tar.xz
|
tar xJf ../../influxdbv2-data.tar.xz
|
||||||
rm ../../influxdbv2-data.tar.xz
|
rm ../../influxdbv2-data.tar.xz
|
||||||
|
|
||||||
|
# If development: Use SQL source including INFLUX-Job Metadata instead
|
||||||
|
cp ./sql-source/ClusterCockpit-dev.sql ./sql-init/ClusterCockpit.sql
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
0
data/sql-init/.gitkeep
Normal file
0
data/sql-init/.gitkeep
Normal file
180
data/sql-source/ClusterCockpit-demo.sql
Normal file
180
data/sql-source/ClusterCockpit-demo.sql
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user