2
0

Compare commits

...

40 Commits

Author SHA1 Message Date
1a88160855 openwrt moved to /mirrors in gitea
Some checks are pending
continuous-integration/drone/push Build is running
2024-03-21 19:40:16 +01:00
3e10d60cdd lesser cpu usage
Some checks reported errors
continuous-integration/drone/push Build was killed
2024-03-05 20:27:28 +01:00
2abe77794c verbosity and all cores
Some checks reported errors
continuous-integration/drone/push Build was killed
2024-03-05 08:57:31 +01:00
1e086f8c27 running as root is ok
Some checks reported errors
continuous-integration/drone/push Build was killed
2024-03-04 11:08:31 +01:00
492606d913 verbose compile
Some checks failed
continuous-integration/drone/push Build is failing
2024-03-04 09:56:18 +01:00
1b2455357a bogus trigger
Some checks failed
continuous-integration/drone/push Build is failing
2024-03-03 20:41:53 +01:00
9d2dc556a1 workdir
Some checks failed
continuous-integration/drone/push Build is failing
2024-03-03 10:17:38 +01:00
72ba57a47b bogus readme update
Some checks failed
continuous-integration/drone/push Build is failing
2024-03-02 18:03:30 +01:00
b9ac625404 local mirror
Some checks reported errors
continuous-integration/drone/push Build was killed
2024-02-29 11:32:07 +01:00
417593b8f0 here we go
Some checks reported errors
continuous-integration/drone/push Build was killed
2024-02-28 14:58:42 +01:00
940405ee69 github agian
Some checks reported errors
continuous-integration/drone/push Build was killed
2024-02-28 14:43:25 +01:00
914dd81c81 testing with the gitea mirror
Some checks failed
continuous-integration/drone/push Build is failing
2024-02-27 18:23:07 +01:00
bce584d6d8 initial drone
Some checks reported errors
continuous-integration/drone/push Build was killed
2024-02-27 17:27:44 +01:00
78857d67b6 typo
Some checks reported errors
continuous-integration/drone/push Build was killed
2024-02-26 16:39:30 +01:00
4689482c6c Merge branch 'master' of ssh://gitea.service.nr5:2222/chaos/openwrt-configs 2024-02-26 16:36:55 +01:00
b00d96a31a drone-ci building docker image 2024-02-26 16:36:39 +01:00
5776a1b379 Update README.md 2024-02-14 21:48:11 +01:00
262d905e26 readme for pogplug 2024-02-14 21:44:20 +01:00
c0658dcb3c readme for pogplug 2024-02-14 21:43:49 +01:00
4befc75dd8 Pogoplug pro with ar94xxx Wifi mPCI Card 2024-02-14 21:11:23 +01:00
40bfb83b55 Trying hard to get this running... 2023-10-23 18:53:29 +02:00
8000d72759 Using statd/lockd 2021-12-13 14:59:39 +01:00
6f9e4b15b7 enables lockd? 2021-12-09 18:49:32 +01:00
a0a7ce3c9e Cleanup old configs and tasks 2021-12-09 18:09:50 +01:00
1fcb24aabd Cleanup old configs and tasks 2021-12-09 18:02:32 +01:00
8194d39793 new version of config and resource limits 2021-12-09 17:39:09 +01:00
759fe954c6 no clean 2021-09-20 19:01:47 +02:00
6a91fe549f clean before config copy 2021-09-20 19:01:25 +02:00
29a8c1997c updated after clean 2021-09-20 18:30:46 +02:00
a9224d8ec9 rename config to device and features 2021-09-20 17:51:51 +02:00
b5b12cfa41 dont -j that much 2021-09-17 19:50:57 +02:00
3dc9b07152 doing a clean before build might help 2021-09-17 17:47:11 +02:00
e1dbf444fc dir-825 with rndis for dumont2.wks 2021-04-24 19:11:37 +02:00
633ec43612 new DIR-825 for WKS 2021-04-23 18:04:43 +02:00
b018f343f8 neconfig for 21.02 2021-04-20 20:03:24 +02:00
dde3aeeb98 DIR-825 with 21.02 2021-04-20 18:58:38 +02:00
9bdf12f573 stats, ddns and wifischedule 2021-04-19 11:55:12 +02:00
97055fd88c using minio-openwrt secret 2021-04-17 21:20:50 +02:00
8b1395b65c using ccache 2021-04-13 17:45:28 +02:00
ac0859f85a no distcc in this world 2021-04-12 20:40:27 +02:00
8 changed files with 18005 additions and 6291 deletions

57
.drone.yml Normal file
View 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

View File

@@ -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
View 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`

View File

@@ -1,97 +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)"
ls -altr /usr/src/
#distcc config
echo "localhost/1,cpp,lzo --randomize distcc-0.distcc,cpp,lzo distcc-1.distcc,cpp,lzo distcc-2.distcc,cpp,lzo distcc-3.distcc,cpp,lzo" >/etc/distcc/hosts
echo "ALL DISTCC HOSTS"
distcc --show-hosts
echo "/ALL DISTCC HOSTS"
cp -v $(resources.inputs.openwrt-configs.path)/$(params.config) \
/usr/src/openwrt/.config || exit 1
cd /usr/src/openwrt
ls -la .
#./scripts/feeds update -a
#./scripts/feeds install -a
#distcc-pump make -j20 download world CC=distcc $(params.make_flags)
# build env does not like to be run as root....
export FORCE_UNSAFE_CONFIGURE=1
make -j4 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

File diff suppressed because it is too large Load Diff

13875
config-oxnas-PogoPlugPro Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -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