I have been tasked with upgrading from 17.0.0-legacy on docker to 18, then to 19 or straight to 19 My current dockerfile is as follows. It doesn’t seem to know what to do with the CMD line and errors -b not a valid option. If I change the top line to 17.0.0 legacy it works
FROM quay.io/keycloak/keycloak:18.0.0-legacy
RUN echo "copy file"
COPY ./keycloak-export.json /opt/jboss/keycloak/keycloak-export.json
CMD ["-b", "0.0.0.0", "-Dkeycloak.migration.action=import -Dkeycloak.migration.provider=singleFile -Dkeycloak.migration.file=/opt/jboss/keycloak/keycloak-export.json -Dkeycloak.migration.strategy=OVERWRITE_EXISTING"]
I use Docker-compose /w Docker which I created a yaml file for my setup then all I do is execute it. I don’t directly make a Docker container. I haven’t done this with Keycloak yet but I did find docker-compose easier to use. Not sure if that what you have done.
we have a version that builds locally with a dockerfile because " its simpler " and a version that builds in the cloud with a docker compose.
I’ll have to solve the import problem both ways darnit