diff --git a/data/init.sh b/data/init.sh index afdbaf8..d95f3e6 100755 --- a/data/init.sh +++ b/data/init.sh @@ -12,6 +12,7 @@ if [ $# -gt 0 ]; 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. # 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 mkdir -p influxdb/data @@ -19,8 +20,8 @@ if [ $# -gt 0 ]; then 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 diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index e7b85c3..d1e5ee1 100644 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -13,7 +13,7 @@ services: DOCKER_INFLUXDB_INIT_PASSWORD: ${INFLUXDB_PASSWORD} DOCKER_INFLUXDB_INIT_ORG: ClusterCockpit DOCKER_INFLUXDB_INIT_BUCKET: ClusterCockpit - DOCKER_INFLUXDB_INIT_RETENTION: 2w + DOCKER_INFLUXDB_INIT_RETENTION: 2y DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: ${INFLUXDB_ADMIN_TOKEN} ports: - "127.0.0.1:${INFLUXDB_PORT}:8086"