mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-18 18:01:23 +00:00
10 lines
310 B
Bash
Executable File
10 lines
310 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 -it $params $@
|