Skip to content
Snippets Groups Projects
Commit 02d084bc authored by Ludovic Claude's avatar Ludovic Claude
Browse files

Update and document environment variables for the Docker container

parent 29547b26
No related branches found
No related tags found
No related merge requests found
......@@ -35,16 +35,16 @@ logging:
server:
contextPath: {{ default .Env.CONTEXT_PATH "/services" }}
port: {{ default .Env.PORT "8080" }}
port: 8080
use-forward-headers: true
session:
timeout: {{ default .Env.SESSION_TIMEOUT "2592000" }}
workflow:
experimentUrl: {{ default .Env.EXPERIMENT_URL "http://172.22.0.1:8087/experiment" }}
listMethodsUrl: {{ default .Env.LIST_METHODS_URL "http://172.22.0.1:8087/list-methods" }}
miningMipUrl: {{ default .Env.ML_URL "http://172.22.0.1:8087/mining" }}
miningExaremeUrl: {{ default .Env.EXAREME_URL "http://hbps2.chuv.ch:9090/mining/query" }}
experimentUrl: {{ default .Env.WOKEN_URL "http://172.22.0.1:8087" }}/experiment
listMethodsUrl: {{ default .Env.WOKEN_URL "http://172.22.0.1:8087" }}/list-methods
miningMipUrl: {{ default .Env.WOKEN_URL "http://172.22.0.1:8087" }}/mining"
miningExaremeUrl: {{ default .Env.EXAREME_URL "http://hbps2.chuv.ch:9090" }}/mining/query
frontend:
redirect:
......
......@@ -7,8 +7,8 @@ RUN wget https://github.com/jwilder/dockerize/releases/download/v0.2.0/dockerize
RUN tar -C /usr/local/bin -xvzf dockerize-linux-amd64-v0.2.0.tar.gz
COPY ./target/portal-backend-DOCKER_BUILD.jar backend.jar
COPY ./config/application.tmpl /config/application.tmpl
CMD mkdir /config
ADD ./config/application.tmpl /config/application.tmpl
EXPOSE 8080
CMD dockerize -template /config/application.tmpl:/config/application.yml java -jar backend.jar
CMD ["dockerize", "-template", "/config/application.tmpl:/config/application.yml", "java", "-jar", "backend.jar"]
# hbpmip/portal-backend
[![](https://images.microbadger.com/badges/version/hbpmip/portal-backend.svg)](http://microbadger.com/images/hbpmip/portal-backend "Get your own version badge on microbadger.com") [![](https://images.microbadger.com/badges/image/hbpmip/portal-backend.svg)](http://microbadger.com/images/hbpmip/portal-backend "Get your own image badge on microbadger.com")
## Docker image for the MIP portal backend.
To use this image, you need a running PostgreSQL database.
You need to configure a few things using some environment variables.
Environment variables:
* DB_URL: JDBC URL to connect to the database, for example "jdbc:postgresql://db:5432/portal"
* DB_USER: User to use when connecting to the database
* DB_PASSWORD: Password to use when connecting to the database
* AUTHENTICATION: 0 to disable authentication or 1 to enable authentication.
* CLIENT_ID: required when authentication is turned on, client ID for the [OpenID server of HBP](https://services.humanbrainproject.eu/oidc/)
* CLIENT_SECRET: required when authentication is turned on, client secret for the [OpenID server of HBP](https://services.humanbrainproject.eu/oidc/)
* TOKEN_URI: default to "https://services.humanbrainproject.eu/oidc/token"
* AUTH_URI: default to "https://services.humanbrainproject.eu/oidc/authorize"
* USER_INFO_URI: default to "https://services.humanbrainproject.eu/oidc/userinfo"
* LOGGING_LEVEL_WEB: log level for the web layer of the application. Default to "DEBUG"
* LOGGING_LEVEL_HIBERNATE: log level for the Hibernate layer of the application. Default to "DEBUG"
* CONTEXT_PATH: context path appended to all services running in this container. Default to "/services"
* SESSION_TIMEOUT: Timeout in milliseconds for session expiration. Default to 2592000
* WOKEN_URL: URL to woken machine learning server.
* EXAREME_URL: URL to Exareme server.
* FRONTEND_REDIRECT_URL: URL to to redirect after login. Default to "http://frontend/home"
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment