1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:15 +02:00
dockerfiles/openwrt
2016-07-15 01:48:06 +08:00
..
docker-compose.yml add openwrt 2016-07-14 19:38:36 +08:00
Dockerfile update openwrt 2016-07-15 01:48:06 +08:00
README.md update openwrt 2016-07-14 21:53:14 +08:00

openwrt

Build OpenWrt Package/Image For Raspberry Pi

docker-compose.yml

openwrt:
  image: vimagick/openwrt
  container_name: openwrt
  command: sleep inf
  volumes:
    - ./data:/data

up and running

$ mkdir -m 777 data
$ docker-compose up -d
$ docker-compose exec openwrt bash
>>> cd ~/sdk
>>> ln -s /data bin

>>> ./scripts/feeds update -a
>>> ./scripts/feeds list
>>> ./scripts/feeds search vim
>>> ./scripts/feeds install vim tmux htop
>>> make V=s

>>> export TERM=xterm
>>> git clone https://github.com/shadowsocks/openwrt-shadowsocks.git package/shadowsocks-libev
>>> make menuconfig
>>> make package/shadowsocks-libev/compile V=99

>>> tree -dF /data/
/data/
└── brcm2708
    └── packages
        ├── base
        ├── luci
        ├── management
        ├── packages
        ├── routing
        └── telephony

install packages

$ opkg install tmux_1.9a-1_brcm2708.ipk htop_1.0.3-1_brcm2708.ipk
$ tmux new htop