Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

[KEYCLOAK-10059] Use ubi8-minimal instead of base-jdk as base image #217

Merged
merged 1 commit into from Sep 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions server/Dockerfile
@@ -1,4 +1,4 @@
FROM jboss/base-jdk:8
FROM registry.redhat.io/ubi8-minimal

ENV KEYCLOAK_VERSION 6.0.1
ENV JDBC_POSTGRES_VERSION 42.2.5
Expand All @@ -17,7 +17,7 @@ ARG KEYCLOAK_DIST=https://downloads.jboss.org/keycloak/$KEYCLOAK_VERSION/keycloa

USER root

RUN yum update -y && yum install -y epel-release git && yum install -y jq openssl which && yum clean all
RUN microdnf update -y && microdnf install -y gzip hostname java-11-openjdk-headless openssl tar which && microdnf clean all
abstractj marked this conversation as resolved.
Show resolved Hide resolved

ADD tools /opt/jboss/tools
RUN /opt/jboss/tools/build-keycloak.sh
Expand Down
7 changes: 5 additions & 2 deletions server/tools/build-keycloak.sh
Expand Up @@ -9,6 +9,9 @@ if [ "$GIT_REPO" != "" ]; then
GIT_BRANCH="master"
fi

# Install Git
microdnf install -y git

# Install Maven
cd /opt/jboss
curl -s https://apache.uib.no/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz | tar xz
Expand Down Expand Up @@ -88,5 +91,5 @@ rm -rf /opt/jboss/keycloak/standalone/configuration/standalone_xml_history
# Set permissions #
###################

chown -R jboss:0 /opt/jboss/keycloak
chmod -R g+rw /opt/jboss/keycloak
chgrp -R 0 /opt/jboss/keycloak
chmod -R g=u /opt/jboss/keycloak