Skip to content

Commit

Permalink
fix mtu issue on ppc64le build-tool. (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
Morven Cao authored Aug 17, 2020
1 parent 155edaa commit 4b11726
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions prow/docker/build-tool/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ set -x
# enale experimental feature of docker manifest
jq -n --arg enable enabled '{"experimental":$enable}' > ${HOME}/.docker/config.json

# fix the MTU settings for DinD daemon, end users have to explicately set the MTU via ENV in prow job.
# fix the MTU settings for DinD daemon
DOCKER_MTU=${DOCKER_MTU-1500}
echo "mtu for docker daemon from env is ${DOCKER_MTU}"
ARCH=$(uname -m)
if [ ${ARCH} != "ppc64le" ] ; then
DOCKER_MTU=8940
fi
echo "MTU for docker daemon is ${DOCKER_MTU}"
jq -n --arg mtu ${DOCKER_MTU} '{"mtu":$mtu}' > /etc/docker/daemon.json

# Start docker daemon and wait for dockerd to start
Expand Down

0 comments on commit 4b11726

Please sign in to comment.