Giter VIP home page Giter VIP logo

raincatcher-keycloak's Introduction

Custom Keycloak Docker

the contents of this repository are used to create a Keycloak standalone server docker image built on the alpine base to provide a small image to run tests against. The image size is ~309 MB as opposed to the JBoss/Keycloak image which is ~640 MB.

Running

Execute the following commands to build and run the server:

chmod +x build_run_populate.sh
./build_run_populate.sh

This will build the docker image, start the server with an admin user generated, and then populate the server with some test data specified from the data_files/raincatcher-realm.json file.

Navigate to http://localhost:8080 and click on the "Administration Console" link on the page and login as the admin user using the following credentials:

Username: admin
Password: admin

Successful automated seeding of the container is verified by checking that the "Raincatcher" realm is visibile along with the master realm in the dropdown menu on the upper left corner of the page.

Stopping the Server

The name of the running container is "keycloak". Execute the following command to stop the running container:

docker stop keycloak

Restarting the stopped

docker start keycloak

Modifying Seed Data

To modify the seed data in the server, make the appropriate changes to the data_files/raincatcher-realm.json file, stop and delete any running keycloak container, and run the build_run_populate.sh script again

Note: The 'docker build' command will pickup again at the point where the realm file to be copied into the image is specified.

raincatcher-keycloak's People

Contributors

tommyj1994 avatar

Watchers

 avatar

Forkers

nanyte25

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.