Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add script for pulling and running a recent docker image, and make us…
…er to use right user ID for openwifi user
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
source var.sh | ||
echo \ | ||
"This pulls (downloads) a recent image and runs (provisions) a container based on an image, you can stop it later via | ||
$DOCKER_CMD stop OpenWifiPull | ||
and start it again via | ||
$DOCKER_CMD start OpenWifiPull" | ||
|
||
THIS_USER_ID=$(id -ur) | ||
|
||
$DOCKER_CMD pull openwifi/openwificore | ||
exec $DOCKER_CMD run -P -p 6543:6543 -v $(dirname $PWD):/OpenWifi --name OpenWifiPull -e=OPENWIFI_UID=$THIS_USER_ID openwifi/openwificore |