mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
If we need to reissue fnproject/dind:17.12 (which fnproject/fnserver
is based upon) then let's make sure we're using the latest one
when cutting a release.
To ensure we don't accidentally use stale images lying around in
the docker cache (there probably shouldn't be *any*), call
make clear-images
before running the build.
19 lines
433 B
Bash
Executable File
19 lines
433 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
fsdriver=$(grep -Eh -w -m1 "overlay|aufs" /proc/filesystems | cut -f2)
|
|
if [ $fsdriver == "overlay" ]; then
|
|
fsdriver="overlay2"
|
|
fi
|
|
|
|
mtu=$(ip link show dev $(ip route |
|
|
awk '$1 == "default" { print $NF }') |
|
|
awk '{for (i = 1; i <= NF; i++) if ($i == "mtu") print $(i+1)}')
|
|
|
|
dockerd-entrypoint.sh --storage-driver=$fsdriver --mtu=$mtu &
|
|
|
|
# give docker a few seconds
|
|
sleep 3
|
|
|
|
exec "$@"
|