mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:31 +02:00
update openwrt
This commit is contained in:
parent
37acc552ab
commit
1114c12aa9
48
openwrt/Dockerfile.mt7628
Normal file
48
openwrt/Dockerfile.mt7628
Normal file
@ -0,0 +1,48 @@
|
||||
#
|
||||
# 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 \
|
||||
xsltproc \
|
||||
zlib1g-dev \
|
||||
&& useradd -m openwrt \
|
||||
&& echo 'openwrt ALL=NOPASSWD: ALL' > /etc/sudoers.d/openwrt
|
||||
|
||||
USER openwrt
|
||||
WORKDIR /home/openwrt
|
||||
|
||||
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 \
|
||||
&& ./scripts/feeds update -a
|
||||
|
||||
CMD ["bash"]
|
@ -29,11 +29,12 @@ $ docker-compose exec openwrt bash
|
||||
>>> ./scripts/feeds install vim tmux htop
|
||||
>>> make V=s
|
||||
|
||||
>>> sudo apt install asciidoc
|
||||
>>> export TERM=xterm
|
||||
>>> sudo apt install asciidoc xmlto
|
||||
>>> ./scripts/feeds install libopenssl zlib
|
||||
>>> git clone https://github.com/shadowsocks/openwrt-shadowsocks.git package/shadowsocks-libev
|
||||
>>> make menuconfig
|
||||
>>> make package/shadowsocks-libev/compile V=99
|
||||
>>> make package/shadowsocks-libev/compile V=s
|
||||
|
||||
>>> tree -dF /data/
|
||||
/data/
|
||||
|
@ -4,3 +4,4 @@ openwrt:
|
||||
command: sleep inf
|
||||
volumes:
|
||||
- ./data:/data
|
||||
restart: unless-stopped
|
||||
|
Loading…
Reference in New Issue
Block a user