provide readme for containers module (#10093)

seems to accidentally gone missing when moving from containers repo

Closes #10092
This commit is contained in:
Dominik Guhr 2022-02-14 16:03:03 +01:00 committed by GitHub
parent d6cd69381b
commit e1967250af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,13 @@
# Keycloak Image
For more information, see the [Running Keycloak in a container guide](https://www.keycloak.org/guides/server/containers).
## Build the image
It is possible to download the Keycloak distribution from a URL:
docker build --build-arg KEYCLOAK_DIST=http://<HOST>:<PORT>/keycloak-<VERSION>.tar.gz . -t <YOUR_TAG>
Alternatively, you need to build the local distribution first, then copy the distributions tar package in the `containers` folder and point the build command to use the image:
cp $KEYCLOAK_SOURCE/quarkus/dist/target/keycloak-<VERSION>.tar.gz .
docker build --build-arg KEYCLOAK_DIST=keycloak-<VERSION>.tar.gz . -t <YOUR_TAG>