I am trying to run my integration tests in gitlab-ci versus a keycloak instance started via a service. gitlab-ci yaml configuration can be found over here: https://gitlab.com/viae-modules/viae-modules/-/blob/master/.gitlab-ci.yml
services:
- docker:dind
- name: mongo:latest
alias: mongodb
- name: jboss/keycloak:10.0.1
alias: sso
command: ["-b", "0.0.0.0"]
Now I can't connect to this instance. I added some curl commands to validate the connection, but there I see something strange happening:
going to http://sso:8080 gives the following (keycloak) response
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="refresh" content="0; url=/auth/" />
<meta name="robots" content="noindex, nofollow">
<script type="text/javascript">
window.location.href = "/auth/"
</script>
</head>
<body>
If you are not redirected automatically, follow this <a href='/auth'>link</a>.
</body>
</html>
which means that keycloak is up and running. Then, connecting to http://sso:8080/auth gives a 404...
I would expect that this was due to not binding to 0.0.0.0, but I did this in the service configuration.
I assume this has something to do with the gitlab configuration/runner as the following image is responding in a dockerized environment (i.e. not related to docker options/configurations of the base image):
FROM jboss/keycloak:10.0.1
EXPOSE 8080
COPY themes /opt/jboss/keycloak/themes
#Database
ENV DB_VENDOR=xxx
ENV DB_DATABASE=xxx
ENV DB_ADDR=xxx
ENV DB_PORT=xxx
#Admin user
ENV KEYCLOAK_USER=xxx
ENV KEYCLOAK_PASSWORD=xxx
Anyone having a clue of what I did do wrong?