php-fpm debian image
This commit is contained in:
16
_CI-CD/debian-stable-php-fpm/Dockerfile
Normal file
16
_CI-CD/debian-stable-php-fpm/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM cr.lan/debian-stable
|
||||
|
||||
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 \
|
||||
php-fpm php-zip php-sqlite3 php-pgqsl php-mysqli php-json php-readline \
|
||||
php-xml php-ldap php-imap php-intl php-xmlrpc php-imagick php-gd php-cli php-curl \
|
||||
php-bz2 php-mbstring php-memcache php-redis
|
||||
|
||||
#cleanup
|
||||
RUN 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-stable-php-fpm/docker-entrypoint.sh
Executable file
5
_CI-CD/debian-stable-php-fpm/docker-entrypoint.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
exec "$@"
|
||||
85
_CI-CD/debian-stable-php-fpm/tekton.yaml
Normal file
85
_CI-CD/debian-stable-php-fpm/tekton.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-stable-php-fpm
|
||||
spec:
|
||||
type: image
|
||||
params:
|
||||
- name: url
|
||||
value: cr.lan/debian-stable-php-fpm
|
||||
---
|
||||
apiVersion: tekton.dev/v1beta1
|
||||
kind: Task
|
||||
metadata:
|
||||
name: build-debian-stable-php-fpm
|
||||
spec:
|
||||
params:
|
||||
- name: pathToContainerFile
|
||||
type: string
|
||||
default: $(resources.inputs.source.path)/_CI-CD/debian-stable-php-fpm/Dockerfile
|
||||
- name: pathToContext
|
||||
type: string
|
||||
default: $(resources.inputs.source.path)/_CI-CD/debian-stable-php-fpm
|
||||
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-stable-php-fpm
|
||||
spec:
|
||||
taskRef:
|
||||
name: build-debian-stable-php-fpm
|
||||
params:
|
||||
- name: pathToContainerFile
|
||||
value: Dockerfile
|
||||
resources:
|
||||
inputs:
|
||||
- name: source
|
||||
resourceRef:
|
||||
name: chaos-kubernetes-git
|
||||
outputs:
|
||||
- name: builtImage
|
||||
resourceRef:
|
||||
name: img-debian-stable-php-fpm
|
||||
# workspaces:
|
||||
# - name: workspace
|
||||
# persistentVolumeClaim:
|
||||
# claimName: tektoncd-workspaces
|
||||
# subPath: workspaces
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user