2023-10-07 10:52:49 +02:00
|
|
|
#!/bin/bash
|
|
|
|
docker compose stop
|
2023-10-07 23:30:02 +02:00
|
|
|
wait
|
2023-10-07 12:15:46 +02:00
|
|
|
docker build -t php81:v1 php81-apache
|
2023-10-07 10:52:49 +02:00
|
|
|
gunzip dump/data.sql.gz
|
|
|
|
gunzip dump/district.sql.gz
|
2023-10-09 13:26:55 +02:00
|
|
|
gunzip dump/community.sql.gz
|
2023-10-07 12:31:45 +02:00
|
|
|
cp -n config.sample.php config.php
|
2023-10-07 10:52:49 +02:00
|
|
|
docker compose up -d
|
2023-10-07 23:30:02 +02:00
|
|
|
wait
|
2023-10-07 11:47:23 +02:00
|
|
|
docker exec -it unfallkarte-db mysqladmin -uroot -pgeheim create unfallstatistik
|
2023-10-07 12:24:48 +02:00
|
|
|
docker exec -i unfallkarte-db mysql -uroot -pgeheim unfallstatistik < ./dump/data.sql
|
|
|
|
docker exec -i unfallkarte-db mysql -uroot -pgeheim unfallstatistik < ./dump/district.sql
|
2023-10-09 13:26:55 +02:00
|
|
|
docker exec -i unfallkarte-db mysql -uroot -pgeheim unfallstatistik < ./dump/community.sql
|