Add a Dockerfile for frontend test container; adapt code to simplify synchronization or Docker linkage

This commit is contained in:
nemunaire 2014-11-21 15:55:38 +01:00
commit bca09af2e0
15 changed files with 329 additions and 218 deletions

4
nginx_gen_team.sh Normal file → Executable file
View file

@ -3,4 +3,6 @@
# Generate from database (exported XML from the website) the part of nginx
# configuration file authenticating teams
curl http://localhost/admin/teams/export 2> /dev/null | grep "<name id" | sed -E 's@^.*id="([0-9]+)".*>(.*)<.*$@ if ($ssl_client_s_dn ~ "/C=FR/ST=France/O=Epita/OU=SRS/CN=\2/") { set $team \1; }@'
cd $(dirname "$0")
curl http://localhost/$(grep prefix_admin onyx/config/root.xml | sed -E 's@.*<var.*>(.*)</var>.*@\1@')/teams/export 2> /dev/null | grep "<name id" | sed -E 's@^.*id="([0-9]+)".*>(.*)<.*$@ if ($ssl_client_s_dn ~ "/C=FR/ST=France/O=Epita/OU=SRS/CN=\2/") { set $team \1; }@'