3 ms·
It would be great to know how you start Keycloak. In our CI it takes 40s-1m to start and consumes 500Mb. We use default docker image.
by bvrmn 3y ago
It would be great to know how you start Keycloak. In our CI it takes 40s-1m to start and consumes 500Mb. We use default docker image.
- ffsm8 3y ago> 2024-02-11 17:15:35,764 INFO [io.quarkus] (Shutdown thread) Keycloak stopped in 0.064s > 2024-02-11 17:15:37,754 INFO [org.keycloak.common.Profile] (main) Preview feature enabled: token_exchange ... > 2024-02-11 17:15:44,694 INFO [org.infinispan.CLUSTER] (jgroups-8,a4c127cdee40-48683) ISPN100000: Node 72d48695e84c-46513 joined the cluster so 7 seconds altogether on that restart, though a lot of that time is spend waiting for other nodes before it bootstraps the cluster. (its single node as its a toy server, as i said before) this is the dockerfile: https://pastebin.com/rVdXjUkP https://pastebin.com/rVdXjUkP which is basically just the officially documented way to make the image, albeit set to use a reverse proxy for https https://www.keycloak.org/server/containers https://www.keycloak.org/server/containers your CI pipeline probably downloads the runtime dependencies each time from the internet, as building this image does indeed take around ~40s. the resulting image is ~620MB. As I said earlier, making this image has become basically mandatory with their switch to Quarkus. You should really address that ;)