Following tools required to run the print service locally.
- Ngrok to expose local port to remote to communicate with websub
- Java 11.
- Config Server running in respective environment.
- To build jars:
$ cd print $ mvn clean install
- To skip JUnit tests and Java Docs:
$ mvn install -DskipTests=true -Dmaven.javadoc.skip=true
- To build Docker for a service:
$ cd <service folder> $ docker build -f Dockerfile
The print project is a spring boot service.
Refer to the configuration guide
To run a Print service jar:
java -Dspring.profiles.active=<profile> -Dspring.cloud.config.uri=<config-url> -Dspring.cloud.config.label=<config-label> -jar <print-jar-name>.jar
Example:
_profile_: `env` (extension used on configuration property files*)
_config_label_: `master` (git branch of config repo*)
_config-url_: `http://localhost:51000` (Url of the config server*)
To run as Docker:
docker run -dp 3000:3000 <name of the image>