All Projects → P3TERX → openwrt-build-env

P3TERX / openwrt-build-env

Licence: MIT license
OpenWrt build environment in docker | Docker 中的 OpenWrt 编译环境

Programming Languages

Dockerfile
14818 projects

Projects that are alternatives of or similar to openwrt-build-env

Lede
Lean's OpenWrt source
Stars: ✭ 19,062 (+24655.84%)
Mutual labels:  openwrt, lede, openwrt-zh-cn
Actions Openwrt
A template for building OpenWrt with GitHub Actions | 使用 GitHub Actions 云编译 OpenWrt
Stars: ✭ 4,742 (+6058.44%)
Mutual labels:  openwrt, lede, openwrt-zh-cn
gluon-firmware-selector
Firmware selector for gluon router images
Stars: ✭ 19 (-75.32%)
Mutual labels:  openwrt, lede
Lede Ar71xx Optimized Archer C7 V2
TP-Link Archer C7 V2 AC1750 Optimized LEDE Firmware
Stars: ✭ 176 (+128.57%)
Mutual labels:  openwrt, lede
Evmongoose
DEPRECATED. Evmongoose is an asynchronous, event(libev) based multi-protocol embedded networking library with functions including TCP, HTTP, WebSocket, MQTT and much more. It's based on mongoose and libev implementation and it's support Lua API.
Stars: ✭ 199 (+158.44%)
Mutual labels:  openwrt, lede
CloudFlare-DDNS-Script
CloudFlare-DDNS-Script Support LEDE/Openwrt with IPv4/IPv6
Stars: ✭ 40 (-48.05%)
Mutual labels:  openwrt, lede
Familycloudspeederinshell
[ 天翼家庭云/天翼云盘提速 Shell 版 ] A Shell Implementation of FamilyCloudSpeeder, ESurfing
Stars: ✭ 154 (+100%)
Mutual labels:  openwrt, lede
lede-dockercompiler
Docker image to compile LEDE/OpenWrt from source
Stars: ✭ 21 (-72.73%)
Mutual labels:  openwrt, lede
Luci App Xlnetacc
OpenWrt/LEDE LuCI for XLNetAcc (迅雷快鸟)
Stars: ✭ 95 (+23.38%)
Mutual labels:  openwrt, lede
Opkg Upgrade
List and install OpenWRT / LEDE opkg upgradable packages
Stars: ✭ 215 (+179.22%)
Mutual labels:  openwrt, lede
Xfrp
xfrps&frp client for openwrt&LEDE
Stars: ✭ 205 (+166.23%)
Mutual labels:  openwrt, lede
plan44-feed
OpenWrt feed containing plan44 packages
Stars: ✭ 25 (-67.53%)
Mutual labels:  openwrt, lede
Xluci2
DEPRECATED. xLuCI2 is a JavaScript Webgui for embedded devices running OpenWRT or LEDE
Stars: ✭ 148 (+92.21%)
Mutual labels:  openwrt, lede
Openwrt Shadowsocksr
ShadowsocksR-libev for OpenWrt/LEDE
Stars: ✭ 136 (+76.62%)
Mutual labels:  openwrt, lede
Netjson
NetJSON is a data interchange format for encoding the basic building blocks of networks.
Stars: ✭ 171 (+122.08%)
Mutual labels:  openwrt, lede
Fast Path Lede Openwrt
PLEASE GO TO NEW OPENWRT TRUNK BASED SFE FIRMWARE ->
Stars: ✭ 96 (+24.68%)
Mutual labels:  openwrt, lede
Xfrps
xfrps fork from frp but mainly use its server side feature and cooperate with xfrp
Stars: ✭ 179 (+132.47%)
Mutual labels:  openwrt, lede
Actions Openwrt K2p
Use Github Actions to automatically compile Lean's Modified Lede source for K2P
Stars: ✭ 67 (-12.99%)
Mutual labels:  openwrt, lede
Openwisp Firmware
A OpenWRT based firmware to be used with OpenWISP Manager
Stars: ✭ 86 (+11.69%)
Mutual labels:  openwrt, lede
Openwrt Pcap dnsproxy
Pcap_DNSProxy for OpenWrt/LEDE
Stars: ✭ 204 (+164.94%)
Mutual labels:  openwrt, lede

openwrt-build-env

LICENSE GitHub Stars GitHub Forks Docker Stars Docker Pulls GitHub Workflow Status

OpenWrt build environment in docker.

Read the details in my blog (in Chinese) | 中文教程

Usage

Pull or build image

  • Pull image from docker hub.

    docker pull p3terx/openwrt-build-env
  • Build image.

    docker build -t p3terx/openwrt-build-env github.com/P3TERX/openwrt-build-env

Run container

docker run \
    -itd \
    --name openwrt-build-env \
    -h P3TERX \
    -p 10022:22 \
    -v ~/openwrt:/home/user/openwrt \
    p3terx/openwrt-build-env

Set the mount directory file permissions

  • Enter the id command to check UID and GID

    $ id
    uid=1001(p3terx) gid=1002(p3terx)
  • Modify the UID and GID

    docker exec openwrt-build-env sudo usermod -u 1001 user
    docker exec openwrt-build-env sudo groupmod -g 1002 user
  • Modify the file ownership

    docker exec openwrt-build-env sudo chown -hR user:user .
  • Restart container

    docker restart openwrt-build-env

SSH security settings

The default SSH user name and password is user. If you are making the container accessible from the internet you'll probably want to secure it bit. You can do one of the following two things after launching the container:

  • Change password:

    docker exec -it openwrt-build-env sudo passwd user
  • Don't allow passwords at all, use keys instead:

    docker cp ~/.ssh/authorized_keys openwrt-build-env:/home/user/.ssh
    docker exec openwrt-build-env sudo chown user:user /home/user/.ssh/authorized_keys
    docker exec openwrt-build-env sudo sed -i '/PasswordAuthentication /c\PasswordAuthentication no' /etc/ssh/sshd_config
    docker restart openwrt-build-env

Enter container

  • Enter from the host.

    docker exec -it openwrt-build-env zsh
  • Connect via SSH.

    ssh user@IP -p 10022

Clone source code and build

git clone https://github.com/openwrt/openwrt
cd openwrt
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
make download -j8
make V=s
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].