UNCLASSIFIED

Commit 44ebeab2 authored by Tim Seagren's avatar Tim Seagren
Browse files

init commit

parents
*.tar.gz
*.tar
ARG BASE_REGISTRY=nexus-docker-secure.levelup-nexus.svc.cluster.local:18082
ARG BASE_IMAGE=redhat/ubi/ubi8
ARG BASE_TAG=8.2
FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
LABEL name="PHP" \
maintainer="seagren.tim@solute.us" \
vendor="Open Source" \
version="7.4.8" \
release="1" \
summary="Image containing PHP v7.4.8" \
description="PHP is a popular general-purpose scripting language that is especially suited to web development."
COPY php.tar.gz /usr/local/src/
COPY bison.tar.gz /
COPY textinfo.tar.gz /
RUN dnf update --setopt=tsflags=nodocs -y \
&& dnf install --setopt=tsflags=nodocs -y \
gcc \
make \
libxml2-devel \
autoconf \
help2man \
&& dnf clean all \
&& mkdir -p /usr/src/textinfo \
&& tar -zxf /textinfo.tar.gz --strip-components=1 -C /usr/src/textinfo \
&& rm /textinfo.tar.gz \
&& cd /usr/src/textinfo \
&& ./configure \
&& make \
&& make install \
&& mkdir -p /usr/src/bison \
&& tar -zxf /bison.tar.gz --strip-components=1 -C /usr/src/bison \
&& rm /bison.tar.gz \
&& cd /usr/src/bison \
&& ./configure \
&& make \
&& make install \
&& mkdir /usr/local/src/php \
&& tar -C /usr/local/src/php --strip-components=1 -zxf /usr/local/src/php.tar.gz \
&& rm /usr/local/src/php.tar.gz \
&& cd /usr/local/src/php \
&& ./buildconf --force \
&& ./configure --without-pear \
&& make -j4 \
&& make install \
&& for cert in $(find /usr/local/src/php/ext/ -name "*.pem" -o -name "*.phpt" -o -name "*.crt" -o -name "*.key"); do rm $cert; done
USER 1001
ENTRYPOINT ["php"]
CMD ["-v"]
@Library('DCCSCR@master') _
dccscrPipeline(version: '7.4.8')
Copyright (c) 2014 Docker, Inc.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# php
PHP is a popular general-purpose scripting language that is especially suited to web development.
### Usage
This container contains the PHP 7.4.8 runtime and the PHP CLI, which is the default entrypoint. The default command is the `-v` flag, which will print version information for the PHP runtime installed.
*Build locally*: `docker build --build-arg BASE_REGISTRY=registry.access.redhat.com --build-arg BASE_IMAGE=ubi8/ubi -t php:7.4 .`
*Run*: `docker run php:7.4`
**NOTE**
fpm and PEAR are disabled by default for this image. To enable these, you will need to rerun the configuration script in `/usr/local/src/php` with the appropriate flags set/omitted.
resources:
- url: "https://github.com/php/php-src/archive/php-7.4.8.tar.gz"
filename: "php.tar.gz"
validation:
type: "sha256"
value: "04a8d9fd372ffa9203b481f2d2bf2b5276b154d988c21b3e35851a28b91ad48a"
- url: "http://ftp.gnu.org/gnu/bison/bison-3.5.4.tar.gz"
filename: "bison.tar.gz"
validation:
type: "sha256"
value: "c0dd154dfaba63553a892d41dc400c7baa88cc06a1e2e27813fdd503715e4c28"
- url: "https://ftp.gnu.org/gnu/texinfo/texinfo-6.7.tar.gz"
filename: "textinfo.tar.gz"
validation:
type: "sha256"
value: "a52d05076b90032cb2523673c50e53185938746482cf3ca0213e9b4b50ac2d3e"
{
"assignees": ["@seagren.tim"],
"baseBranches": ["development"],
"regexManagers": [
{
"fileMatch": ["^Dockerfile$"],
"matchStrings": [
"version=\"(?<currentValue>.*?)\""
],
"depNameTemplate": "php/php74",
"datasourceTemplate": "docker"
},
{
"fileMatch": ["^Jenkinsfile$"],
"matchStrings": [
"version:\\s+\"(?<currentValue>.*?)\""
],
"depNameTemplate": "php/php74",
"datasourceTemplate": "docker"
}
]
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment