mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
hack/make.sh print a warning but don't exit if called outside a correct build environment.
This commit is contained in:
parent
03e36caeb1
commit
ebee8f28ac
1 changed files with 3 additions and 4 deletions
|
@ -25,10 +25,9 @@ set -e
|
||||||
# but really, they shouldn't. We want to be in a container!
|
# but really, they shouldn't. We want to be in a container!
|
||||||
RESOLVCONF=$(readlink --canonicalize /etc/resolv.conf)
|
RESOLVCONF=$(readlink --canonicalize /etc/resolv.conf)
|
||||||
grep -q "$RESOLVCONF" /proc/mounts || {
|
grep -q "$RESOLVCONF" /proc/mounts || {
|
||||||
echo "# I will only run within a container."
|
echo "# WARNING! I don't seem to be running in a docker container.
|
||||||
echo "# Try this instead:"
|
echo "# The result of this command might be an incorrect build, and will not be officially supported."
|
||||||
echo "docker build ."
|
echo "# Try this: 'docker build -t docker . && docker run docker ./hack/make.sh'
|
||||||
exit 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# List of bundles to create when no argument is passed
|
# List of bundles to create when no argument is passed
|
||||||
|
|
Loading…
Add table
Reference in a new issue