-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3ad919
commit 281ab1f
Showing
8 changed files
with
66 additions
and
58 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 |
---|---|---|
|
@@ -21,7 +21,6 @@ IMAGE_INSTALL += " \ | |
kernel-modules \ | ||
psmisc \ | ||
procps \ | ||
rtl8192 \ | ||
iw \ | ||
tmux \ | ||
glibc-utils \ | ||
|
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,35 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
[[ $(whoami) != "root" ]] && echo "Please run this script as root" && exit 1 | ||
|
||
if docker volume inspect oe_build_volume >& /dev/null; then | ||
echo "Docker volume oe_build_volume already exists..." | ||
else | ||
echo "Creating docker volume" | ||
docker volume create oe_build_volume | ||
fi | ||
|
||
if docker inspect c_oe_build >& /dev/null; then | ||
echo "Docker container already exists, restarting..." | ||
docker stop c_oe_build | ||
docker start -ai c_oe_build | ||
else | ||
|
||
if ! docker image inspect oe_build >& /dev/null; then | ||
echo "Image does not exist, building it..." | ||
docker build -t oe_build . | ||
fi | ||
echo "Creating container based on oe_build image" | ||
docker run \ | ||
--cap-add=ALL \ | ||
--cap-add=NET_ADMIN \ | ||
--cap-add=SETUID \ | ||
--cap-add=SETGID \ | ||
--cap-add=AUDIT_WRITE \ | ||
-v oe_build_volume:/home/dev/openembedded/build \ | ||
--device /dev/net/tun:/dev/net/tun \ | ||
-it \ | ||
--name c_oe_build oe_build \ | ||
/home/dev/build.sh | ||
fi |
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.