mirror of
https://github.com/ClusterCockpit/cc-docker.git
synced 2024-11-10 09:07:25 +01:00
Merge branch 'main' into develop-new
This commit is contained in:
commit
c1e0f4a8d9
63
.env
Normal file
63
.env
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
########################################################################
|
||||||
|
# CLUSTERCOCKPIT SETTINGS
|
||||||
|
########################################################################
|
||||||
|
CLUSTERCOCKPIT_BRANCH=main
|
||||||
|
APP_CLUSTERCOCKPIT_INIT=true
|
||||||
|
APP_ENVIRONMENT=dev
|
||||||
|
APP_SECRET=67d829bf61dc5f87a73fd814e2c9f629
|
||||||
|
APP_JWT_PRIV_KEY="dtPC/6dWJFKZK7KZ78CvWuynylOmjBFyMsUWArwmodOTN9itjL5POlqdZkcnmpJ0yPm4pRaCrvgFaFAbpyik/Q=="
|
||||||
|
APP_JWT_PUB_KEY="kzfYrYy+TzpanWZHJ5qSdMj5uKUWgq74BWhQG6copP0="
|
||||||
|
|
||||||
|
########################################################################
|
||||||
|
# PHP
|
||||||
|
########################################################################
|
||||||
|
PHP_XDEBUG_INIT=false
|
||||||
|
PHP_XDEBUG_MODE=debug,develop
|
||||||
|
PHP_XDEBUG_CLIENT_PORT=9003
|
||||||
|
#> LINUX: 'docker0' interface IP of host
|
||||||
|
# PHP_XDEBUG_CLIENT_HOST=1.2.3.4
|
||||||
|
#> MAC/WIN: Docker Wildcard for host IP
|
||||||
|
PHP_XDEBUG_CLIENT_HOST=host.docker.internal
|
||||||
|
|
||||||
|
########################################################################
|
||||||
|
# MySQL
|
||||||
|
# The SQL port is not exposed outside the container
|
||||||
|
########################################################################
|
||||||
|
MYSQL_ROOT_PASSWORD=root
|
||||||
|
MYSQL_DATABASE=ClusterCockpit
|
||||||
|
MYSQL_USER=symfony
|
||||||
|
MYSQL_PASSWORD=symfony
|
||||||
|
|
||||||
|
########################################################################
|
||||||
|
# INFLUXDB
|
||||||
|
########################################################################
|
||||||
|
INFLUXDB_PORT=8086
|
||||||
|
INFLUXDB_PASSWORD=2RPJpkrduLgkpfQCpcBe1jYv
|
||||||
|
INFLUXDB_ADMIN_TOKEN=egLfcf7fx0FESqFYU3RpAAbj
|
||||||
|
INFLUXDB_ORG=ClusterCockpit
|
||||||
|
INFLUXDB_BUCKET=ClusterCockpit/data
|
||||||
|
# Whether or not to check SSL Cert in Symfony Client, Default: false
|
||||||
|
INFLUXDB_SSL=false
|
||||||
|
|
||||||
|
########################################################################
|
||||||
|
# LDAP
|
||||||
|
########################################################################
|
||||||
|
LDAP_ADMIN_PASSWORD=mashup
|
||||||
|
LDAP_ORGANISATION=NHR@FAU
|
||||||
|
LDAP_DOMAIN=rrze.uni-erlangen.de
|
||||||
|
|
||||||
|
########################################################################
|
||||||
|
# PHPMyAdmin
|
||||||
|
########################################################################
|
||||||
|
PHPMYADMIN_PORT=8080
|
||||||
|
|
||||||
|
########################################################################
|
||||||
|
# NGINX
|
||||||
|
########################################################################
|
||||||
|
NGINX_PORT=80
|
||||||
|
NGINX_SYMFONY_SERVER_NAME=localhost
|
||||||
|
|
||||||
|
########################################################################
|
||||||
|
# INTERNAL SETTINGS
|
||||||
|
########################################################################
|
||||||
|
DATADIR=./data
|
34
data/init.sh
Executable file
34
data/init.sh
Executable file
@ -0,0 +1,34 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [ -d symfony ]; then
|
||||||
|
echo "Data already initialized!"
|
||||||
|
echo -n "Perform a fresh initialisation? [yes to proceed / no to exit] "
|
||||||
|
read -r answer
|
||||||
|
if [ "$answer" == "yes" ]; then
|
||||||
|
echo "Cleaning directories ..."
|
||||||
|
rm -rf symfony
|
||||||
|
rm -rf job-archive
|
||||||
|
rm -rf influxdb/data/*
|
||||||
|
rm -rf sqldata/*
|
||||||
|
echo "done."
|
||||||
|
else
|
||||||
|
echo "Aborting ..."
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir symfony
|
||||||
|
wget https://hpc-mover.rrze.uni-erlangen.de/HPC-Data/0x7b58aefb/eig7ahyo6fo2bais0ephuf2aitohv1ai/job-archive_stable.tar.xz
|
||||||
|
tar xJf job-archive_stable.tar.xz
|
||||||
|
rm ./job-archive_stable.tar.xz
|
||||||
|
|
||||||
|
# 101 is the uid and gid of the user and group www-data in the cc-php container running php-fpm.
|
||||||
|
# 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 82:82 ./job-archive
|
||||||
|
|
||||||
|
mkdir -p influxdb/data
|
||||||
|
wget https://hpc-mover.rrze.uni-erlangen.de/HPC-Data/0x7b58aefb/eig7ahyo6fo2bais0ephuf2aitohv1ai/influxdbv2-data_stable.tar.xz
|
||||||
|
cd influxdb/data
|
||||||
|
tar xJf ../../influxdbv2-data_stable.tar.xz
|
||||||
|
rm ../../influxdbv2-data_stable.tar.xz
|
Loading…
Reference in New Issue
Block a user