Skip to content

Windows: In container build check - #19316

Merged
jessfraz merged 1 commit into
moby:masterfrom
microsoft:jjh/incontainererror
Jan 21, 2016
Merged

jessfraz merged 1 commit into
moby:masterfrom
microsoft:jjh/incontainererror

Conversation

@lowenna

@lowenna lowenna commented Jan 13, 2016

Copy link
Copy Markdown
Member

Signed-off-by: John Howard [email protected]

Part of the overall Windows to Windows CI work. This updates the check in hack/make.sh so that it is aware of whether it's running inside a container in Windows and doesn't emit the build warning. The simplest way to do this is to check an environment variable which is set in the dockerfile (not yet merged) for Windows. [See https://gist.github.com/jhowardmsft/b9413e30ece1d4cf8465]

I also corrected the text which has been bugging me forever!

@jfrazelle @mikedougherty

@mikedougherty

Copy link
Copy Markdown
Contributor

looks fine to me

@estesp

estesp commented Jan 13, 2016

Copy link
Copy Markdown
Contributor

I don't think we want to re-add the DOCKER_REMAP_ROOT check for setting experimental here as it was just removed in a PR that was merged yesterday. Is that just an oversight or was there a problem that this resolved?

@lowenna

lowenna commented Jan 14, 2016

Copy link
Copy Markdown
Member Author

@estesp Wow, I have no idea what-so-ever how that change got in there. Rebasing/correcting....

@lowenna
lowenna force-pushed the jjh/incontainererror branch from 99c5063 to 3df3ba0 Compare January 14, 2016 00:06
@lowenna

lowenna commented Jan 14, 2016

Copy link
Copy Markdown
Member Author

@estesp Fixed. Thanks for catching that, Phil!

@calavera

Copy link
Copy Markdown
Contributor

LGTM

@tiborvass

Copy link
Copy Markdown
Contributor

Ping @tianon

Comment thread hack/make.sh Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we switch this to inContainer= to match other uses of local variables within the scripts? We try to make only envs or cross-script vars all-caps.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yup, will be in next push

@lowenna
lowenna force-pushed the jjh/incontainererror branch from 127d370 to 4dbd612 Compare January 21, 2016 21:15
@lowenna

lowenna commented Jan 21, 2016

Copy link
Copy Markdown
Member Author

@tianon - Updated and pushed.

@tianon

tianon commented Jan 21, 2016

Copy link
Copy Markdown
Member

LGTM

1 similar comment
@jessfraz

Copy link
Copy Markdown
Contributor

LGTM

jessfraz pushed a commit that referenced this pull request Jan 21, 2016
@jessfraz
jessfraz merged commit e287bef into moby:master Jan 21, 2016
@lowenna
lowenna deleted the jjh/incontainererror branch January 21, 2016 21:49
runcom added a commit to runcom/docker that referenced this pull request Jan 24, 2016
moby#19316 wrongly checked if the
length of the `$inContainer` string is non-zero. The script should
check instead that the string is zero because we unset it if running
outside the container. Without this we aren't receiving the usual warning
that we should run `./hack/make.sh` in a container.

Signed-off-by: Antonio Murdaca <[email protected]>
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.

9 participants