mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 17:42:41 +00:00
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>
10 lines
306 B
Bash
Executable File
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 $@
|