first commit

This commit is contained in:
rnsrk 2025-04-06 22:48:06 +02:00
commit 098f59b644
3632 changed files with 518046 additions and 0 deletions

14
drupal/create_infra.bash Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
if [ ! -d "drupal/root" ]; then
mkdir -p drupal/root
docker run --rm drupal:11.1.6-php8.4-fpm-bookworm tar -cC /opt/drupal/ . | tar -xC drupal/root
fi
source ../core/.env
source .env
docker exec postgres psql -U $POSTGRES_USER -d postgres -c "CREATE USER $DRUPAL_DB_USER WITH PASSWORD '$DRUPAL_DB_PASSWORD';"
docker exec postgres psql -U $POSTGRES_USER -d postgres -c "CREATE DATABASE $DRUPAL_DB_NAME OWNER $DRUPAL_DB_USER;"
docker exec postgres psql -U $POSTGRES_USER -d $DRUPAL_DB_NAME -c "GRANT ALL PRIVILEGES ON DATABASE $DRUPAL_DB_NAME TO $DRUPAL_DB_USER;"