Giter Club home page Giter Club logo

clevercloud-keycloak's Introduction

CleverCloud Keycloak template

This project allows you to deploy a Keycloak server on CleverCloud without using any container.

Deployment instructions

  1. Fork this project
  2. Create a Java + JAR application based on a fork of this repository
  3. Link the application to a PostgreSQL or MySQL add-on. If not, it will use a local DB
  4. Copy the following environment variable in expert mode :
KC_FEATURES=token-exchange
KEYCLOAK_ADMIN=admin
KEYCLOAK_ADMIN_PASSWORD=password
KC_METRICS_ENABLED=true
KC_HTTP_PORT=8080
CC_JAR_PATH=./lib/quarkus-run.jar
KC_DB_POOL_INITIAL_SIZE=1
KC_DB_POOL_MIN_SIZE=1
KC_DB_POOL_MAX_SIZE=5
CC_JAVA_VERSION="11"
CC_METRICS_PROMETHEUS_PORT=8080
CC_PRE_BUILD_HOOK="./build.sh"
CC_RUN_COMMAND="./start.sh"
KEYCLOAK_VERSION="17.0.0"

First of all, adapt the KC_DB_POOL_INITIAL_SIZE, KC_DB_POOL_MIN_SIZE, KC_DB_POOL_MAX_SIZE variables according to the database plan you choose. By default, it's been configured for the DEV plan (limited to 5 connections).

Define your initial admin account with KEYCLOAK_ADMINand KEYCLOAK_ADMIN_PASSWORD

On the first run, Keycloak will build a runable JAR with the optional features, the database driver, and the metrics subsystem.

Although the application will boot this way, it will be usable with the default *.cleverapps.io. Define KC_HOSTNAMEvariable with your own domain name. If this var is not define, Keycloak will disallow "STRICT_HOSTNAME" feature.

FYI

The Java + JAR is used to get a dedicated Java runtime, but we do not use any Keycloak JAR to start the server. We use the dedicated Keycloak shell script for starting the server. But as that Runtime first check for the definition and the existence of a JAR file, so we use the CC_JAR_PATHto the quarkus jar.

clevercloud-keycloak's People

Contributors

jlannoy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.