Adds php-mysqli

This commit is contained in:
Hyatt 2022-03-25 07:04:18 -05:00
parent 310d6cb577
commit 44b45e3d02
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

43
build-php.jenkins Normal file
View File

@ -0,0 +1,43 @@
#!groovy
def repository = "registry.c.test-chamber-13.lan"
def repositoryCreds = "harbor-repository-creds"
def dockerFile = """FROM ${repository}/dockerhub/library/alpine:latest
LABEL org.opencontainers.image.authors="The_Spider <spider@smoothnet.org>"
COPY test-chamber-13.lan.root.crt /usr/local/share/ca-certificates/test-chamber-13.lan.root.crt
RUN apt-get update &&
apt-get upgrade -y &&
apt-get autoremove -y &&
apt-get clean &&
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* &&
docker-php-ext-install mysqli
"""
def label = "kubernetes-${UUID.randomUUID().toString()}"
def templateName = "pipeline-worker"
podTemplate(
label: label,
name: templateName,
yaml: functions.podYaml(
repo: repository,
templateName: templateName,
kaniko: true
)
) {
node (label) {
def workspace = pwd()
writeFile(file: workspace + "/test-chamber-13.lan.root.crt", text: functions.getLocalRootCA())
functions.buildContainer(
repository: repository,
imageDest: "${repository}/library/php-mysqli:latest",
dockerFile: dockerFile,
repoCreds: repositoryCreds,
)
}
}