mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-02 04:53:49 +00:00
improve installation with docker and move static to _static
This commit is contained in:
BIN
source/_static/access_control_model.png
Normal file
BIN
source/_static/access_control_model.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
BIN
source/_static/bundles/group/group_classes_uml.png
Normal file
BIN
source/_static/bundles/group/group_classes_uml.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 50 KiB |
49
source/_static/bundles/group/group_classes_uml.pu
Normal file
49
source/_static/bundles/group/group_classes_uml.pu
Normal file
@@ -0,0 +1,49 @@
|
||||
# diagramme de classe du module "groupe"
|
||||
|
||||
@startuml
|
||||
|
||||
title Diagramme de classe du module "groupe"
|
||||
|
||||
package "PersonBundle" {
|
||||
class Person
|
||||
class Center
|
||||
}
|
||||
|
||||
package "GroupBundle" {
|
||||
Person "1" <-- Membership
|
||||
Membership "0..*" <--> "Group"
|
||||
Type "1" --> "1..*" Role
|
||||
Membership -right-> "1" Role
|
||||
Group -right-> "1" Type
|
||||
Group -left-> "1" Center
|
||||
}
|
||||
|
||||
class Membership {
|
||||
- role
|
||||
- person
|
||||
- group
|
||||
}
|
||||
note left: <b>Membership</b> relie les groupes aux\npersonnes. Chaque membership a un\n <b>role</b>, le rôle est à choisir\nparmi ceux possibles pour le <b>type</b> de <b>groupe</b>
|
||||
|
||||
class Group {
|
||||
- type
|
||||
- memberships
|
||||
- name
|
||||
- center
|
||||
}
|
||||
note left: Un groupe a un type qui est défini à sa création.
|
||||
|
||||
class Type {
|
||||
- roles
|
||||
}
|
||||
note right: Les types de groupe qu'il est possible de créer \nsont définis dans l'interface d'administration.\nExemple de type: "famille", "groupe de parole", "stage", ...
|
||||
|
||||
class Role {
|
||||
- name
|
||||
}
|
||||
note right: Pour chaque <b>Type</b> on définit des rôles\npossibles pour ce type de groupe. Par exemple, pour le\ntype "famille" on peut avoir les rôles <i>parents</i> et <i>enfants</i>.
|
||||
|
||||
|
||||
|
||||
|
||||
@enduml
|
35
source/_static/code/installation/docker-compose.yml
Normal file
35
source/_static/code/installation/docker-compose.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
version: '2'
|
||||
services:
|
||||
fpm:
|
||||
image: dev-activity-person-report
|
||||
links:
|
||||
- db
|
||||
- redis
|
||||
- logstash:gelf
|
||||
environment:
|
||||
- ADMIN_PASSWORD=admin
|
||||
# add a link to custom.yml if needed
|
||||
# volumes:
|
||||
# - /tmp/custom.yml:/var/www/chill/app/config/custom.yml
|
||||
redis:
|
||||
image: redis
|
||||
db:
|
||||
image: chill/database
|
||||
logstash:
|
||||
image: logstash
|
||||
command: logstash -e 'input { gelf { } } output { stdout{ } }'
|
||||
expose:
|
||||
- "12201/udp"
|
||||
volumes:
|
||||
- /var/log/logstash
|
||||
nginx:
|
||||
image: nginx
|
||||
links:
|
||||
- fpm
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf
|
||||
volumes_from:
|
||||
- fpm:ro
|
||||
ports:
|
||||
- 8080:80
|
||||
|
71
source/_static/code/installation/nginx.conf
Normal file
71
source/_static/code/installation/nginx.conf
Normal file
@@ -0,0 +1,71 @@
|
||||
user nginx;
|
||||
worker_processes 1;
|
||||
|
||||
error_log /var/log/nginx/error.log warn;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
|
||||
access_log /var/log/nginx/access.log main;
|
||||
error_log /var/log/nginx/error.log;
|
||||
|
||||
sendfile on;
|
||||
#tcp_nopush on;
|
||||
|
||||
keepalive_timeout 65;
|
||||
|
||||
gzip off;
|
||||
|
||||
#include /etc/nginx/conf.d/*.conf;
|
||||
|
||||
upstream phpfcgi {
|
||||
server fpm:9000;
|
||||
# server unix:/var/run/php5-fpm.sock; #for PHP-FPM running on UNIX socket
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
#server_name symfony2;
|
||||
root /var/www/chill/web;
|
||||
|
||||
error_log /var/log/nginx/symfony2.error.log;
|
||||
access_log /var/log/nginx/symfony2.access.log;
|
||||
|
||||
# strip app.php/ prefix if it is present
|
||||
rewrite ^/app\.php/?(.*)$ /$1 permanent;
|
||||
|
||||
location / {
|
||||
index app.php;
|
||||
try_files $uri @rewriteapp;
|
||||
}
|
||||
|
||||
location @rewriteapp {
|
||||
rewrite ^(.*)$ /app.php/$1 last;
|
||||
}
|
||||
|
||||
# pass the PHP scripts to FastCGI server from upstream phpfcgi
|
||||
location ~ ^/(app|app_dev|config)\.php(/|$) {
|
||||
fastcgi_pass phpfcgi;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param HTTPS off;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
BIN
source/_static/puml/pagination-sequence.png
Normal file
BIN
source/_static/puml/pagination-sequence.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
20
source/_static/puml/pagination-sequence.puml
Normal file
20
source/_static/puml/pagination-sequence.puml
Normal file
@@ -0,0 +1,20 @@
|
||||
@startuml
|
||||
|
||||
actor "controller, service, ..." as x
|
||||
participant "paginator"
|
||||
participant "Request"
|
||||
|
||||
x -> paginator: getCurrentPage()
|
||||
activate paginator
|
||||
|
||||
paginator -> Request: read the `page` parameter in GET request
|
||||
activate Request
|
||||
Request -> paginator
|
||||
deactivate Request
|
||||
|
||||
paginator -> paginator: construct a page object for current page number
|
||||
paginator -> x: return the `page`
|
||||
deactivate paginator
|
||||
|
||||
@enduml
|
||||
|
Reference in New Issue
Block a user