Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#692 Updates builder.md to point out the fact that single-quotes will not unpack vars, resolves #692 #1467

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TheHipbot
Copy link
Contributor

…unpack variables

- What I did

Updated the docs in builder.md

- How I did it

Edited the md files

- How to verify it

Wait for feedback

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@GordonTheTurtle
Copy link

Please sign your commits following these rules:
https://github.com/moby/moby/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:

$ git clone -b "692-label-single-quotes" [email protected]:TheHipbot/cli.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

@TheHipbot TheHipbot force-pushed the 692-label-single-quotes branch from 059fc81 to d447695 Compare October 21, 2018 20:29
@TheHipbot TheHipbot changed the title #692 Updates builder.md to point out the fact that single-quotes will not … #692 Updates builder.md to point out the fact that single-quotes will not unpack vars, resolves #692 Oct 21, 2018
@codecov-io
Copy link

codecov-io commented Oct 21, 2018

Codecov Report

Merging #1467 into master will decrease coverage by 0.95%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1467      +/-   ##
==========================================
- Coverage   55.14%   54.19%   -0.96%     
==========================================
  Files         289      289              
  Lines       19371    19377       +6     
==========================================
- Hits        10683    10502     -181     
- Misses       7996     8199     +203     
+ Partials      692      676      -16

@TheHipbot
Copy link
Contributor Author

resolves #692

@@ -738,6 +738,11 @@ To view an image's labels, use the `docker inspect` command.
"other": "value3"
},

> **Note**:
> When providing a `LABEL` in a Dockerfile, be sure to use double quotes and not single quotes. Particularly when you are
> using string interpolation (e.g. `LABEL example="$env_var") single quotes will take the string as is without
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wondering though; why put quotes there in the first place? ie; this would work as well;

LABEL example=$ENV_VAR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fine by me, I updated the PR

@crazy-max
Copy link
Member

Carried by moby/buildkit#3241, can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants