Giter Club home page Giter Club logo

keycloak-bitnami-image's Introduction

Keycloak Bitnami Image

build

This project aims to build a secure and up-to-date container image for Bitnami's Keycloak Chart, leveraging the Apko and Melange projects to create an image free from Common Vulnerabilities and Exposures (CVEs).

Image Tag Keycloak Version Description
latest 24.0.2 Latest stable release of Keycloak
latest-23 23.0.7 Latest release within Keycloak version 23
latest-22 22.0.9 Latest release within Keycloak version 22

Table of Contents

Introduction

Keycloak Bitnami Container Image is a project that automates the process of building a container image for Bitnami's Keycloak Helm Chart while ensuring it is free from known security vulnerabilities. This is achieved through the use of the Apko and Melange projects, which provide tools for scanning and remediating CVEs in container images.

Prerequisites

Before you begin, ensure you have the following prerequisites installed:

Getting Started

To quickly get started, run the following command to launch Keycloak Bitnami using a specific image:

docker run --rm -it -p 8080:8080 \
  -e KEYCLOAK_DATABASE_VENDOR=dev-file \
  -e KEYCLOAK_ENABLE_HEALTH_ENDPOINTS=true \
  ghcr.io/eminaktas/keycloak-bitnami-image:latest

Also, you can use Docker Compose to run the Keycloak with PostgreSQL:

docker-compose up

This command pulls and runs the specified Keycloak image, exposing it on port 8080. Adjust the environment variables as needed.

Building the Container Image

To build the container image using Melange and Apko, follow these steps:

  • Generate temporary keys with Melange:
docker run --rm -v "$(pwd)":/work cgr.dev/chainguard/melange keygen
  • Build the package for Keycloak metrics SPI:
KEYCLOAK_VERSION=24 docker run --privileged --rm -v "$(pwd)":/work -w /work \
  cgr.dev/chainguard/melange build $KEYCLOAK_VERSION/keycloak-metrics-spi-melange.yaml \
  --signing-key melange.rsa
  • Build the package for Keycloak:
KEYCLOAK_VERSION=24 docker run --privileged --rm -v "$(pwd)":/work -w /work \
  cgr.dev/chainguard/melange build $KEYCLOAK_VERSION/keycloak-melange.yaml \
  --signing-key melange.rsa --pipeline-dir pipelines
  • Build the container image:
KEYCLOAK_VERSION=24 docker run --rm -v "$(pwd)":/work -w /work cgr.dev/chainguard/apko build $KEYCLOAK_VERSION/apko.yaml \
  keycloak-bitnami-image:latest keycloak-bitnami-image-latest.tar \
  --keyring-append melange.rsa.pub

These commands generate the necessary keys, apk packages for Keycloak, and build the final container image for Keycloak Bitnami.

License

This project is licensed under the Apache-2.0 License.

keycloak-bitnami-image's People

Contributors

eminaktas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 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.