aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrien <adrien@luxeylab.net>2023-03-27 10:34:52 +0200
committerAdrien <adrien@luxeylab.net>2023-03-27 10:34:52 +0200
commit9eaa4c068ddc72eb2764b171918281cad62212b5 (patch)
treecb21271a828a6bce56e66ee441db5a72422828bf
parentf77697f50147f34aad34fd13aab85f335f6a9746 (diff)
downloadguichet-9eaa4c068ddc72eb2764b171918281cad62212b5.tar.gz
guichet-9eaa4c068ddc72eb2764b171918281cad62212b5.zip
added integration folder with a docker compose file and some explanation
-rw-r--r--integration/README.md11
-rw-r--r--integration/config/bottin.json13
-rw-r--r--integration/docker-compose.yml16
3 files changed, 40 insertions, 0 deletions
diff --git a/integration/README.md b/integration/README.md
new file mode 100644
index 0000000..e8cc112
--- /dev/null
+++ b/integration/README.md
@@ -0,0 +1,11 @@
+# Intégration de Guichet dans un environnement de dev/test
+
+## Dev process
+
+On utilise `docker compose` pour mettre en place l'infrastructure dont dépend Guichet, que l'on développe. (On rajoutera Garage dedans plus tard.)
+
+On ne met pas Guichet dans le `compose` pour pouvoir itérer plus rapidement : un `go build` et on a la nouvelle version, sans avoir restart les dépendances (Bottin, Consul...).
+
+## Notes
+
+* Bien récupérer le password `admin` dans les logs de 1er lancement de Bottin : il ne sera pas réaffiché. \ No newline at end of file
diff --git a/integration/config/bottin.json b/integration/config/bottin.json
new file mode 100644
index 0000000..0b54e22
--- /dev/null
+++ b/integration/config/bottin.json
@@ -0,0 +1,13 @@
+{
+ "suffix": "dc=bottin,dc=eu",
+ "bind": "bottin:389",
+ "consul_host": "consul:8500",
+ "acl": [
+ "ANONYMOUS::bind:*,ou=users,dc=bottin,dc=eu:",
+ "ANONYMOUS::bind:cn=admin,dc=bottin,dc=eu:",
+ "*,dc=bottin,dc=eu::read:*:* !userpassword",
+ "*::read modify:SELF:*",
+ "cn=admin,dc=bottin,dc=eu::read add modify delete:*:*",
+ "*:cn=admin,ou=groups,dc=bottin,dc=eu:read add modify delete:*:*"
+ ]
+}
diff --git a/integration/docker-compose.yml b/integration/docker-compose.yml
new file mode 100644
index 0000000..5ed0650
--- /dev/null
+++ b/integration/docker-compose.yml
@@ -0,0 +1,16 @@
+version: '3'
+services:
+ consul:
+ image: consul
+ restart: "always"
+ expose:
+ - "8500"
+ bottin:
+ image: dxflrs/bottin:dnp41vp8w24h4mbh0xg1mybzr1f46k41
+ command: "-config /etc/bottin.json"
+ restart: "always"
+ depends_on: ["consul"]
+ expose:
+ - 389
+ volumes:
+ - "./config/bottin.json:/etc/bottin.json"