diff options
author | Sebastian Hoss | 2016-07-05 14:01:52 +0000 |
---|---|---|
committer | Roland Grunberg | 2016-07-05 16:53:58 +0000 |
commit | 67dcff3af18b97570f7ddf3b162fe2fea7f0c43d (patch) | |
tree | a4a5f75c3ac610bdae0f2caf79e5b62c02aac641 | |
parent | d2d2526f1423045bb8c7b121d466ee5ca00bf1d7 (diff) | |
download | org.eclipse.linuxtools-67dcff3af18b97570f7ddf3b162fe2fea7f0c43d.tar.gz org.eclipse.linuxtools-67dcff3af18b97570f7ddf3b162fe2fea7f0c43d.tar.xz org.eclipse.linuxtools-67dcff3af18b97570f7ddf3b162fe2fea7f0c43d.zip |
Bug 496782: Add ARG key word to set of Dockerfile editor commands.
Change-Id: I8a1258cff5c6e24606f44137352b840777a40b6f
Signed-off-by: Sebastian Hoss <mail@shoss.de>
Reviewed-on: https://git.eclipse.org/r/76607
Tested-by: Hudson CI
Reviewed-by: Roland Grunberg <rgrunber@redhat.com>
-rw-r--r-- | containers/org.eclipse.linuxtools.docker.editor/assets/additional-info/ARG.html | 13 | ||||
-rw-r--r-- | containers/org.eclipse.linuxtools.docker.editor/assets/instructions.txt | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/containers/org.eclipse.linuxtools.docker.editor/assets/additional-info/ARG.html b/containers/org.eclipse.linuxtools.docker.editor/assets/additional-info/ARG.html new file mode 100644 index 0000000000..ab7c668c62 --- /dev/null +++ b/containers/org.eclipse.linuxtools.docker.editor/assets/additional-info/ARG.html @@ -0,0 +1,13 @@ +<p> +<b>ARG</b> defines a variable that users can pass at build-time to the builder with the docker build command using the --build-arg <varname>=<value> flag. If a user specifies a build argument that was not defined in the Dockerfile, the build outputs an error. +</p> +<br/> +<p> +<pre> +ARG user1 # Defines an build argument called 'user1' without any default values +ARG buildno # Defines an build argument called 'buildno' without any default values + +ARG user1=someuser # Defines and declares a default value for the build argument 'user1' +ARG buildno=123 # Defines and declares a default value for the build argument 'buildno' +</pre> +</p> diff --git a/containers/org.eclipse.linuxtools.docker.editor/assets/instructions.txt b/containers/org.eclipse.linuxtools.docker.editor/assets/instructions.txt index b90ea2ecd6..bc039a8039 100644 --- a/containers/org.eclipse.linuxtools.docker.editor/assets/instructions.txt +++ b/containers/org.eclipse.linuxtools.docker.editor/assets/instructions.txt @@ -1,4 +1,5 @@ ADD +ARG CMD COPY ENTRYPOINT |