Files
wlan-ap/dock-run.sh
Sasikantha Babu 30f337c519 wlan-ap: changed docker PATH to docker to speed up compilation.
Otherwise docker build is sending around 12G-16GB to docker daemon.
Since we are binding the wlan-ap code in the docker we do not have  to
send entire code to docker daemon.

Signed-off-by: Sasikantha Babu <sbabu@benunets.com>
2020-10-16 15:42:21 +02:00

10 lines
306 B
Bash
Executable File

#!/bin/bash -ex
tag=$(echo ${PWD} | tr / - | cut -b2- | tr A-Z a-z)
groups=$(id -G | xargs -n1 echo -n " --group-add ")
params="-v ${PWD}:${PWD} --rm -w ${PWD} -u"$(id -u):$(id -g)" $groups -v/etc/passwd:/etc/passwd -v/etc/group:/etc/group ${tag}"
docker build --tag=${tag} docker
docker run $params $@