Compare commits

...

45 Commits

Author SHA1 Message Date
4e67dbe69d genau. 2021-04-11 20:45:12 +02:00
007976f834 no distcc 2021-02-28 16:21:41 +01:00
566426f4e6 from stable-slim again 2021-02-27 15:37:07 +01:00
4b284b4ca9 What's wrong with this image 2021-02-27 14:38:46 +01:00
a10ab3e266 What's wrong with this image 2021-02-27 14:28:12 +01:00
4db0b2051b What's wrong with this image 2021-02-27 14:26:30 +01:00
ff98e856dd wtf is going on with my distcc-pump hack? 2021-02-25 23:08:16 +01:00
e297dedc10 using me own debian-stable 2021-02-25 21:57:17 +01:00
ddc39d4b21 adding procps 2021-02-25 10:11:44 +01:00
87a678b516 verbosity is always a bigger fish 2021-02-24 18:49:08 +01:00
30373669bc array params can't be used in scripts? 2021-02-24 18:46:46 +01:00
ecbf0c3187 refactoring, one task to build them all 2021-02-24 18:36:07 +01:00
b52e91b0e0 a hack for pythonpath issue in debian stable 2021-02-24 17:32:18 +01:00
b7e3162123 pine64-aarch64 testwise, distcc 2021-02-23 21:54:03 +01:00
dd966028cb adding distcc-pump 2021-02-23 19:24:03 +01:00
c585faa615 removing zeroconf /etc/distcc/hosts 2021-02-22 18:47:45 +01:00
d6b01e606e lzop 2021-02-19 09:50:16 +01:00
74ee95d328 doch lieber debian-slim 2021-02-18 20:27:34 +01:00
a7c183ce26 additional kernel pkgs. 2021-02-18 20:08:47 +01:00
7e887d1b41 bison and flex 2021-02-18 18:25:55 +01:00
113a1e4ba4 fix image installs 2021-02-18 10:58:12 +01:00
d82c770c7d fix image installs 2021-02-18 10:53:59 +01:00
9c1f15b467 fix image installs 2021-02-18 10:46:13 +01:00
ac8611ac8c fix image installs 2021-02-17 23:15:57 +01:00
97705c0f6e fix image installs 2021-02-17 23:13:12 +01:00
cf45bcef73 fix image installs 2021-02-17 22:51:37 +01:00
78a833da2f fix image installs 2021-02-17 22:48:06 +01:00
be327ea72d building it 2021-02-17 22:46:52 +01:00
2376377931 building it 2021-02-17 22:32:35 +01:00
f24b0494ad all on cmd 2021-02-17 22:28:51 +01:00
8f0aa1b491 all on cmd 2021-02-17 22:28:07 +01:00
acbc210892 armhf 2021-02-17 22:25:58 +01:00
519388ebd5 getting there, workspace needs cleanup 2021-02-17 18:36:40 +01:00
6ae29df2d6 build-deps ain't necessary either 2021-02-16 17:57:38 +01:00
90c527d7c7 always taking snapshots ain't necessary 2021-02-16 17:55:58 +01:00
d414591340 distcc and ccache? 2021-02-16 17:48:25 +01:00
a9598aacb2 sources 2021-02-16 17:44:40 +01:00
cfaa2c64b6 pine64 kernel konfig we not want 2021-02-16 17:38:21 +01:00
f9dd8a3ed6 ignore eclipse files 2021-02-16 17:37:52 +01:00
801c0a8b2d more cleanups 2021-02-16 17:28:51 +01:00
ad9dfd46a7 not the slim image 2021-02-16 17:28:07 +01:00
4b8a3e48d8 installing kernel-source builddeps 2021-02-16 17:26:54 +01:00
831e7df19a caching apt 2021-02-16 17:22:54 +01:00
39748e1859 caching apt 2021-02-16 17:09:30 +01:00
92e343d226 caching apt 2021-02-16 17:05:10 +01:00
14 changed files with 1374 additions and 24642 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
.project
.dbeaver

View File

