Add start-container.sh script
This will make it easier to manually create a container for development and debugging.master
parent
b19c0941a7
commit
50b20eee8c
|
@ -3,23 +3,7 @@
|
|||
|
||||
set -e
|
||||
|
||||
. ./config
|
||||
|
||||
cid=$(podman run \
|
||||
--tmpfs /var/tmp \
|
||||
--tmpfs /usr/${target}/tmp \
|
||||
-v portage:/var/db/repos/gentoo \
|
||||
-v packages:/var/cache/binpkgs \
|
||||
-v distfiles:/var/cache/distfiles \
|
||||
-v packages:/usr/${target}/var/cache/binpkgs \
|
||||
-v /mnt/gentoo \
|
||||
-v ${PWD}:/tmp/build:rw,z \
|
||||
-w /tmp/build \
|
||||
-d \
|
||||
-e FEATURES='-ipc-sandbox -network-sandbox -pid-sandbox' \
|
||||
cross-${target} \
|
||||
python -c 'from signal import *;signal(SIGTERM, lambda x, y: None);pause()'
|
||||
)
|
||||
cid=$(./start-container.sh)
|
||||
|
||||
./patch-uboot.sh
|
||||
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
# vim: set sw=4 ts=4 sts=4 et :
|
||||
|
||||
set -e
|
||||
|
||||
. ./config
|
||||
|
||||
podman run \
|
||||
--tmpfs /var/tmp \
|
||||
--tmpfs /usr/${target}/tmp \
|
||||
-v portage:/var/db/repos/gentoo \
|
||||
-v packages:/var/cache/binpkgs \
|
||||
-v distfiles:/var/cache/distfiles \
|
||||
-v packages:/usr/${target}/var/cache/binpkgs \
|
||||
-v /mnt/gentoo \
|
||||
-v ${PWD}:/tmp/build:rw,z \
|
||||
-w /tmp/build \
|
||||
-d \
|
||||
-e FEATURES='-ipc-sandbox -network-sandbox -pid-sandbox' \
|
||||
cross-${target} \
|
||||
python -c 'from signal import *;signal(SIGTERM, lambda x, y: None);pause()'
|
Loading…
Reference in New Issue