Contains the setup of the build image that is used to build the haskell service quickly. The image is named haccbuild and tagged with the version number of the haskell stackage set, currently 16.31. Make sure you use the correct tag in the Dockerfile when building.
Created by running makefile image-haskell-build-env from the root directory.
This takes time and generates a large image.
Contains the setup of the build image that is used to build the purescript portal quickly. The image is named paccbuild and tagged with 14. Which is the latest purescript version and uses also the latest package set. Make sure you use the correct tag in the Dockerfile when building.
Created by running makefile image-purescript-build-env from the root directory.
Contains the setup of the server image. The image is named haccsvc and tagged with 1, 1.0 and latest. It uses the haccbuild:16.31 and paccbuild:14 images to build the server, so they must be generated in advance.
Created by running makefile image-build-server from the root directory.
The server is configured by setting the following environment variables, e.g. you can use the --env-file switch on the docker run command.
HAPI_KEY=/home/tomas/haskell/haccessability/deployment/tls.key
HAPI_CERTIFICATE=/home/tomas/haskell/haccessability/deployment/tls.pem
HAPI_DATABASE=postgresql://uid:[email protected]:5432/heat
HAPI_JWT_SESSION_LENGTH=3600
HAPI_JWT_SECRET="<changeme>"
HAPI_PASSWORD_COST=10
The HAPI_KEY and HAPI_CERTIFICATE points to the certificate and key used for the TLS setup.
The HAPI_DATABASE contains the URL to the PostGIS database.
The HAPI_JWT_SESSION_LENGTH contains the session timeout value.
The HAPI_JWT_SECRET contains the secret used to create the token.
The HAPI_PASSWORD_COST contains the bcrypt cost factor for the password hashing.