1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:36 +02:00

update openwrt

This commit is contained in:
kev 2016-08-04 14:37:38 +08:00
parent 28fa156437
commit a56aea5df3
5 changed files with 43 additions and 13 deletions

View File

@ -18,4 +18,5 @@ RUN set -xe \
&& ln -s ${OPENWRT_IMG} img \
&& ln -s ${OPENWRT_SDK} sdk \
&& cd sdk \
&& ln -s /data bin \
&& ./scripts/feeds update -a

View File

@ -18,4 +18,5 @@ RUN set -xe \
&& ln -s ${OPENWRT_IMG} img \
&& ln -s ${OPENWRT_SDK} sdk \
&& cd sdk \
&& ln -s /data bin \
&& ./scripts/feeds update -a

View File

@ -18,4 +18,5 @@ RUN set -xe \
&& ln -s ${OPENWRT_IMG} img \
&& ln -s ${OPENWRT_SDK} sdk \
&& cd sdk \
&& ln -s /data bin \
&& ./scripts/feeds update -a

View File

@ -7,22 +7,27 @@ Build OpenWrt Package/Image For Raspberry Pi
```yaml
openwrt:
image: vimagick/openwrt:bcm2710
container_name: openwrt_bcm2710
command: sleep inf
volumes:
- ./data/bcm2710:/data
image: vimagick/openwrt
command: sleep infinity
environment:
- TERM=xterm
restart: unless-stopped
bcm2708:
extends:
service: openwrt
image: vimagick/openwrt:bcm2708
volumes:
- ./data/bcm2708:/data
```
## up and running
```bash
$ docker-compose up -d
$ docker-compose exec openwrt bash
$ docker-compose up -d bcm2708
$ docker-compose exec bcm2708 bash
>>> cd ~/sdk
>>> sudo chmod 777 /data
>>> ln -s /data bin
>>> ./scripts/feeds update -a
>>> ./scripts/feeds list
@ -30,14 +35,12 @@ $ docker-compose exec openwrt bash
>>> ./scripts/feeds install vim tmux htop
>>> make V=s
>>> export TERM=xterm
>>> sudo apt install -y asciidoc xmlto
>>> git clone https://github.com/shadowsocks/openwrt-shadowsocks.git package/shadowsocks-libev
>>> vi package/shadowsocks-libev/Makefile
- Package/shadowsocks-libev-spec = $(call Package/shadowsocks-libev/Default,openssl,(OpenSSL),+libopenssl +libpthread +ipset +ip)
+ Package/shadowsocks-libev-spec = $(call Package/shadowsocks-libev/Default,openssl,(OpenSSL),+libopenssl +libpthread +ipset +ip +iptables-mod-tproxy +zlib)
>>> make menuconfig # Network ▷ shadowsocks-libev-spec ▷ Save ▷ Exit
>>> make package/zlib/compile V=s
>>> make package/shadowsocks-libev/compile V=s
>>> tree -dF /data/
@ -58,3 +61,7 @@ $ docker-compose exec openwrt bash
$ opkg install tmux_1.9a-1_brcm2708.ipk htop_1.0.3-1_brcm2708.ipk
$ tmux new htop
```
## read more
- <https://wiki.openwrt.org/doc/howto/build>

View File

@ -1,7 +1,27 @@
openwrt:
image: vimagick/openwrt
command: sleep infinity
environment:
- TERM=xterm
restart: unless-stopped
bcm2708:
extends:
service: openwrt
image: vimagick/openwrt:bcm2708
volumes:
- ./data/bcm2708:/data
bcm2710:
extends:
service: openwrt
image: vimagick/openwrt:bcm2710
container_name: openwrt_bcm2710
command: sleep inf
volumes:
- ./data/bcm2710:/data
restart: unless-stopped
mt7628:
extends:
service: openwrt
image: vimagick/openwrt:mt7628
volumes:
- ./data/mt7628:/data