Rename Dockerfile to Containerfile in the docs
Closes: #27947 Signed-off-by: Peter Zaoral <pzaoral@redhat.com>
This commit is contained in:
parent
afcbf79582
commit
7019287a67
4 changed files with 13 additions and 13 deletions
|
@ -23,10 +23,10 @@ The default {project_name} container image ships ready to be configured and opti
|
|||
For the best start up of your {project_name} container, build an image by running the `build` step during the container build.
|
||||
This step will save time in every subsequent start phase of the container image.
|
||||
|
||||
=== Writing your optimized {project_name} Dockerfile
|
||||
The following `Dockerfile` creates a pre-configured {project_name} image that enables the health and metrics endpoints, enables the token exchange feature, and uses a PostgreSQL database.
|
||||
=== Writing your optimized {project_name} Containerfile
|
||||
The following `Containerfile` creates a pre-configured {project_name} image that enables the health and metrics endpoints, enables the token exchange feature, and uses a PostgreSQL database.
|
||||
|
||||
.Dockerfile:
|
||||
.Containerfile:
|
||||
[source,dockerfile,subs="attributes+"]
|
||||
----
|
||||
FROM quay.io/keycloak/keycloak:{containerlabel} as builder
|
||||
|
@ -86,7 +86,7 @@ If you try to install new software in a stage `+FROM quay.io/keycloak/keycloak+`
|
|||
|
||||
First, consider if your use case can be implemented in a different way, and so avoid installing new RPMs into the final container:
|
||||
|
||||
* A `+RUN curl+` instruction in your Dockerfile can be replaced with `+ADD+`, since that instruction natively supports remote URLs.
|
||||
* A `+RUN curl+` instruction in your Containerfile can be replaced with `+ADD+`, since that instruction natively supports remote URLs.
|
||||
* Some common CLI tools can be replaced by creative use of the Linux filesystem. For example, `+ip addr show tap0+` becomes `+cat /sys/class/net/tap0/address+`
|
||||
* Tasks that need RPMs can be moved to a former stage of an image build, and the results copied across instead.
|
||||
|
||||
|
@ -121,7 +121,7 @@ This approach uses a chroot, `+/mnt/rootfs+`, so that only the packages you spec
|
|||
WARNING: Some packages have a large tree of dependencies. By installing new RPMs you may unintentionally increase the container's attack surface. Check the list of installed packages carefully.
|
||||
|
||||
=== Building the container image
|
||||
To build the actual container image, run the following command from the directory containing your Dockerfile:
|
||||
To build the actual container image, run the following command from the directory containing your Containerfile:
|
||||
|
||||
[source,bash]
|
||||
----
|
||||
|
|
|
@ -65,7 +65,7 @@ To install the Oracle Database driver for {project_name}:
|
|||
|
||||
. When running containers: Build a custom {project_name} image and add the JARs in the `providers` folder. When building a custom image for the Operator, those images need to be optimized images with all build-time options of {project_name} set.
|
||||
+
|
||||
A minimal Dockerfile to build an image which can be used with the {project_name} Operator and includes Oracle Database JDBC drivers downloaded from Maven Central looks like the following:
|
||||
A minimal Containerfile to build an image which can be used with the {project_name} Operator and includes Oracle Database JDBC drivers downloaded from Maven Central looks like the following:
|
||||
+
|
||||
[source,dockerfile,subs="attributes+"]
|
||||
----
|
||||
|
@ -103,7 +103,7 @@ To install the Microsoft SQL Server driver for {project_name}:
|
|||
|
||||
. When running containers: Build a custom {project_name} image and add the JARs in the `providers` folder. When building a custom image for the {project_name} Operator, those images need to be optimized images with all build-time options of {project_name} set.
|
||||
+
|
||||
A minimal Dockerfile to build an image which can be used with the {project_name} Operator and includes Microsoft SQL Server JDBC drivers downloaded from Maven Central looks like the following:
|
||||
A minimal Containerfile to build an image which can be used with the {project_name} Operator and includes Microsoft SQL Server JDBC drivers downloaded from Maven Central looks like the following:
|
||||
+
|
||||
[source,dockerfile,subs="attributes+"]
|
||||
----
|
||||
|
@ -253,7 +253,7 @@ To install this driver, apply the following steps:
|
|||
|
||||
. When running containers: Build a custom {project_name} image and add the JAR in the `providers` folder.
|
||||
+
|
||||
A minimal Dockerfile to build an image which can be used with the {project_name} Operator looks like the following:
|
||||
A minimal Containerfile to build an image which can be used with the {project_name} Operator looks like the following:
|
||||
+
|
||||
[source,dockerfile,subs="attributes+"]
|
||||
----
|
||||
|
|
|
@ -225,9 +225,9 @@ For example in the current directory, you can create sub-directory `files` and a
|
|||
* Custom keystore file - named for example `keycloak-fips.keystore.bcfks`
|
||||
* Security file `kc.java.security` with added provider for SAML
|
||||
|
||||
Then create `Dockerfile` in the current directory similar to this:
|
||||
Then create `Containerfile` in the current directory similar to this:
|
||||
|
||||
.Dockerfile:
|
||||
.Containerfile:
|
||||
[source,dockerfile,subs="attributes+"]
|
||||
----
|
||||
FROM quay.io/keycloak/keycloak:{containerlabel} as builder
|
||||
|
|
|
@ -79,7 +79,7 @@ Define a https://kubernetes.io/docs/tasks/configure-pod-container/configure-live
|
|||
|
||||
=== HEALTHCHECK
|
||||
|
||||
The Dockerfile image `+HEALTHCHECK+` instruction defines a command that will be periodically executed inside the container as it runs. The {project_name} container does not have any CLI HTTP clients installed. Consider installing `+curl+` as an additional RPM, as detailed by the <@links.server id="containers" /> {section}. Note that your container may be less secure because of this.
|
||||
The Containerfile `+HEALTHCHECK+` instruction defines a command that will be periodically executed inside the container as it runs. The {project_name} container does not have any CLI HTTP clients installed. Consider installing `+curl+` as an additional RPM, as detailed by the <@links.server id="containers" /> {section}. Note that your container may be less secure because of this.
|
||||
|
||||
== Available Checks
|
||||
|
||||
|
|
Loading…
Reference in a new issue