mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-07 00:48:01 +01:00
18 lines
1.0 KiB
Plaintext
18 lines
1.0 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * builds/creating-build-inputs.adoc
|
|
|
|
[id="builds-source-to-image_{context}"]
|
|
= Source-to-image strategy
|
|
|
|
When using a `Source` strategy, all defined input secrets are copied to their respective `destinationDir`. If you left `destinationDir` empty, then the secrets are placed in the working directory of the builder image.
|
|
|
|
The same rule is used when a `destinationDir` is a relative path; the secrets are placed in the paths that are relative to the image's working directory. The final directory in the `destinationDir` path is created if it does not exist in the builder image. All preceding directories in the `destinationDir` must exist, or an error will occur.
|
|
|
|
[NOTE]
|
|
====
|
|
Input secrets are added as world-writable (have `0666` permissions) and will be truncated to size zero after executing the `assemble` script. This means that the secret files will exist in the resulting image, but they will be empty for security reasons.
|
|
|
|
Input ConfigMaps are not truncated after the `assemble` script completes.
|
|
====
|