removing zeroconf /etc/distcc/hosts
This commit is contained in:
@@ -13,5 +13,6 @@ RUN sed -i 's@deb.debian.org@apt-cache.lan/deb.debian.org@g' /etc/apt/sources.li
|
|||||||
apt-get autoremove --purge -y && \
|
apt-get autoremove --purge -y && \
|
||||||
apt-get clean -y && \
|
apt-get clean -y && \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
rm -rf /var/cache/apt/*
|
rm -rf /var/cache/apt/* && \
|
||||||
|
rm /etc/distcc/hosts #no zeroconf for distcc
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,9 @@ spec:
|
|||||||
echo "res.input.ke...path: $(resources.inputs.kernel-configs.path)"
|
echo "res.input.ke...path: $(resources.inputs.kernel-configs.path)"
|
||||||
cp $(resources.inputs.kernel-configs.path)/riotboard-5.7 /usr/src/linux-source-5.10/.config
|
cp $(resources.inputs.kernel-configs.path)/riotboard-5.7 /usr/src/linux-source-5.10/.config
|
||||||
cd /usr/src/linux-source-5.10
|
cd /usr/src/linux-source-5.10
|
||||||
make ARCH=arm KBUILD_DEBARCH=armhf CROSS_COMPILE=arm-linux-gnueabihf- -j4 deb-pkg LOCALVERSION=-riot2
|
make CC=distcc DISTCC_HOSTS="distcc-0.distcc distcc-1.distcc distcc-2.distcc distcc-3.distcc"\
|
||||||
|
ARCH=arm KBUILD_DEBARCH=armhf CROSS_COMPILE=arm-linux-gnueabihf- \
|
||||||
|
-j4 deb-pkg LOCALVERSION=-riot2
|
||||||
- name: cleanup-workspace-post
|
- name: cleanup-workspace-post
|
||||||
image: alpine
|
image: alpine
|
||||||
command:
|
command:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: tekton.dev/v1alpha1
|
apiVersion: tekton.dev/v1alpha1
|
||||||
kind: PipelineResource
|
kind: PipelineResource
|
||||||
metadata:
|
metadata:
|
||||||
name: debian-kernel-build-git
|
name: chaos-kernel-configs-git
|
||||||
spec:
|
spec:
|
||||||
type: git
|
type: git
|
||||||
params:
|
params:
|
||||||
@@ -13,7 +13,7 @@ spec:
|
|||||||
apiVersion: tekton.dev/v1alpha1
|
apiVersion: tekton.dev/v1alpha1
|
||||||
kind: PipelineResource
|
kind: PipelineResource
|
||||||
metadata:
|
metadata:
|
||||||
name: debian-kernel-build-image
|
name: img-debian-kernel-build
|
||||||
spec:
|
spec:
|
||||||
type: image
|
type: image
|
||||||
params:
|
params:
|
||||||
@@ -23,47 +23,39 @@ spec:
|
|||||||
apiVersion: tekton.dev/v1beta1
|
apiVersion: tekton.dev/v1beta1
|
||||||
kind: Task
|
kind: Task
|
||||||
metadata:
|
metadata:
|
||||||
name: build-debian-kernel-build-from-source
|
name: build-debian-kernel-build
|
||||||
spec:
|
spec:
|
||||||
params:
|
params:
|
||||||
- name: pathToContainerFile
|
- name: pathToContainerFile
|
||||||
type: string
|
type: string
|
||||||
description: The path to the dockerfile to build
|
default: $(resources.inputs.source.path)/Dockerfile
|
||||||
default: $(resources.inputs.kernel-configs.path)/Dockerfile
|
|
||||||
- name: pathToContext
|
- name: pathToContext
|
||||||
type: string
|
type: string
|
||||||
description: |
|
default: $(resources.inputs.source.path)
|
||||||
The build context used by Kaniko
|
|
||||||
(https://github.com/GoogleContainerTools/kaniko#kaniko-build-contexts)
|
|
||||||
default: $(resources.inputs.kernel-configs.path)
|
|
||||||
resources:
|
resources:
|
||||||
inputs:
|
inputs:
|
||||||
- name: kernel-configs
|
- name: source
|
||||||
type: git
|
type: git
|
||||||
outputs:
|
outputs:
|
||||||
- name: kernel-configs-builtImage
|
- name: builtImage
|
||||||
type: image
|
type: image
|
||||||
steps:
|
steps:
|
||||||
- name: build-and-push
|
- name: build-and-push
|
||||||
image: gcr.io/kaniko-project/executor:arm64
|
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:
|
command:
|
||||||
- /kaniko/executor
|
- /kaniko/executor
|
||||||
args:
|
args:
|
||||||
- --dockerfile=$(params.pathToContainerFile)
|
- --dockerfile=$(params.pathToContainerFile)
|
||||||
- --destination=$(resources.outputs.kernel-configs-builtImage.url)
|
- --destination=$(resources.outputs.builtImage.url)
|
||||||
- --context=$(params.pathToContext)
|
- --context=$(params.pathToContext)
|
||||||
- --skip-tls-verify
|
- --skip-tls-verify
|
||||||
- name: cleanup-workspace-post
|
#- name: cleanup-workspace-post
|
||||||
image: alpine
|
# image: alpine
|
||||||
command:
|
# command:
|
||||||
- rm
|
# - rm
|
||||||
args:
|
# args:
|
||||||
- -rf
|
# - -rf
|
||||||
- /workspace/kernel-configs*
|
# - /workspace/kernel-configs*
|
||||||
#workspaces:
|
#workspaces:
|
||||||
# - name: workspace
|
# - name: workspace
|
||||||
# mountPath: /workspace
|
# mountPath: /workspace
|
||||||
@@ -71,23 +63,23 @@ spec:
|
|||||||
apiVersion: tekton.dev/v1beta1
|
apiVersion: tekton.dev/v1beta1
|
||||||
kind: TaskRun
|
kind: TaskRun
|
||||||
metadata:
|
metadata:
|
||||||
name: build-container-image-from-git-source-task-run
|
name: img-debian-kernel-build
|
||||||
spec:
|
spec:
|
||||||
#serviceAccountName: dockerhub-service
|
#serviceAccountName: dockerhub-service
|
||||||
taskRef:
|
taskRef:
|
||||||
name: build-debian-kernel-build-from-source
|
name: build-debian-kernel-build
|
||||||
params:
|
params:
|
||||||
- name: pathToContainerFile
|
- name: pathToContainerFile
|
||||||
value: Dockerfile
|
value: Dockerfile
|
||||||
resources:
|
resources:
|
||||||
inputs:
|
inputs:
|
||||||
- name: kernel-configs
|
- name: source
|
||||||
resourceRef:
|
resourceRef:
|
||||||
name: debian-kernel-build-git
|
name: chaos-kernel-configs-git
|
||||||
outputs:
|
outputs:
|
||||||
- name: kernel-configs-builtImage
|
- name: builtImage
|
||||||
resourceRef:
|
resourceRef:
|
||||||
name: debian-kernel-build-image
|
name: img-debian-kernel-build
|
||||||
# workspaces:
|
# workspaces:
|
||||||
# - name: workspace
|
# - name: workspace
|
||||||
# persistentVolumeClaim:
|
# persistentVolumeClaim:
|
||||||
|
|||||||
Reference in New Issue
Block a user