<#import "/templates/guide.adoc" as tmpl>
<#import "/templates/profile.adoc" as profile>

<@tmpl.guide
title="OpenJDK"
summary="Get started with Keycloak on bare metal">

:links-local: true
:links-admin-console: http://localhost:8080/admin[Keycloak Admin Console]
:links-account-console: http://localhost:8080/realms/myrealm/account[Keycloak Account Console]

== Before you start

Make sure you have https://openjdk.java.net/[OpenJDK 17] installed.

== Download Keycloak

Download and extract https://github.com/keycloak/keycloak/releases/download/{version}/keycloak-{version}.zip[keycloak-{version}.zip]
from the Keycloak website.

<@profile.ifCommunity>
After extracting this file, you should have a directory with a name that starts with `keycloak-{version}`.
</@profile.ifCommunity>

<@profile.ifProduct>
After extracting this file, you should have a directory with a name that starts with `rhbk-{version}`.
</@profile.ifProduct>

include::templates/start-keycloak-localhost.adoc[]

include::templates/create-admin-localhost.adoc[]

include::templates/realm-config.adoc[]

include::templates/login-to-account.adoc[]

include::templates/first-app.adoc[]

include::templates/next.adoc[]

</@tmpl.guide>
