From 34a61d72e50c55550b287fe0a44a61df845b433c Mon Sep 17 00:00:00 2001 From: Alex Szczuczko Date: Fri, 17 May 2024 01:15:37 -0600 Subject: [PATCH] Add chmod to ADD examples in docs (#29626) Closes #29625 Signed-off-by: Alex Szczuczko --- docs/guides/server/containers.adoc | 2 +- docs/guides/server/db.adoc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/guides/server/containers.adoc b/docs/guides/server/containers.adoc index c4eb4364a2..a6b9a5221f 100644 --- a/docs/guides/server/containers.adoc +++ b/docs/guides/server/containers.adoc @@ -72,7 +72,7 @@ FROM quay.io/keycloak/keycloak:{containerlabel} as builder ... # Add the provider JAR file to the providers directory -ADD --chown=keycloak:keycloak /opt/keycloak/providers/myprovider.jar +ADD --chown=keycloak:keycloak --chmod=644 /opt/keycloak/providers/myprovider.jar ... diff --git a/docs/guides/server/db.adoc b/docs/guides/server/db.adoc index 95b9958edb..074851c19c 100644 --- a/docs/guides/server/db.adoc +++ b/docs/guides/server/db.adoc @@ -59,8 +59,8 @@ A minimal Dockerfile to build an image which can be used with the {project_name} [source,dockerfile,subs="attributes+"] ---- FROM quay.io/keycloak/keycloak:{containerlabel} -ADD --chown=keycloak:keycloak https://repo1.maven.org/maven2/com/oracle/database/jdbc/ojdbc11/${properties["oracle-jdbc.version"]}/ojdbc11-${properties["oracle-jdbc.version"]}.jar /opt/keycloak/providers/ojdbc11.jar -ADD --chown=keycloak:keycloak https://repo1.maven.org/maven2/com/oracle/database/nls/orai18n/${properties["oracle-jdbc.version"]}/orai18n-${properties["oracle-jdbc.version"]}.jar /opt/keycloak/providers/orai18n.jar +ADD --chown=keycloak:keycloak --chmod=644 https://repo1.maven.org/maven2/com/oracle/database/jdbc/ojdbc11/${properties["oracle-jdbc.version"]}/ojdbc11-${properties["oracle-jdbc.version"]}.jar /opt/keycloak/providers/ojdbc11.jar +ADD --chown=keycloak:keycloak --chmod=644 https://repo1.maven.org/maven2/com/oracle/database/nls/orai18n/${properties["oracle-jdbc.version"]}/orai18n-${properties["oracle-jdbc.version"]}.jar /opt/keycloak/providers/orai18n.jar # Setting the build parameter for the database: ENV KC_DB=oracle # Add all other build parameters needed, for example enable health and metrics: @@ -95,7 +95,7 @@ A minimal Dockerfile to build an image which can be used with the {project_name} [source,dockerfile,subs="attributes+"] ---- FROM quay.io/keycloak/keycloak:{containerlabel} -ADD --chown=keycloak:keycloak https://repo1.maven.org/maven2/com/microsoft/sqlserver/mssql-jdbc/${properties["mssql-jdbc.version"]}/mssql-jdbc-${properties["mssql-jdbc.version"]}.jar /opt/keycloak/providers/mssql-jdbc.jar +ADD --chown=keycloak:keycloak --chmod=644 https://repo1.maven.org/maven2/com/microsoft/sqlserver/mssql-jdbc/${properties["mssql-jdbc.version"]}/mssql-jdbc-${properties["mssql-jdbc.version"]}.jar /opt/keycloak/providers/mssql-jdbc.jar # Setting the build parameter for the database: ENV KC_DB=mssql # Add all other build parameters needed, for example enable health and metrics: