mirror of https://github.com/openwrt/docker.git
READMEL: kick-start commands
Conditionally run setup.sh in kick-start command instructions. If you download a snapshot container it only contains the setup.sh. Conditioning to the /scripts folder existence means repeatedly executing the same commands doesn't execute the setup script repeatedly, but only if it has not yet been run. You skip download steps which have already been executed. The instructions provided are copy-paste anyway. Signed-off-by: Paul Donald <newtwen+github@gmail.com>pull/187/head
parent
7a2eace75e
commit
5b55c0301e
|
|
@ -43,6 +43,7 @@ via CI.
|
|||
```shell
|
||||
docker run --rm -v "$(pwd)"/bin/:/builder/bin -it openwrt/sdk
|
||||
# inside the Docker container
|
||||
[ ! -d ./scripts ] && ./setup.sh
|
||||
./scripts/feeds update packages
|
||||
make defconfig
|
||||
./scripts/feeds install tmate
|
||||
|
|
@ -76,6 +77,7 @@ via CI.
|
|||
```shell
|
||||
docker run --rm -v "$(pwd)"/bin/:/builder/bin -it openwrt/imagebuilder
|
||||
# inside the Docker container
|
||||
[ ! -d ./scripts ] && ./setup.sh
|
||||
make image PROFILE=generic PACKAGES=tmate
|
||||
```
|
||||
|
||||
|
|
@ -108,6 +110,7 @@ additional files for the rootfs should be added there before building.
|
|||
```shell
|
||||
docker run --rm -it openwrt/rootfs
|
||||
# inside the Docker container
|
||||
[ ! -d ./scripts ] && ./setup.sh
|
||||
mkdir /var/lock/
|
||||
opkg update
|
||||
opkg install tmate
|
||||
|
|
|
|||
Loading…
Reference in New Issue