Pinkgreen MKT - IAM
Custom Keycloak pages implementation powered by Keycloakify.
Requirements
- Java 11
- Maven
- Docker
- Node.js 14
- Yarn
Steps
Build the project
- Before developing or build final Keycloak image, you need to build the project, run the follow command to do it:
$ yarn keycloak
Start development server
- Open the KcContext file and uncomment the
mockPageId
attribute. - Run the follow command to start development server:
$ yarn start
- The application will be opened on your browser and now you are able to code!
Building the final Keycloak image
- Then, you need to build the docker image:
$ docker build . -t brunovnasci/pinkgreen-mkt-iam:1.0.0
- Finally you can run the keycloak instance:
$ docker run --name pinkgreen-mkt-iam -p 8080:8080 -it brunovnasci/pinkgreen-mkt-iam:1.0.0 start-dev --import-realm
- The instance will be hosted on http://localhost:8080/.
- Access the Admin console with
username: admin
andpassword: admin
on http://localhost:8080/admin.
Export realm configuration file
- Open Keycloak container file on your terminal
- Run the follow command to export the configuration file:
$ ./opt/keycloak/bin/kc.sh export --dir /tmp/export --users realm_file --realm pinkgreen-mkt