@@ -1,9 +1,21 @@
FROM debian:stable-slim
RUN apt-get update && apt-get install -y \
procps build-essential dpkg-dev dpkg-cross \
devscripts make && \
# APT-cache for all
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 && \
echo 'deb-src http://apt-cache.lan/deb.debian.org/debian stable main' > /etc/apt/sources.list.d/src.list && \
apt-get update -y && \
apt-get install -y procps build-essential dpkg-dev dpkg-cross \
devscripts gcc make ccache distcc distcc-pump flex bison \
gcc-arm-linux-gnueabihf gcc-arm-linux-gnueabi \
g++-arm-linux-gnueabihf g++-arm-linux-gnueabi \
bc rsync kmod cpio libssl-dev:native lzop && \
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/*
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

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,64 @@
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: build-kernel-debian
spec:
params:
- name: kernel_version
type: string
- name: make_flags
type: string
default: ""
- name: config
type: string
- name: localversion
type: string
resources:
inputs:
- name: kernel-configs
type: git
steps:
- name: install-kernel-source
image: cr.lan/debian-kernel-build-stable
script: |
#!/usr/bin/env bash
echo 'deb-src http://apt-cache.lan/deb.debian.org/debian testing main' > /etc/apt/sources.list.d/src-testing.list
echo 'deb http://apt-cache.lan/deb.debian.org/debian testing main' > /etc/apt/sources.list.d/testing.list
apt update -y
apt install -y $(apt-cache search linux-source-$(params.kernel_version) |awk '{print $1}' |tail -1)
- name: unpack-kernel-sources
image: cr.lan/debian-kernel-build-stable
script: |
#!/usr/bin/env bash
cd /usr/src
for DSRC in $(ls linux-source*xz |tail -1 |awk -F '.tar' '{print $1}'); do
D=$(basename ${DSRC})
if [[ ! -d ${D} ]]; then
tar -xvf ${DSRC}*.xz
fi
done
- name: build-kernel
image: cr.lan/debian-kernel-build-stable
script: |
#!/usr/bin/env bash
echo $PATH
echo "res.input.ke...path: $(resources.inputs.kernel-configs.path)"
echo "K_VERS: $(params.kernel_version)"
ls -altr /usr/src/
cp -v $(resources.inputs.kernel-configs.path)/$(params.config) \
/usr/src/linux-source-$(params.kernel_version)/.config || exit 1
cd /usr/src/linux-source-$(params.kernel_version)
#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"
ls -latr /usr/lib/distcc-pump/
#distcc-pump make -j20 bindeb-pkg CC=distcc LOCALVERSION=$(params.localversion) $(params.make_flags)
make -j4 bindeb-pkg LOCALVERSION=$(params.localversion) $(params.make_flags)
workspaces:
- name: usr-src
mountPath: /usr/src

View File

@@ -0,0 +1,24 @@
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: build-kernel-pine64-armbian
spec:
taskRef:
name: build-kernel-debian
params:
- name: kernel_version
value: '5.10'
- name: config
value: pine64-armbian
- name: localversion
value: -pine1
resources:
inputs:
- name: kernel-configs
resourceRef:
name: debian-kernel-build-git
workspaces:
- name: usr-src
persistentVolumeClaim:
claimName: tektoncd-workspaces
subPath: usr_src

View File

@@ -0,0 +1,26 @@
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: build-kernel-riotboard
spec:
taskRef:
name: build-kernel-debian
params:
- name: kernel_version
value: '5.10'
- name: config
value: riotboard
- name: localversion
value: -riot2
- name: make_flags
value: ARCH=arm KBUILD_DEBARCH=armhf CROSS_COMPILE=arm-linux-gnueabihf-
resources:
inputs:
- name: kernel-configs
resourceRef:
name: debian-kernel-build-git
workspaces:
- name: usr-src
persistentVolumeClaim:
claimName: tektoncd-workspaces
subPath: usr_src

View File

@@ -0,0 +1,24 @@
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: build-kernel-trimslice
spec:
taskRef:
name: build-kernel-debian
params:
- name: kernel_version
value: '5.10'
- name: config
value: trimslice
- name: localversion
value: -trimslice1
resources:
inputs:
- name: kernel-configs
resourceRef:
name: debian-kernel-build-git
workspaces:
- name: usr-src
persistentVolumeClaim:
claimName: tektoncd-workspaces
subPath: usr_src

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
name: debian-kernel-build-git
name: chaos-kernel-configs-git
spec:
type: git
params:
@@ -13,79 +13,79 @@ spec:
apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
name: debian-kernel-build-image
name: img-debian-kernel-build
spec:
type: image
params:
- name: url
value: docker-registry.lan/debian-kernel-build-stable
- name:
value: cr.lan/debian-kernel-build-stable
---
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: build-debian-kernel-build-from-source
name: build-debian-kernel-build
spec:
params:
- name: pathToContainerFile
type: string
description: The path to the dockerfile to build
default: $(resources.inputs.container-source.path)/Dockerfile
default: $(resources.inputs.source.path)/Dockerfile
- name: pathToContext
type: string
description: |
The build context used by Kaniko
(https://github.com/GoogleContainerTools/kaniko#kaniko-build-contexts)
default: $(resources.inputs.container-source.path)
default: $(resources.inputs.source.path)
resources:
inputs:
- name: container-source
- name: source
type: git
outputs:
- name: builtImage
type: image
steps:
- name: debug-print
image: busybox
command:
- echo
args:
- ockerfile: $(params.pathToContainerFile)
- contextPath: $(params.pathToContext)
- name: build-and-push
image: gcr.io/kaniko-project/executor:arm64
# specifying DOCKER_CONFIG is required to allow kaniko to detect docker credential
env:
- name: "DOCKER_CONFIG"
value: "/tekton/home/.docker/"
command:
- /kaniko/executor
args:
- --dockerfile=$(params.pathToContainerFile)
- --destination=$(resources.outputs.builtImage.url)
- --context=$(params.pathToContext)
- --snapshotMode=redo
- --skip-tls-verify
#- name: cleanup-workspace-post
# image: alpine
# command:
# - rm
# args:
# - -rf
# - /workspace/kernel-configs*
#workspaces:
# - name: workspace
# mountPath: /workspace
---
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: build-container-image-from-git-source-task-run
name: img-debian-kernel-build
spec:
#serviceAccountName: dockerhub-service
taskRef:
name: build-debian-kernel-build-from-source
name: build-debian-kernel-build
params:
- name: pathToContainerFile
value: Dockerfile
resources:
inputs:
- name: container-source
- name: source
resourceRef:
name: debian-kernel-build-git
name: chaos-kernel-configs-git
outputs:
- name: builtImage
resourceRef:
name: debian-kernel-build-image
name: img-debian-kernel-build
# workspaces:
# - name: workspace
# persistentVolumeClaim:
# claimName: tektoncd-workspaces
# subPath: workspaces