Commit a2e03f72 authored by Ozoux's avatar Ozoux
Browse files

Adds docker image and adds html pattern to base theme.

parent 5df36957
Pipeline #711 passed with stages
in 30 seconds
variables:
DOCKER_IMAGE: libresh/keycloak
stages:
- build
- package
- docker-build
build:
stage: build
......@@ -19,3 +23,14 @@ package:
artifacts:
paths:
- liiibre.jar
docker-build:
stage: docker-build
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- cp $DOCKER_SECRET_CONFIG /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile.build --destination $DOCKER_IMAGE:$CI_COMMIT_SHORT_SHA
only:
- master
FROM docker.io/jboss/keycloak:11.0.3
RUN sed -i 's/ng-pattern=\".*\"/pattern=\"[a-zA-Z][a-zA-Z0-9-_.@]{5,24}\"/' /opt/jboss/keycloak/themes/base/admin/resources/partials/user-detail.html \
&& sed -i 's/name=\"name\"/name=\"name\" pattern=\"[a-zA-Z][a-zA-Z0-9-_.@]{5,24}\"/' /opt/jboss/keycloak/themes/base/admin/resources/partials/group-detail.html \
&& sed -i 's/name=\"name\"/name=\"name\" pattern=\"[a-zA-Z][a-zA-Z0-9-_.@]{5,24}\"/' /opt/jboss/keycloak/themes/base/admin/resources/partials/create-group.html
FROM docker.io/jboss/keycloak:11.0.3
RUN sed -i 's/ng-pattern=\".*\"/pattern=\"[a-zA-Z][a-zA-Z0-9-_.@]{5,24}\"/' /opt/jboss/keycloak/themes/base/admin/resources/partials/user-detail.html \
&& sed -i 's/name=\"name\"/name=\"name\" pattern=\"[a-zA-Z][a-zA-Z0-9-_.@]{5,24}\"/' /opt/jboss/keycloak/themes/base/admin/resources/partials/group-detail.html \
&& sed -i 's/name=\"name\"/name=\"name\" pattern=\"[a-zA-Z][a-zA-Z0-9-_.@]{5,24}\"/' /opt/jboss/keycloak/themes/base/admin/resources/partials/create-group.html
COPY ./liiibre.jar /opt/jboss/keycloak/standalone/deployments/liiibre.jar
......@@ -10,7 +10,7 @@ services:
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
keycloak:
image: quay.io/keycloak/keycloak
build: ./
volumes:
- ./src/cfamederic:/opt/jboss/keycloak/themes/cfamederic
- ./src/liiibre:/opt/jboss/keycloak/themes/liiibre
......
version: '3'
services:
postgres:
image: postgres
volumes:
- db:/var/lib/postgresql/data
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
keycloak:
image: keycloak
volumes:
- ./disable-theme-cache.cli:/opt/jboss/startup-scripts/disable-theme-cache.cli
environment:
DB_VENDOR: POSTGRES
DB_ADDR: postgres
DB_DATABASE: keycloak
DB_USER: keycloak
DB_SCHEMA: public
DB_PASSWORD: password
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: indiehosters
ports:
- 8080:8080
depends_on:
- postgres
volumes:
db:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment