Tangram is now in a conceptual phase. It's in scaffolding phase (configuring repo, setting up tooling, ...).
TL:DR
$ make build
$ ./dist/tangram
This project uses make
as build automation tool, so, all building project task are defined in Makefile
.
The project targets are:
compile
(default target): Compiles the project.dependencies
: Update project dependencies.clean
: Clean all project artifactsfmt
: Formats the codetest
: Runs unit testsbenchmark
: Runs benchmark testsbuild
(depends onfmt
andtest
): Compiles the project and generates a full independent Linux binary artifact.install
(depends onbuild
): Build the Docker container image.deploy
(depends oninstall
): Publish the Docker container image to registry.
For example, to compile project while working:
$ make
To generate the final Linux full independent binary artifact:
$ make clean build
Also you can generate a Docker image:
$ make install
You can run the binary artifact or the Docker container.
To run the binary:
$ ./dist/tangram
To run the Docker image:
$ docker run -ti -p 2018:2018 tangram
The service exposes liveness and readiness health checks. You can access from command line (curl http://localhost:2018/healthy
or curl http://localhost:2018/ready
) of from a browser (xdg-open http://localhost:2018/healthy
or xdg-open http://localhost:2018/ready
).