debian testing image
This commit is contained in:
11
_CI-CD/debian-testing/Dockerfile
Normal file
11
_CI-CD/debian-testing/Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
FROM debian:stable-slim
|
||||||
|
|
||||||
|
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-get update && apt-get install -y \
|
||||||
|
dnsutils procps nmap bash iputils-ping bash && \
|
||||||
|
apt-get clean -y && \
|
||||||
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
|
rm -rf /var/cache/apt/*
|
||||||
|
ADD docker-entrypoint.sh /
|
||||||
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||||
5
_CI-CD/debian-testing/docker-entrypoint.sh
Executable file
5
_CI-CD/debian-testing/docker-entrypoint.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
exec "$@"
|
||||||
85
_CI-CD/debian-testing/tekton-debian-testing.yaml
Normal file
85
_CI-CD/debian-testing/tekton-debian-testing.yaml
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
apiVersion: tekton.dev/v1alpha1
|
||||||
|
kind: PipelineResource
|
||||||
|
metadata:
|
||||||
|
name: chaos-kubernetes-git
|
||||||
|
spec:
|
||||||
|
type: git
|
||||||
|
params:
|
||||||
|
- name: revision
|
||||||
|
value: master
|
||||||
|
- name: url
|
||||||
|
value: http://git-ui.lan/chaos/kubernetes.git
|
||||||
|
- name: submodules
|
||||||
|
value: "false"
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1alpha1
|
||||||
|
kind: PipelineResource
|
||||||
|
metadata:
|
||||||
|
name: img-debian-testing
|
||||||
|
spec:
|
||||||
|
type: image
|
||||||
|
params:
|
||||||
|
- name: url
|
||||||
|
value: cr.lan/debian-testing
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1beta1
|
||||||
|
kind: Task
|
||||||
|
metadata:
|
||||||
|
name: build-debian-testing
|
||||||
|
spec:
|
||||||
|
params:
|
||||||
|
- name: pathToContainerFile
|
||||||
|
type: string
|
||||||
|
default: $(resources.inputs.source.path)/_CI-CD/debian-testing/Dockerfile
|
||||||
|
- name: pathToContext
|
||||||
|
type: string
|
||||||
|
default: $(resources.inputs.source.path)/_CI-CD/debian-testing
|
||||||
|
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
|
||||||
|
#workspaces:
|
||||||
|
# - name: workspace
|
||||||
|
# mountPath: /workspace
|
||||||
|
---
|
||||||
|
apiVersion: tekton.dev/v1beta1
|
||||||
|
kind: TaskRun
|
||||||
|
metadata:
|
||||||
|
name: img-debian-testing
|
||||||
|
spec:
|
||||||
|
taskRef:
|
||||||
|
name: build-debian-testing
|
||||||
|
params:
|
||||||
|
- name: pathToContainerFile
|
||||||
|
value: Dockerfile
|
||||||
|
resources:
|
||||||
|
inputs:
|
||||||
|
- name: source
|
||||||
|
resourceRef:
|
||||||
|
name: chaos-kubernetes-git
|
||||||
|
outputs:
|
||||||
|
- name: builtImage
|
||||||
|
resourceRef:
|
||||||
|
name: img-debian-testing
|
||||||
|
# workspaces:
|
||||||
|
# - name: workspace
|
||||||
|
# persistentVolumeClaim:
|
||||||
|
# claimName: tektoncd-workspaces
|
||||||
|
# subPath: workspaces
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -23,7 +23,8 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: nextcloud
|
- name: nextcloud
|
||||||
image: cr.lan/nextcloud
|
#image: cr.lan/nextcloud
|
||||||
|
image: docker.io/nextcloud:stable-apache
|
||||||
#lifecycle:
|
#lifecycle:
|
||||||
# postStart:
|
# postStart:
|
||||||
# exec:
|
# exec:
|
||||||
|
|||||||
Reference in New Issue
Block a user