Building
For the sake of deploying the taxonomy API to cloud infrastructure, it is recommended to build an uberjar that will contain all the dependencies needed for running the taxonomy. The following command will build an uberjar:
clj -T:build uber
It is possible to build a Docker image with the taxonomy API. The Docker image build process is specified in the Dockerfile at the root of this repository. The Dockerfile will invoke the command RUN clojure -T:build uber
to build an uberjar used inside the Docker image. Building an uberjar ensures that all dependencies are resolved when the Docker image is built instead of when it is executed.
The Docker image can be built using podman
(or docker
) with the following command invoked from the root of this repository, where we tag the image my-taxonomy-image
:
podman build -t my-taxonomy-image .