Fix HTTPS management after first deploy #1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
New deployments are broken. See the drone logs.
OK, so in order to get a fresh install working I ran
dokku apps:destroy keycloak
and then a new build worked just fine! Then testing that, on pushing out to Gitea/Drone for a deploy, I got another failure with the same error as above (see https://drone.autonomic.zone/autonomic-cooperative/keycloak/8/1/3). So, it seems like additional deployments will fail without wiping out the app...It may be something to do with this log:
Perhaps the second keycloak is generating a cert that is only valid for localhost but the app already has the LE certs mounted into the storage. This might be it...
For now, it's up, I'll come back to this... work around is for now:
Then push out to deploy again. All data is stored host side on a persistent volume.
Fix HTTPS managementto Fix HTTPS management after first deployAh, I've just noticed it is a port conflict perhaps...
Where drone and keycloak are both using port 8080...
Related to autonomic-cooperative/organising#7.
Need to override https://github.com/keycloak/keycloak-containers/blob/master/server/tools/docker-entrypoint.sh somehow to configure the port. Ideally I don't have to override this file entirely...
For now, I was able to reconfigure the drone port but will need to make the keycloak port configurable for sure since taking up this port forever will definitely lead to issues. However, upon deploying once more, I was still getting the same HTTPS issue so it appears to be something else at play here...
So, as it turns out, the internal CHECKS comman is failing...
Where
Proto:https
is then requesting ahttp://
URL.Maybe I'm doing something wrong...
Opened up https://github.com/dokku/dokku/issues/3912.
OK, so to resolve this, we just skip CHECKS because of how Keycloak works on the application level. It seems to be the simplest way forward and there are still default checks in place.