Skip to content

Latest commit

 

History

History
101 lines (76 loc) · 3.67 KB

infrastructure-architecture.md

File metadata and controls

101 lines (76 loc) · 3.67 KB

DEV - TEST

Docker container technology is used.

On the lpdc-dev.s.redhost.be three docker projects are created (dev, test, acc). There is one webserver, that based on the URL redirects traffic to correct docker project.

Environments:

Installation procedure (apply similar for dev, test)

Clone app-lpdc-digitaal-loket

ssh [email protected]  

cd /data

git clone https://github.com/lblod/app-lpdc-digitaal-loket.git app-lpdc-digitaal-loket-dev

Checkout correct branch / tag

git checkout development

create docker-compose.override.yml:

For dev, test, acc.

Note: on dev, the latest versions of our lpdc containers are used.

Note: secrets are blanked.

Create hidden .env file with contents:

Note:: we don't use the docker-compose.dev.yml file ...

COMPOSE_FILE=docker-compose.yml:docker-compose.override.yml

Bring docker container up

drc up -d

ACC

Contains a copy of production data.

Installation same as dev - test, with following (manual additions/changes):

index c0b05a6..8d46f5b 100644
--- a/config/dispatcher/dispatcher.ex
+++ b/config/dispatcher/dispatcher.ex
@@ -26,9 +26,9 @@ defmodule Dispatcher do
     forward conn, path, "http://cache/bestuurseenheid-classificatie-codes/"
   end
 
-  match "/mock/sessions/*path" do
-    forward conn, path, "http://mocklogin/sessions/"
-  end
+ # match "/mock/sessions/*path" do
+ #   forward conn, path, "http://mocklogin/sessions/"
+ # end
   match "/sessions/*path" do
     forward conn, path, "http://login/sessions/"
   end
  • To still enable access for the lpdc test user, an additional basic authentication scheme is implemented
    • /config/basic-auth/app.conf defines the config
    • In hidden file /config/basic-auth/.htpasswd , a list of username/hashed passwords is stored
    • in docker-overrides/acc.override.yml you will find extra containers:
      • controle (basic auth enabled)
      • controle-identifier
      • controle-dispatcher
      • mocklogin
      • dashboard config overrides (basic auth enabled)
    • So, upon installing the initial and for each new version, do following steps,
      • Ensure to copy the /config/dispatcher/dispatcher.ex (without the commented /mock/sessions) to /config/controle-dispatcher/dispatcher.ex. .
      • Merge the /config/dispatcher/dispatcher.ex change of the /mock/sessions with the latest version of this file.
      • Update in the docker-compose-override.yml manually the frontend version (controle container), identifier version (controle-identifier container) and dispatcher version (controle-dispatcher) to the one of this release.
  • URLS

PROD

Same config as acc.