mirror of
https://github.com/ClusterCockpit/cc-docker.git
synced 2024-12-27 11:49:05 +01:00
Remove options in init skript
This commit is contained in:
parent
e44a6bae4d
commit
444b726a05
29
data/init.sh
29
data/init.sh
@ -21,24 +21,13 @@ 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
|
# 101 is the uid and gid of the user and group www in the cc-php container running php-fpm.
|
||||||
cp ./sql-source/ClusterCockpit-demo.sql ./sql-init/ClusterCockpit.sql
|
# For a demo with no new jobs it is enough to give www read permissions on that directory.
|
||||||
|
echo "This script needs to chown the job-archive directory so that the application can write to it:"
|
||||||
|
sudo chown -R 101:101 ./job-archive
|
||||||
|
|
||||||
if [ $# -gt 0 ]; then
|
mkdir -p influxdb/data
|
||||||
if [ $1 == "dev" ]; then
|
wget https://hpc-mover.rrze.uni-erlangen.de/HPC-Data/0x7b58aefb/eig7ahyo6fo2bais0ephuf2aitohv1ai/influxdbv2-data.tar.xz
|
||||||
# 101 is the uid and gid of the user and group www in the cc-php container running php-fpm.
|
cd influxdb/data
|
||||||
# For a demo with no new jobs it is enough to give www read permissions on that directory.
|
tar xJf ../../influxdbv2-data.tar.xz
|
||||||
echo "This script needs to chown the job-archive directory so that the application can write to it:"
|
rm ../../influxdbv2-data.tar.xz
|
||||||
sudo chown -R 101:101 ./job-archive
|
|
||||||
|
|
||||||
mkdir -p influxdb/data
|
|
||||||
wget https://hpc-mover.rrze.uni-erlangen.de/HPC-Data/0x7b58aefb/eig7ahyo6fo2bais0ephuf2aitohv1ai/influxdbv2-data.tar.xz
|
|
||||||
cd influxdb/data
|
|
||||||
tar xJf ../../influxdbv2-data.tar.xz
|
|
||||||
rm ../../influxdbv2-data.tar.xz
|
|
||||||
cd ../..
|
|
||||||
|
|
||||||
# If development: Use SQL source including INFLUX-Job Metadata instead
|
|
||||||
cp ./sql-source/ClusterCockpit-dev.sql ./sql-init/ClusterCockpit.sql
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
Loading…
Reference in New Issue
Block a user