20 Commits

Author SHA1 Message Date
Deon George
f1c2509579 Added Monogo modules 2021-06-24 23:51:38 +10:00
Deon George
2e582eec24 Second attempt - Fix incorrect image used for -test image 2021-06-15 23:55:07 +10:00
Deon George
e2704526c7 Fix incorrect image used for -test image 2021-06-15 23:34:48 +10:00
Deon George
abe19134e8 Create image used for CI testing 2021-06-15 22:43:34 +10:00
Deon George
5c1de20bd9 Update to PHP 8.0 2021-03-09 15:31:28 +11:00
Deon George
70276ff5c3 Fix as systemd-sysv was getting installed clobbering our /sbin/init 2021-03-09 15:31:15 +11:00
Deon George
d798579306 Revert "Update to PHP 8.0"
This reverts commit 106ed1d530.

Downgrade to PHP 7.4 to rebuild ext image
2021-03-09 15:28:12 +11:00
Deon George
106ed1d530 Update to PHP 8.0 2021-03-03 15:10:57 +11:00
Deon George
4cd10e8d0c Fix wkhtmltopdf name must have been lost in previous commit 2021-03-03 15:00:02 +11:00
Deon George
9a20da3294 Fix location to leenooks apt repository 2021-03-03 14:06:59 +11:00
Deon George
a044159d41 Fix location to leenooks apt repository 2021-03-03 14:04:30 +11:00
Deon George
12c45fb552 Update to PHP 7.4 2020-08-05 08:15:53 +10:00
Deon George
abedd9b6e6 Change installation of wkhtmltopdf 2020-04-03 17:00:24 +11:00
Deon George
e7e10b349f Fix for when kernel < 3.15 2020-04-02 21:57:19 +11:00
Deon George
39d7aaab42 Updated to 7.3 and added wkhtml and mysql client 2020-04-02 17:14:57 +11:00
Deon George
3279c0e869 Removed redundant start file 2019-05-03 12:30:26 +10:00
Deon George
1aceeb1d65 Added x86_64 tags, changed docker:dind service 2019-01-22 11:55:51 +11:00
Deon George
6d6abf85ab Added fping, updated to stretch 2018-03-04 23:48:12 +11:00
Deon George
4ecbcfe835 Update to 7.2 2018-03-04 20:04:47 +11:00
Deon George
4b412d555e Added ext branch for non-common modules 2018-01-29 15:45:59 +11:00
3 changed files with 48 additions and 15 deletions

View File

@@ -1,12 +1,13 @@
image: docker:latest
stages:
- test
- build
- build-test
variables:
BRANCH: server
VERSION: 8.1-fpm-${BRANCH}
BRANCH: ext
VERSION: 8.0-fpm-${BRANCH}
CACHETAG: build-${BRANCH}
DOCKER_HOST: tcp://docker:2375
@@ -18,6 +19,16 @@ before_script:
- docker version
- echo "$CI_JOB_TOKEN" | docker login -u "$CI_REGISTRY_USER" "$CI_REGISTRY" --password-stdin
test:
stage: test
script:
- cat /etc/hosts
- env|sort
- docker build -t ${CI_REGISTRY_IMAGE}:${VERSION} .
- docker images
only:
- debug
x86_64:build:
stage: build
script:
@@ -30,7 +41,7 @@ x86_64:build:
- docker
- x86_64
only:
- server
- ext
x86_64:build-test:
stage: build-test
@@ -43,4 +54,4 @@ x86_64:build-test:
- docker
- x86_64
only:
- server
- ext

View File

@@ -1,6 +1,30 @@
# NAME leenooks/php
# VERSION 8.1-fpm-server
# VERSION 8.0-fpm-ext
FROM registry.leenooks.net/leenooks/php:8.1-fpm-latest
FROM registry.leenooks.net/leenooks/php:8.0-fpm-plus
RUN CFLAGS="$CFLAGS -D_GNU_SOURCE" docker-php-ext-install -j$(nproc) sockets pcntl
RUN mv /sbin/init /sbin/init.tmp \
&& echo "deb http://deb.debian.org/debian buster non-free" >> /etc/apt/sources.list.d/non-free.list && apt-get update \
&& apt-get install -y mariadb-client-10.3 inetutils-ping fping pkg-config \
libsnmp-dev snmp-mibs-downloader --no-install-recommends \
&& download-mibs \
&& docker-php-ext-install -j$(nproc) snmp \
&& apt purge -yqq systemd-sysv dconf-service \
&& apt autoremove -yqq \
&& rm -rf /var/lib/apt/lists/* /tmp/* \
&& mv /sbin/init.tmp /sbin/init
# Add Mongo DB
RUN pecl install mongodb && docker-php-ext-enable mongodb \
&& rm -rf /tmp/* \
# Add in Leenooks' apt repository
RUN curl -sL http://apt.leenooks.net/setup.sh | DISTRO=buster bash
RUN mv /sbin/init /sbin/init.tmp \
&& apt-get update \
&& apt-get install -yqq wkhtmltopdf \
&& apt purge -yqq systemd-sysv dconf-service \
&& apt autoremove -yqq \
&& rm -rf /var/lib/apt/lists/* /tmp/* \
&& mv /sbin/init.tmp /sbin/init

View File

@@ -1,14 +1,12 @@
# NAME leenooks/php
# VERSION 8.1-fpm-server-test
# VERSION 8.0-fpm-test
FROM registry.leenooks.net/leenooks/php:8.1-fpm-server
FROM registry.leenooks.net/leenooks/php:8.0-fpm-ext
RUN pecl install xdebug \
&& docker-php-ext-enable xdebug
RUN mv /sbin/init /sbin/init.orig \
&& apt-get update && apt-get install -y npm \
&& apt-get -y autoremove \
&& apt-get clean \
&& mv /sbin/init.orig /sbin/init \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN apt-get update && apt-get install -y npm \
&& apt-get -y autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*