diff --git a/.gitlab/ci/kratos/Dockerfile b/.gitlab/ci/kratos/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..b0d345f00f2b995de03d67cec0d43b30537e83f4 --- /dev/null +++ b/.gitlab/ci/kratos/Dockerfile @@ -0,0 +1,15 @@ + + + +# This Dockerfile is only used for testing CI/CD testing and is not used in +# production. +FROM oryd/kratos:latest + +# Set DSN in Dockerfile, as services variables in CI/CD testing as shared +# between services and the DSN is different for different services. +ENV DSN="postgres://kratos:kratos@postgres/kratos" + +# Copy testing schema and config into image +COPY identity.default.schema.json /etc/config/identity.default.schema.json +COPY kratos.yaml /etc/config/kratos.yaml + diff --git a/.gitlab/ci/kratos/kratos.yaml b/.gitlab/ci/kratos/kratos.yaml new file mode 100644 index 0000000000000000000000000000000000000000..bc9e92999c8fa2b97abd422637b5902118a61d00 --- /dev/null +++ b/.gitlab/ci/kratos/kratos.yaml @@ -0,0 +1,40 @@ +# This is the kratos configuration file, which is used during CI/CD testing +# this file does not end up in production. + +courier: + smtp: + from_address: no-reply@example.com + connection_uri: smtp://smtp:smtp@smtp.example.com:25/ + +identity: + default_schema_url: file:///etc/config/identity.default.schema.json +log: + level: info +selfservice: + default_browser_return_url: http://localhost/login/login + flows: + login: + ui_url: http://localhost/login/login + recovery: + enabled: true + lifespan: 15m + ui_url: http://localhost/login/recovery + registration: + ui_url: http://localhost/login/registration + settings: + ui_url: http://localhost/login/settings + methods: + link: + enabled: true + +secrets: + cookie: + - a not so safe secret + - another not so safe secret + +serve: + admin: + port: 4434 + public: + base_url: http://localhost/api/ + port: 4433 diff --git a/login/Dockerfile b/login/Dockerfile index 92a79973b57fa6bd624fd7838fde7ea09efe2c81..ad70a03d2f20b9f9e850509876b723bb2e035ff9 100644 --- a/login/Dockerfile +++ b/login/Dockerfile @@ -4,10 +4,9 @@ RUN apk add gcc libc-dev libffi-dev g++ postgresql-dev WORKDIR /usr/src/app -COPY requirements.txt ./ -RUN pip install --no-cache-dir -r requirements.txt - +# COPY requirements.txt ./ COPY . . +RUN pip install --no-cache-dir -r requirements.txt EXPOSE 5000