mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-02-09 13:46:55 +02:00
add openwrt
This commit is contained in:
parent
56a3ce064a
commit
e2c76a6e0f
@ -141,6 +141,10 @@ A collection of delicious docker recipes.
|
|||||||
- [x] revive
|
- [x] revive
|
||||||
- [x] zoneminder
|
- [x] zoneminder
|
||||||
|
|
||||||
|
## Builder
|
||||||
|
|
||||||
|
- [x] openwrt :+1:
|
||||||
|
|
||||||
## Security
|
## Security
|
||||||
|
|
||||||
- [x] bro
|
- [x] bro
|
||||||
|
50
openwrt/Dockerfile
Normal file
50
openwrt/Dockerfile
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
#
|
||||||
|
# Dockerfile for openwrt
|
||||||
|
#
|
||||||
|
|
||||||
|
FROM debian:jessie
|
||||||
|
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 \
|
||||||
|
&& apt-get update \
|
||||||
|
&& apt-get install -y build-essential \
|
||||||
|
ccache \
|
||||||
|
curl \
|
||||||
|
gawk \
|
||||||
|
gettext \
|
||||||
|
git \
|
||||||
|
libncurses5-dev \
|
||||||
|
libssl-dev \
|
||||||
|
mercurial \
|
||||||
|
subversion \
|
||||||
|
sudo \
|
||||||
|
tree \
|
||||||
|
unzip \
|
||||||
|
wget \
|
||||||
|
xsltproc \
|
||||||
|
zlib1g-dev \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN set -xe \
|
||||||
|
&& useradd -m openwrt \
|
||||||
|
&& echo 'openwrt ALL=NOPASSWD: ALL' > /etc/sudoers.d/openwrt
|
||||||
|
|
||||||
|
USER openwrt
|
||||||
|
WORKDIR /home/openwrt
|
||||||
|
|
||||||
|
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 \
|
||||||
|
&& ./scripts/feeds update -a
|
||||||
|
|
||||||
|
CMD ["bash"]
|
29
openwrt/README.md
Normal file
29
openwrt/README.md
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
openwrt
|
||||||
|
=======
|
||||||
|
|
||||||
|
Build OpenWrt Package/Image For Raspberry Pi
|
||||||
|
|
||||||
|
## docker-compose.yml
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
openwrt:
|
||||||
|
image: vimagick/openwrt
|
||||||
|
container_name: openwrt
|
||||||
|
command: sleep inf
|
||||||
|
volumes:
|
||||||
|
- ./data:/data
|
||||||
|
```
|
||||||
|
|
||||||
|
## up and running
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ mkdir -m 777 data
|
||||||
|
$ docker-compose up -d
|
||||||
|
$ docker-compose exec openwrt bash
|
||||||
|
>>> cd ~/sdk
|
||||||
|
>>> ln -s /data bin
|
||||||
|
>>> ./scripts/feeds install vim tmux htop
|
||||||
|
>>> make V=s
|
||||||
|
>>> tree /data
|
||||||
|
>>> exit
|
||||||
|
```
|
6
openwrt/docker-compose.yml
Normal file
6
openwrt/docker-compose.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
openwrt:
|
||||||
|
image: vimagick/openwrt
|
||||||
|
container_name: openwrt
|
||||||
|
command: sleep inf
|
||||||
|
volumes:
|
||||||
|
- ./data:/data
|
Loading…
x
Reference in New Issue
Block a user