1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:31 +02:00

remove openwrt

This commit is contained in:
kev 2016-08-04 17:12:57 +08:00
parent a56aea5df3
commit 4568e096bc
7 changed files with 0 additions and 198 deletions

View File

@ -141,10 +141,6 @@ A collection of delicious docker recipes.
- [x] revive
- [x] zoneminder :+1:
## Builder
- [x] openwrt :+1:
## Security
- [x] bro

View File

@ -1,34 +0,0 @@
#
# Dockerfile for openwrt
#
FROM debian:jessie
MAINTAINER kev <noreply@easypi.info>
RUN set -xe \
&& apt-get update \
&& apt-get install -y build-essential \
curl \
file \
gawk \
gettext \
git \
libncurses5-dev \
libssl-dev \
mercurial \
python \
subversion \
sudo \
tree \
unzip \
wget \
vim-tiny \
xsltproc \
zlib1g-dev \
&& useradd -m openwrt \
&& echo 'openwrt ALL=NOPASSWD: ALL' > /etc/sudoers.d/openwrt
USER openwrt
WORKDIR /home/openwrt
CMD ["bash"]

View File

@ -1,22 +0,0 @@
#
# Dockerfile for openwrt:bcm2708
#
FROM vimagick/openwrt
MAINTAINER kev <noreply@easypi.info>
ENV OPENWRT_VERSION=15.05.1
ENV OPENWRT_URL=https://downloads.openwrt.org/chaos_calmer/15.05.1/brcm2708/bcm2708
ENV OPENWRT_IMG=OpenWrt-ImageBuilder-15.05.1-brcm2708-bcm2708.Linux-x86_64
ENV OPENWRT_SDK=OpenWrt-SDK-15.05.1-brcm2708-bcm2708_gcc-4.8-linaro_uClibc-0.9.33.2_eabi.Linux-x86_64
ENV OPENWRT_IMG_URL=${OPENWRT_URL}/${OPENWRT_IMG}.tar.bz2
ENV OPENWRT_SDK_URL=${OPENWRT_URL}/${OPENWRT_SDK}.tar.bz2
RUN set -xe \
&& curl -sSL ${OPENWRT_IMG_URL} | tar xj \
&& curl -sSL ${OPENWRT_SDK_URL} | tar xj \
&& ln -s ${OPENWRT_IMG} img \
&& ln -s ${OPENWRT_SDK} sdk \
&& cd sdk \
&& ln -s /data bin \
&& ./scripts/feeds update -a

View File

@ -1,22 +0,0 @@
#
# Dockerfile for openwrt:bcm2710
#
FROM vimagick/openwrt
MAINTAINER kev <noreply@easypi.info>
ENV OPENWRT_VERSION=trunk
ENV OPENWRT_URL=https://downloads.lede-project.org/snapshots/targets/brcm2708/bcm2710
ENV OPENWRT_IMG=lede-imagebuilder-brcm2708-bcm2710.Linux-x86_64
ENV OPENWRT_SDK=lede-sdk-brcm2708-bcm2710_gcc-5.4.0_musl-1.1.15_eabi.Linux-x86_64
ENV OPENWRT_IMG_URL=${OPENWRT_URL}/${OPENWRT_IMG}.tar.bz2
ENV OPENWRT_SDK_URL=${OPENWRT_URL}/${OPENWRT_SDK}.tar.bz2
RUN set -xe \
&& curl -sSL ${OPENWRT_IMG_URL} | tar xj \
&& curl -sSL ${OPENWRT_SDK_URL} | tar xj \
&& ln -s ${OPENWRT_IMG} img \
&& ln -s ${OPENWRT_SDK} sdk \
&& cd sdk \
&& ln -s /data bin \
&& ./scripts/feeds update -a

View File

@ -1,22 +0,0 @@
#
# Dockerfile for openwrt:mt7628
#
FROM vimagick/openwrt
MAINTAINER kev <noreply@easypi.info>
ENV OPENWRT_VERSION=trunk
ENV OPENWRT_URL=https://downloads.openwrt.org/snapshots/trunk/ramips/mt7628
ENV OPENWRT_IMG=OpenWrt-ImageBuilder-ramips-mt7628.Linux-x86_64
ENV OPENWRT_SDK=OpenWrt-SDK-ramips-mt7628_gcc-5.3.0_musl-1.1.14.Linux-x86_64
ENV OPENWRT_IMG_URL=${OPENWRT_URL}/${OPENWRT_IMG}.tar.bz2
ENV OPENWRT_SDK_URL=${OPENWRT_URL}/${OPENWRT_SDK}.tar.bz2
RUN set -xe \
&& curl -sSL ${OPENWRT_IMG_URL} | tar xj \
&& curl -sSL ${OPENWRT_SDK_URL} | tar xj \
&& ln -s ${OPENWRT_IMG} img \
&& ln -s ${OPENWRT_SDK} sdk \
&& cd sdk \
&& ln -s /data bin \
&& ./scripts/feeds update -a

View File

@ -1,67 +0,0 @@
openwrt
=======
Build OpenWrt Package/Image For Raspberry Pi
## docker-compose.yml
```yaml
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
```
## up and running
```bash
$ docker-compose up -d bcm2708
$ docker-compose exec bcm2708 bash
>>> cd ~/sdk
>>> sudo chmod 777 /data
>>> ./scripts/feeds update -a
>>> ./scripts/feeds list
>>> ./scripts/feeds search vim
>>> ./scripts/feeds install vim tmux htop
>>> make V=s
>>> 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/shadowsocks-libev/compile V=s
>>> tree -dF /data/
/data/
└── brcm2708/
└── packages/
├── base
├── luci
├── management
├── packages
├── routing
└── telephony
```
## install packages
```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,27 +0,0 @@
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
volumes:
- ./data/bcm2710:/data
mt7628:
extends:
service: openwrt
image: vimagick/openwrt:mt7628
volumes:
- ./data/mt7628:/data