summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-08-03 07:27:33 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-08-03 14:39:07 +0000
commit7462ebe830b256e9e145d133c824de5dfd23045d (patch)
treed545bb2b4c579108e5fb3ecf2717146a182e65cd /docs
parenta83f54e9c703630ee95e76b1dac3ad375c44c222 (diff)
downloadpodman-7462ebe830b256e9e145d133c824de5dfd23045d.tar.gz
podman-7462ebe830b256e9e145d133c824de5dfd23045d.tar.bz2
podman-7462ebe830b256e9e145d133c824de5dfd23045d.zip
Vendor in latest github.com/projectatomic/buildah
This adds support for Dockerfile.in and fixes some limits issues on docker build Also adds support for podman build to read Dockerfile from stdin. cat Dockerfile | podman build -f - . Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #1209 Approved by: mheon
Diffstat (limited to 'docs')
-rw-r--r--docs/podman-build.1.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/podman-build.1.md b/docs/podman-build.1.md
index 8d1ed9abd..405864256 100644
--- a/docs/podman-build.1.md
+++ b/docs/podman-build.1.md
@@ -11,6 +11,8 @@ podman\-build - Build a container image using a Dockerfile.
The build context directory can be specified as the http(s) URL of an archive, git repository or Dockerfile.
+Dockerfiles ending with a ".in" suffix will be preprocessed via CPP(1). This can be useful to decompose Dockerfiles into several reusable parts that can be used via CPP's **#include** directive. Notice, a Dockerfile.in file can still be used by other tools when manually preprocessing them via `cpp -E`.
+
When the URL is an archive, the contents of the URL is downloaded to a temporary location and extracted before execution.
When the URL is an Dockerfile, the Dockerfile is downloaded to a temporary location.
@@ -180,6 +182,8 @@ If a build context is not specified, and at least one Dockerfile is a
local file, the directory in which it resides will be used as the build
context.
+If you specify `-f -`, the Dockerfile contents will be read from stdin.
+
**--force-rm** *bool-value*
Always remove intermediate containers after a build, even if the build is unsuccessful.
@@ -522,8 +526,12 @@ podman build .
podman build -f Dockerfile.simple .
+cat ~/Dockerfile | podman build -f - .
+
podman build -f Dockerfile.simple -f Dockerfile.notsosimple
+podman build -f Dockerfile.in ~
+
podman build -t imageName .
podman build --tls-verify=true -t imageName -f Dockerfile.simple