This commit is contained in:
marko
2024-10-13 17:45:01 +02:00
parent 0c25d62a45
commit 1d9deebd58
5 changed files with 38 additions and 22 deletions

View File

@@ -8,4 +8,10 @@ RUN docker-php-ext-install pdo pdo_mysql
# install and add xdebug extension
# @todo What is pecl?
# @todo What is xdebug and how do I use it?
RUN pecl install xdebug && docker-php-ext-enable xdebug
RUN pecl install xdebug && docker-php-ext-enable xdebug
RUN ls /home/ -lah
ADD ./cwsvjudo@bplaced/www/participo /home/cwsvjudo/httpdocs/participo/lastLogins.json
RUN chown -R www-data:www-data /home/cwsvjudo/httpdocs/participo/lastLogins.json
RUN ls -lah /home/cwsvjudo/httpdocs/participo/

View File

@@ -1,15 +0,0 @@
<?php
# demo file testing the docker installed db
$pdo = new PDO(
'mysql:dbname=cwsvjudo; host=database;',
'cwsvjudo',
'kodokan',
[PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]
);
$query = $pdo->query('SHOW VARIABLES like "version"');
$row = $query->fetch();
echo 'MYSQL version: '. $row['Value'];

View File

@@ -12,10 +12,16 @@ services:
- "80:80"
# files and directories to be available in the container
# - localPath:pathInContainer
volumes:
volumes:
# nginx config file
- ./nginx.conf:/etc/nginx/conf.d/nginx.conf
# - ./app:/app
- ./cwsvjudo@bplaced/:/users/cwsvjudo
# the app itself
- ./cwsvjudo@bplaced/www/participo:/home/cwsvjudo/httpdocs/participo
# the apps config files
- ./config-heliohost/cwsvJudo.config.php:/home/cwsvjudo/.local/cwsvJudo.config.php
# ressourcen
- /home/marko/cwsvJudo/submodules/materialize/dist:/home/cwsvjudo/httpdocs/ressourcen/materializeCss
- /home/marko/cwsvJudo/homepage/cwsvJudo/build/graphiken:/home/cwsvjudo/httpdocs/ressourcen/graphiken
# php and extensions
php:
# use pre-build image from docker..
@@ -27,8 +33,10 @@ services:
# files and directories to be available in the container
# @todo Except from better structuring: Is there a reason for not having the volumes as one central list?
volumes:
- ./cwsvjudo@bplaced:/users/cwsvjudo/
# install a dm
# the app itself
- ./cwsvjudo@bplaced/www/participo:/home/cwsvjudo/httpdocs/participo
# the apps config files
- ./config-heliohost/cwsvJudo.config.php:/home/cwsvjudo/.local/cwsvJudo.config.php
# @todo Maybe use postgre instead?
database:
image: mariadb:latest

View File

@@ -1,7 +1,8 @@
# @todo Needs helpfull comments.
server {
listen 80 default_server;
root /users/cwsvjudo/www;
# root /users/cwsvjudo/www;
root /home/cwsvjudo/httpdocs;
index index.php index.html index.htm;

View File

@@ -0,0 +1,16 @@
# Planung Kyu-Prüfung 2024-2
| Name | Vorname | AK | Kyu | 2xKyu |
| :---------- | :-------- | :---: | :---: | :---: |
| Weidensager | Nick | M | (X) | - |
| Dumler | Arthur | U18 | (X) | - |
| Richter | Friedrich | U17 | X | X |
| Brittnacher | Romy | U14 | (X) | - |
| Richter | August | U13 | X | X |
| Eberlein | Benedikt | U12 | X | X |
| Kutschmann | Leonhard | U12 | X | X |
| Bondar | David | U12 | X | X |
| Ortmans | Leonie | U11 | (X) | - |
| Maiatska | Mariia | U10 | (X) | - |
| Eberlein | Johanna | U10 | X | - |
| Gerlach | Mara | U9 | (X) | - |