You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jim Clark edited this page Mar 31, 2022
·
4 revisions
This fork of clojure-polylith-realworld-example-app has a new project that uses jib to package the realworld-backend into a container image. There is an additional directory at projects/realworld-backend-jib which demonstrates this packaging.
cd projects/realworld-backend-jib
clj -T:jib build
This is configured to build an image to a local docker daemon (tagged with realworld-backend:latest).
Start up the server using the following command.
docker run --rm -p 6003:6003 realworld-backend
We could not use the existing project at projects/realworld-backend/deps.edn. This project was designed to run the server in the repl, and uses the furkan3ayraktar/polylith-clj-deps-ring library, which builds a classloader suitable for running a polylith app in a repl, but this entrypoint is not ideal for a container process.