Supported Source Code Tags and Current
For more information about this image, the source code, and its history, please see the GitHub repository.
What is Edge Server?
The Edge Server acts as a gatekeeper to the outside world. It keeps unauthorized external requests from passing through. It uses Spring Cloud Zuul as a routing framework, which serves as an entry point to the Consent2Share (C2S) microservices landscape. Zuul uses Spring Cloud Ribbon to lookup available services, and routes the external request to an appropriate service instance, facilitating Dynamic Routing and Load Balancing.
For more information and related downloads for Consent2Share, please visit Consent2Share.
How to use this image
Start a Edge Server instance
Be sure to familiarize yourself with the repository's README.md file before starting the instance.
docker run --name edge-server -d bhits/edge-server:latest <additional program arguments>
NOTE: In order for this API to fully function as a microservice in the Consent2Share application, it is required to setup the dependency microservices and the support level infrastructure. Please refer to the Consent2Share Deployment Guide in the corresponding Consent2Share release (see Consent2Share Releases Page) for instructions to setup the Consent2Share infrastructure.
The Spring profiles
docker are activated by default when building images.
This API can run with the default configuration which is from three places:
application.yml, and the data which the
Configuration Server reads from the
Configuration Data Git Repository. Both
application.yml files are located in the class path of the running application.
We recommend overriding the configuration as needed in the
Configuration Data Git Repository, which is used by the
Also, Spring Boot supports other ways to override the default configuration to configure the API for a certain deployment environment.
The following is an example to override the default database password:
docker run -d bhits/edge-server:latest --spring.datasource.password=strongpassword
When you start the Edge Server image, you can edit the configuration of the Edge Server instance by passing one or more environment variables on the command line.
This environment variable is used to setup which jar file will run. you need mount the jar file to the root of container.
docker run --name edge-server -e JAR_FILE="edge-server-latest.jar" -v "/path/on/dockerhost/edge-server-latest.jar:/edge-server-latest.jar" -d bhits/edge-server:latest
This environment variable is used to setup JVM argument, such as memory configuration.
docker run --name edge-server -e "JAVA_OPTS=-Xms512m -Xmx700m -Xss1m" -d bhits/edge-server:latest
This environment variable is used to setup an application argument. The default value is "--spring.profiles.active=application-default,docker".
docker run --name edge-server -e DEFAULT_PROGRAM_ARGS="--spring.profiles.active=application-default,ssl,docker" -d bhits/edge-server:latest
Supported Docker versions
This image is officially supported on Docker version 1.13.0.
Support for older versions (down to 1.6) is provided on a best-effort basis.
Please see the Docker installation documentation for details on how to upgrade your Docker daemon.
View license information for the software contained in this image.
Documentation for this image is stored in the bhits/edge-server GitHub repository. Be sure to familiarize yourself with the repository's README.md file before attempting a pull request.
If you have any problems with or questions about this image, please contact us through a GitHub issue.