Compare commits
38 Commits
8b1395b65c
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 1a88160855 | |||
| 3e10d60cdd | |||
| 2abe77794c | |||
| 1e086f8c27 | |||
| 492606d913 | |||
| 1b2455357a | |||
| 9d2dc556a1 | |||
| 72ba57a47b | |||
| b9ac625404 | |||
| 417593b8f0 | |||
| 940405ee69 | |||
| 914dd81c81 | |||
| bce584d6d8 | |||
| 78857d67b6 | |||
| 4689482c6c | |||
| b00d96a31a | |||
| 5776a1b379 | |||
| 262d905e26 | |||
| c0658dcb3c | |||
| 4befc75dd8 | |||
| 40bfb83b55 | |||
| 8000d72759 | |||
| 6f9e4b15b7 | |||
| a0a7ce3c9e | |||
| 1fcb24aabd | |||
| 8194d39793 | |||
| 759fe954c6 | |||
| 6a91fe549f | |||
| 29a8c1997c | |||
| a9224d8ec9 | |||
| b5b12cfa41 | |||
| 3dc9b07152 | |||
| e1dbf444fc | |||
| 633ec43612 | |||
| b018f343f8 | |||
| dde3aeeb98 | |||
| 9bdf12f573 | |||
| 97055fd88c |
57
.drone.yml
Normal file
57
.drone.yml
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
kind: pipeline
|
||||||
|
name: openwrt
|
||||||
|
type: docker
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: arm64
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
include:
|
||||||
|
- push
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: openwrt
|
||||||
|
image: bitnami/git
|
||||||
|
commands:
|
||||||
|
- git clone -b openwrt-23.05 --single-branch http://gitea.service.nr5/mirrors/openwrt.git
|
||||||
|
- name: setup
|
||||||
|
image: cr.wks/debian-stable-openwrt:latest
|
||||||
|
commands:
|
||||||
|
- ls -la
|
||||||
|
- cp -v config-DIR825-rndis openwrt/.config
|
||||||
|
- name: feeds
|
||||||
|
image: cr.wks/debian-stable-openwrt:latest
|
||||||
|
commands:
|
||||||
|
- cd openwrt
|
||||||
|
- ./scripts/feeds update -a
|
||||||
|
- ./scripts/feeds install -a
|
||||||
|
- name: make-prepare
|
||||||
|
image: cr.wks/debian-stable-openwrt:latest
|
||||||
|
commands:
|
||||||
|
- cd openwrt
|
||||||
|
- make -j2 defconfig
|
||||||
|
- make -j2 download
|
||||||
|
- make -j2 clean
|
||||||
|
- name: make-world
|
||||||
|
image: cr.wks/debian-stable-openwrt:latest
|
||||||
|
commands:
|
||||||
|
- cd openwrt
|
||||||
|
- export FORCE_UNSAFE_CONFIGURE=1
|
||||||
|
- make -j2 world
|
||||||
|
- name: deploy
|
||||||
|
image: cr.wks/drone/drone-rsync:latest
|
||||||
|
settings:
|
||||||
|
hosts: ["ebin01.wks"]
|
||||||
|
source: openwrt/bin/
|
||||||
|
target: /data/raid1-ssd/app-data/openwrt/
|
||||||
|
user: admini
|
||||||
|
#exclude: ['sites/default', 'files/kmm', 'files/tmp', '.git*', '*drone.yml', '.settings', '.buildpath', '.editorconfig', '.project']
|
||||||
|
args: '-v --delete'
|
||||||
|
log_level: quiet
|
||||||
|
key:
|
||||||
|
from_secret: admini-ebin01-ssh-rsa
|
||||||
|
command_timeout: 15m
|
||||||
19
Dockerfile
19
Dockerfile
@@ -1,19 +0,0 @@
|
|||||||
FROM docker.io/openjdk:jdk-buster
|
|
||||||
|
|
||||||
RUN sed -i 's@deb.debian.org@apt-cache.lan/deb.debian.org@g' /etc/apt/sources.list; \
|
|
||||||
sed -i 's@security.debian.org@apt-cache.lan/security.debian.org@g' /etc/apt/sources.list; \
|
|
||||||
apt update -y; \
|
|
||||||
apt install -y build-essential ccache ecj fastjar file g++ gawk \
|
|
||||||
gettext git java-propose-classpath libelf-dev libncurses5-dev \
|
|
||||||
libncursesw5-dev libssl-dev python python2.7-dev python3 unzip wget \
|
|
||||||
python3-distutils python3-setuptools rsync subversion swig time \
|
|
||||||
xsltproc zlib1g-dev make distcc distcc-pump; \
|
|
||||||
apt-get remove --purge -y exim* && \
|
|
||||||
apt-get autoremove --purge -y && \
|
|
||||||
apt-get clean -y && \
|
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
|
||||||
rm -rf /var/cache/apt/* && \
|
|
||||||
ln -sv /usr/lib/distcc-pump/lib/python3.7/site-packages/include_server /usr/lib/distcc-pump/include_server && \
|
|
||||||
rm -v /etc/distcc/hosts
|
|
||||||
|
|
||||||
|
|
||||||
18
README.md
Normal file
18
README.md
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# Built in Drone
|
||||||
|
|
||||||
|
|
||||||
|
# OpenWRT
|
||||||
|
|
||||||
|
* Building: https://openwrt.org/docs/guide-developer/toolchain/use-buildsystem
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# PogoPlug Pro
|
||||||
|
|
||||||
|
* https://openwrt.org/toh/cloud_engines/pogoplugpro
|
||||||
|
|
||||||
|
|
||||||
|
# PogoPlug Pro with 'Qualcomm Atheros AR9462 Wireless Network Adapter'
|
||||||
|
|
||||||
|
* needs: ATH9K_SUPPORT_PCOEM - in https://openwrt.org/packages/pkgdata/kmod-ath9k
|
||||||
|
`Kernel Modules -> Wireless Drivers -> {*} kmod-ath9k`
|
||||||
@@ -1,87 +0,0 @@
|
|||||||
apiVersion: tekton.dev/v1alpha1
|
|
||||||
kind: PipelineResource
|
|
||||||
metadata:
|
|
||||||
name: openwrt-configs-git
|
|
||||||
spec:
|
|
||||||
type: git
|
|
||||||
params:
|
|
||||||
- name: revision
|
|
||||||
value: master
|
|
||||||
- name: url
|
|
||||||
value: http://git-ui.lan/chaos/openwrt-configs.git
|
|
||||||
---
|
|
||||||
apiVersion: tekton.dev/v1beta1
|
|
||||||
kind: Task
|
|
||||||
metadata:
|
|
||||||
name: build-openwrt
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: make_flags
|
|
||||||
type: string
|
|
||||||
default: ""
|
|
||||||
- name: config
|
|
||||||
type: string
|
|
||||||
- name: version
|
|
||||||
type: string
|
|
||||||
default: ""
|
|
||||||
resources:
|
|
||||||
inputs:
|
|
||||||
- name: openwrt-configs
|
|
||||||
type: git
|
|
||||||
steps:
|
|
||||||
- name: openwrt-get
|
|
||||||
#image: cr.lan/debian-stable-build-essential
|
|
||||||
image: cr.lan/debian-stable-openwrt-build
|
|
||||||
script: |
|
|
||||||
#!/usr/bin/env bash
|
|
||||||
if [ ! -d /usr/src/openwrt ]; then
|
|
||||||
git clone https://github.com/openwrt/openwrt.git /usr/src/openwrt
|
|
||||||
fi
|
|
||||||
cd /usr/src/openwrt
|
|
||||||
echo "O_VERS: $(params.version)"
|
|
||||||
git branch -l
|
|
||||||
git checkout $(params.version) || exit 1
|
|
||||||
git pull
|
|
||||||
- name: build-openwrt
|
|
||||||
#image: cr.lan/debian-stable-build-essential
|
|
||||||
image: cr.lan/debian-stable-openwrt-build
|
|
||||||
script: |
|
|
||||||
#!/usr/bin/env bash
|
|
||||||
echo $PATH
|
|
||||||
echo "res.input.ke...path: $(resources.inputs.openwrt-configs.path)"
|
|
||||||
cp -v $(resources.inputs.openwrt-configs.path)/$(params.config) \
|
|
||||||
/usr/src/openwrt/.config || exit 1
|
|
||||||
cd /usr/src/openwrt
|
|
||||||
CCACHE_DIR=$(echo staging_dir/target-*)/ccache ccache -s
|
|
||||||
ls -la .
|
|
||||||
./scripts/feeds update -a
|
|
||||||
./scripts/feeds install -a
|
|
||||||
# build env does not like to be run as root....
|
|
||||||
export FORCE_UNSAFE_CONFIGURE=1
|
|
||||||
make -j6 download world $(params.make_flags)
|
|
||||||
workspaces:
|
|
||||||
- name: usr-src
|
|
||||||
mountPath: /usr/src
|
|
||||||
---
|
|
||||||
apiVersion: tekton.dev/v1beta1
|
|
||||||
kind: TaskRun
|
|
||||||
metadata:
|
|
||||||
name: openwrt-oxnas820
|
|
||||||
spec:
|
|
||||||
taskRef:
|
|
||||||
name: build-openwrt
|
|
||||||
params:
|
|
||||||
- name: config
|
|
||||||
value: dumont.wks-ATHWIFI
|
|
||||||
- name: version
|
|
||||||
value: openwrt-19.07
|
|
||||||
resources:
|
|
||||||
inputs:
|
|
||||||
- name: openwrt-configs
|
|
||||||
resourceRef:
|
|
||||||
name: openwrt-configs-git
|
|
||||||
workspaces:
|
|
||||||
- name: usr-src
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: tektoncd-workspaces
|
|
||||||
subPath: usr_src
|
|
||||||
4055
config-DIR825-rndis
Normal file
4055
config-DIR825-rndis
Normal file
File diff suppressed because it is too large
Load Diff
13875
config-oxnas-PogoPlugPro
Normal file
13875
config-oxnas-PogoPlugPro
Normal file
File diff suppressed because it is too large
Load Diff
6127
dumont.wks-ATHWIFI
6127
dumont.wks-ATHWIFI
File diff suppressed because it is too large
Load Diff
@@ -1,75 +0,0 @@
|
|||||||
apiVersion: tekton.dev/v1alpha1
|
|
||||||
kind: PipelineResource
|
|
||||||
metadata:
|
|
||||||
name: openwrt-configs-git
|
|
||||||
spec:
|
|
||||||
type: git
|
|
||||||
params:
|
|
||||||
- name: revision
|
|
||||||
value: master
|
|
||||||
- name: url
|
|
||||||
value: http://git-ui.lan/chaos/openwrt-configs.git
|
|
||||||
---
|
|
||||||
apiVersion: tekton.dev/v1alpha1
|
|
||||||
kind: PipelineResource
|
|
||||||
metadata:
|
|
||||||
name: img-debian-stable-openwrt-build
|
|
||||||
spec:
|
|
||||||
type: image
|
|
||||||
params:
|
|
||||||
- name: url
|
|
||||||
value: cr.lan/debian-stable-openwrt-build
|
|
||||||
---
|
|
||||||
apiVersion: tekton.dev/v1beta1
|
|
||||||
kind: Task
|
|
||||||
metadata:
|
|
||||||
name: build-debian-stable-openwrt-build
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: pathToContainerFile
|
|
||||||
type: string
|
|
||||||
default: $(resources.inputs.source.path)/Dockerfile
|
|
||||||
- name: pathToContext
|
|
||||||
type: string
|
|
||||||
default: $(resources.inputs.source.path)
|
|
||||||
resources:
|
|
||||||
inputs:
|
|
||||||
- name: source
|
|
||||||
type: git
|
|
||||||
outputs:
|
|
||||||
- name: builtImage
|
|
||||||
type: image
|
|
||||||
steps:
|
|
||||||
- name: build-and-push
|
|
||||||
image: gcr.io/kaniko-project/executor:arm64
|
|
||||||
command:
|
|
||||||
- /kaniko/executor
|
|
||||||
args:
|
|
||||||
- --dockerfile=$(params.pathToContainerFile)
|
|
||||||
- --destination=$(resources.outputs.builtImage.url)
|
|
||||||
- --context=$(params.pathToContext)
|
|
||||||
- --snapshotMode=redo
|
|
||||||
- --skip-tls-verify
|
|
||||||
---
|
|
||||||
apiVersion: tekton.dev/v1beta1
|
|
||||||
kind: TaskRun
|
|
||||||
metadata:
|
|
||||||
name: img-debian-stable-openwrt-build
|
|
||||||
spec:
|
|
||||||
taskRef:
|
|
||||||
name: build-debian-stable-openwrt-build
|
|
||||||
params:
|
|
||||||
- name: pathToContainerFile
|
|
||||||
value: Dockerfile
|
|
||||||
resources:
|
|
||||||
inputs:
|
|
||||||
- name: source
|
|
||||||
resourceRef:
|
|
||||||
name: openwrt-configs-git
|
|
||||||
outputs:
|
|
||||||
- name: builtImage
|
|
||||||
resourceRef:
|
|
||||||
name: img-debian-stable-openwrt-build
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user