Compare commits

..

11 Commits

Author SHA1 Message Date
Muhamad Aditya Prima a5c22a4332 Added composer build
Build and push PHP 5 container images / Build PHP 5 container images (map[mode:cli os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:false with_server:false]) (push) Successful in 57s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[mode:debug os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:false with_server:apache]) (push) Successful in 1m27s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[mode:debug os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:false with_server:false]) (push) Successful in 1m10s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[mode:debug os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:mysql with_server:apache]) (push) Successful in 1m15s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[mode:debug os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:postgresql with_server:apache]) (push) Successful in 1m28s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[mode:full os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:false with_server:apache]) (push) Successful in 1m3s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[mode:full os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:false with_server:false]) (push) Successful in 1m0s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[mode:full os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:mysql with_server:apache]) (push) Successful in 1m9s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[mode:full os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:postgresql with_server:apache]) (push) Successful in 58s Details
2024-12-16 21:09:49 +07:00
Muhamad Aditya Prima d81dbc05ce Fixed failed workflows
Build and push PHP 5 container images / Build PHP 5 container images (map[mode:cli os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:false with_server:false]) (push) Successful in 52s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[mode:debug os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:false with_server:apache]) (push) Successful in 1m12s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[mode:debug os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:false with_server:false]) (push) Successful in 1m2s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[mode:debug os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:mysql with_server:apache]) (push) Successful in 1m11s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[mode:debug os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:postgresql with_server:apache]) (push) Successful in 1m15s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[mode:full os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:false with_server:apache]) (push) Successful in 1m0s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[mode:full os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:false with_server:false]) (push) Successful in 58s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[mode:full os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:mysql with_server:apache]) (push) Successful in 1m1s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[mode:full os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:postgresql with_server:apache]) (push) Successful in 1m1s Details
2024-12-16 20:46:02 +07:00
Muhamad Aditya Prima 187d5f3071 Fixed action workflows
Build and push PHP 5 container images / Build PHP 5 container images (map[additional_tags: mode:debug os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:false with_server:apache]) (push) Successful in 1m25s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[additional_tags: mode:debug os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:mysql with_server:apache]) (push) Successful in 1m57s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[additional_tags: mode:debug os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:postgresql with_server:apache]) (push) Successful in 1m49s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[additional_tags:quay.io/sindigilive/php:5-cli-alpine mode:cli os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:false with_server:false]) (push) Failing after 0s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[additional_tags:quay.io/sindigilive/php:5-debug-alpine mode:debug os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:false with_server:false]) (push) Failing after 0s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[additional_tags:quay.io/sindigilive/php:5.6-alpine quay.io/sindigilive/php:5-alpine mode:full os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:false with_server:false]) (push) Failing after 0s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[additional_tags:quay.io/sindigilive/php:5.6-apache-alpine quay.io/sindigilive/php:5-apache-alpine mode:full os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:false with_server:apache]) (push) Failing after 0s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[additional_tags:quay.io/sindigilive/php:5.6-apache-mysql-alpine quay.io/sindigilive/php:5-apache-mysql-alpine mode:full os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:mysql with_server:apache]) (push) Failing after 0s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[additional_tags:quay.io/sindigilive/php:5.6-apache-postgresql-alpine quay.io/sindigilive/php:5-apache-postgresql-alpine mode:full os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:postgresql with_… (push) Failing after 0s Details
2024-12-16 20:26:39 +07:00
Muhamad Aditya Prima cf9c2e6830 Updated php5 action workflows
Build and push PHP 5 container images / Build PHP 5 container images (map[additional_tags: mode:debug os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:false with_server:apache]) (push) Successful in 1m33s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[additional_tags: mode:debug os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:mysql with_server:apache]) (push) Successful in 1m22s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[additional_tags: mode:debug os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:postgresql with_server:apache]) (push) Successful in 1m19s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[additional_tags:quay.io/sindigilive/php:5-cli-alpine mode:cli os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:false with_server:false]) (push) Failing after 0s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[additional_tags:quay.io/sindigilive/php:5-debug-alpine mode:debug os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:false with_server:false]) (push) Failing after 0s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[additional_tags:quay.io/sindigilive/php:5.6-alpine quay.io/sindigilive/php:5-alpine mode:full os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:false with_server:false]) (push) Failing after 0s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[additional_tags:quay.io/sindigilive/php:5.6-apache-alpine quay.io/sindigilive/php:5-apache-alpine mode:full os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:false with_server:apache]) (push) Failing after 0s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[additional_tags:quay.io/sindigilive/php:5.6-apache-mysql-alpine quay.io/sindigilive/php:5-apache-mysql-alpine mode:full os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:mysql with_server:apache]) (push) Failing after 0s Details
Build and push PHP 5 container images / Build PHP 5 container images (map[additional_tags:quay.io/sindigilive/php:5.6-apache-postgresql-alpine quay.io/sindigilive/php:5-apache-postgresql-alpine mode:full os:alpine os_version:3.6 php_ver_short:5 php_version:5.6 with_database:postgresql with_… (push) Failing after 0s Details
2024-12-16 20:19:42 +07:00
Muhamad Aditya Prima 6dd42dc434 Added database connector support: mysql and postgresql
Build and push PHP 5 container images / Build PHP 5 container images (blank, cli, apache, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Successful in 53s Details
Build and push PHP 5 container images / Build PHP 5 container images (blank, cli, blank, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Successful in 55s Details
Build and push PHP 5 container images / Build PHP 5 container images (blank, debug, blank, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (blank, full, apache, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (blank, full, blank, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (mysql, cli, apache, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (mysql, cli, blank, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (mysql, debug, apache, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (mysql, debug, blank, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (mysql, full, apache, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (mysql, full, blank, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (postgresql, cli, apache, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (postgresql, cli, blank, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (postgresql, debug, apache, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (postgresql, debug, blank, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (postgresql, full, apache, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (postgresql, full, blank, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (blank, debug, apache, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
2024-12-16 19:58:23 +07:00
Muhamad Aditya Prima d5421aa456 Updated php5 alpine
Build and push PHP 5 container images / Build PHP 5 container images (cli, apache, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Successful in 1m2s Details
Build and push PHP 5 container images / Build PHP 5 container images (cli, blank, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Successful in 54s Details
Build and push PHP 5 container images / Build PHP 5 container images (debug, apache, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Successful in 1m13s Details
Build and push PHP 5 container images / Build PHP 5 container images (debug, blank, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Successful in 1m14s Details
Build and push PHP 5 container images / Build PHP 5 container images (full, apache, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Successful in 1m8s Details
Build and push PHP 5 container images / Build PHP 5 container images (full, blank, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Successful in 55s Details
2024-12-16 19:44:21 +07:00
Muhamad Aditya Prima d3e3a8d873 Updated php 5.6 on alpine 3.6
Build and push PHP 5 container images / Build PHP 5 container images (cli, apache, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Successful in 55s Details
Build and push PHP 5 container images / Build PHP 5 container images (cli, blank, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Successful in 1m13s Details
Build and push PHP 5 container images / Build PHP 5 container images (debug, apache, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Successful in 1m30s Details
Build and push PHP 5 container images / Build PHP 5 container images (debug, blank, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Successful in 1m2s Details
Build and push PHP 5 container images / Build PHP 5 container images (full, apache, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Successful in 1m7s Details
Build and push PHP 5 container images / Build PHP 5 container images (full, blank, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Successful in 53s Details
2024-12-16 18:04:47 +07:00
Muhamad Aditya Prima d6a3a43347 Changed tagname
Build and push PHP 5 container images / Build PHP 5 container images (cli, apache, map[os:alpine os_version:3.5 php_ver_short:5 php_version:5.6]) (push) Successful in 57s Details
Build and push PHP 5 container images / Build PHP 5 container images (debug, apache, map[os:alpine os_version:3.5 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (debug, blank, map[os:alpine os_version:3.5 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (full, apache, map[os:alpine os_version:3.5 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (full, blank, map[os:alpine os_version:3.5 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (cli, blank, map[os:alpine os_version:3.5 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
2024-12-16 18:00:26 +07:00
Muhamad Aditya Prima 7b93638aab Updated php5 action workflows
Build and push PHP 5 container images / Build PHP 5 container images (cli, apache, map[os:alpine os_version:3.5 php_ver_short:5 php_version:5.6]) (push) Successful in 42s Details
Build and push PHP 5 container images / Build PHP 5 container images (debug, apache, map[os:alpine os_version:3.5 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (debug, blank, map[os:alpine os_version:3.5 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (full, apache, map[os:alpine os_version:3.5 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (full, blank, map[os:alpine os_version:3.5 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (cli, blank, map[os:alpine os_version:3.5 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
2024-12-16 17:58:36 +07:00
Muhamad Aditya Prima 5e5e5866af Added apache image for php5 alpine linux
Build and push PHP 5 container images / Build PHP 5 container images (cli, apache, map[os:alpine os_version:3.5 php_ver_short:5 php_version:5.6]) (push) Successful in 22s Details
Build and push PHP 5 container images / Build PHP 5 container images (cli, blank, map[os:alpine os_version:3.5 php_ver_short:5 php_version:5.6]) (push) Successful in 47s Details
Build and push PHP 5 container images / Build PHP 5 container images (debug, apache, map[os:alpine os_version:3.5 php_ver_short:5 php_version:5.6]) (push) Failing after 25s Details
Build and push PHP 5 container images / Build PHP 5 container images (full, apache, map[os:alpine os_version:3.5 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (full, blank, map[os:alpine os_version:3.5 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (debug, blank, map[os:alpine os_version:3.5 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
2024-12-16 17:55:27 +07:00
Muhamad Aditya Prima 10f35bad06 Fixed php5 action workflows
Build and push PHP 5 container images / Build PHP 5 container images (cli, map[os:alpine os_version:3.5 php_ver_short:5 php_version:5.6]) (push) Successful in 48s Details
Build and push PHP 5 container images / Build PHP 5 container images (debug, map[os:alpine os_version:3.5 php_ver_short:5 php_version:5.6]) (push) Successful in 1m9s Details
Build and push PHP 5 container images / Build PHP 5 container images (full, map[os:alpine os_version:3.5 php_ver_short:5 php_version:5.6]) (push) Successful in 44s Details
2024-12-16 17:29:29 +07:00
8 changed files with 323 additions and 21 deletions

View File

@ -13,12 +13,70 @@ jobs:
image: ghcr.io/catthehacker/ubuntu:act-latest
strategy:
matrix:
flavors: ["cli", "full", "debug"]
version:
flavors:
- os: "alpine"
os_version: "3.5"
os_version: "3.6"
php_version: "5.6"
php_ver_short: "5"
mode: cli
with_server: "false"
with_database: "false"
- os: "alpine"
os_version: "3.6"
php_version: "5.6"
php_ver_short: "5"
mode: full
with_server: "false"
with_database: "false"
- os: "alpine"
os_version: "3.6"
php_version: "5.6"
php_ver_short: "5"
mode: debug
with_server: "false"
with_database: "false"
- os: "alpine"
os_version: "3.6"
php_version: "5.6"
php_ver_short: "5"
mode: full
with_server: "apache"
with_database: "false"
- os: "alpine"
os_version: "3.6"
php_version: "5.6"
php_ver_short: "5"
mode: full
with_server: "apache"
with_database: "mysql"
- os: "alpine"
os_version: "3.6"
php_version: "5.6"
php_ver_short: "5"
mode: full
with_server: "apache"
with_database: "postgresql"
- os: "alpine"
os_version: "3.6"
php_version: "5.6"
php_ver_short: "5"
mode: debug
with_server: "apache"
with_database: "false"
- os: "alpine"
os_version: "3.6"
php_version: "5.6"
php_ver_short: "5"
mode: debug
with_server: "apache"
with_database: "mysql"
- os: "alpine"
os_version: "3.6"
php_version: "5.6"
php_ver_short: "5"
mode: debug
with_server: "apache"
with_database: "postgresql"
steps:
- name: Check out repository code
uses: actions/checkout@v4
@ -32,18 +90,51 @@ jobs:
# uses: docker/setup-qemu-action@v3
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
- name: Build and push php on alpine base
- if: ${{ matrix.flavors.with_server == 'false' && matrix.flavors.with_database == 'false' }}
name: Build and push php5
uses: docker/build-push-action@v5
with:
push: true
context: .
file: 5/Dockerfile.${{ matrix.version.os }}
file: 5/Dockerfile.${{ matrix.flavors.os }}
build-args: |
OS_VERSION=${{ matrix.version.os_version }}
PHP_VERSION=${{ matrix.version.php_version }}
PHP_VER_SHORT=${{ matrix.version.php_ver_short }}
OS_VERSION=${{ matrix.flavors.os_version }}
FLAVOR=${{ matrix.flavors.mode }}
PHP_VERSION=${{ matrix.flavors.php_version }}
PHP_VER_SHORT=${{ matrix.flavors.php_ver_short }}
tags: |
quay.io/sindigilive/php:${{ matrix.version.php_version }}-${{ matrix.flavors }}-${{ matrix.version.os }}
quay.io/sindigilive/php:${{ matrix.flavors.php_version }}-${{ matrix.flavors.mode }}-${{ matrix.flavors.os }}
- if: ${{ matrix.flavors.with_server != 'false' && matrix.flavors.with_database == 'false' }}
name: Build and push php5 with webserver
uses: docker/build-push-action@v5
with:
push: true
context: .
file: 5/Dockerfile.${{ matrix.flavors.with_server }}-${{ matrix.flavors.os }}
build-args: |
OS_VERSION=${{ matrix.flavors.os_version }}
FLAVOR=${{ matrix.flavors.mode }}
PHP_VERSION=${{ matrix.flavors.php_version }}
PHP_VER_SHORT=${{ matrix.flavors.php_ver_short }}
WITH_APACHE=true
tags: |
quay.io/sindigilive/php:${{ matrix.flavors.php_version }}-${{ matrix.flavors.mode }}-${{ matrix.flavors.with_server }}-${{ matrix.flavors.os }}
- if: ${{ matrix.flavors.with_server != 'false' && matrix.flavors.with_database != 'false' }}
name: Build and push php5 with apache2 and database connector library
uses: docker/build-push-action@v5
with:
push: true
context: .
file: 5/Dockerfile.${{ matrix.flavors.with_server }}-${{ matrix.flavors.os }}
build-args: |
OS_VERSION=${{ matrix.flavors.os_version }}
FLAVOR=${{ matrix.flavors.mode }}
PHP_VERSION=${{ matrix.flavors.php_version }}
PHP_VER_SHORT=${{ matrix.flavors.php_ver_short }}
WITH_APACHE=true
WITH_DATABASE=${{ matrix.flavors.with_database }}
tags: |
quay.io/sindigilive/php:${{ matrix.flavors.php_version }}-${{ matrix.flavors.mode }}-${{ matrix.flavors.with_server }}-${{ matrix.flavors.with_database }}-${{ matrix.flavors.os }}
# build-latest:
# name: Build latest nginx alpine based container images
# runs-on: ubuntu-latest

View File

@ -1,14 +1,16 @@
# PHP 5.6 == 3.5
ARG OS_VERSION=3.5
# PHP 5.6 == 3.6
ARG OS_VERSION=3.6
FROM quay.io/sindigilive/alpine:${OS_VERSION} AS builder
LABEL maintainer="<Muhamad Aditya Prima> map@sindigilive.com"
ARG FLAVOR=cli
ARG WITH_APACHE=false
ARG PHP_VERSION=5.6
ARG PHP_VER_SHORT=5
ENV FLAVOR=${FLAVOR}
ENV WITH_APACHE=${WITH_APACHE}
ENV PHP_VERSION=${PHP_VERSION}
ENV PHP_VER_SHORT=${PHP_VER_SHORT}

View File

@ -0,0 +1,74 @@
# PHP 5.6 == 3.6
ARG OS_VERSION=3.6
FROM quay.io/sindigilive/alpine:${OS_VERSION} AS builder
LABEL maintainer="<Muhamad Aditya Prima> map@sindigilive.com"
ARG FLAVOR=cli
ARG WITH_APACHE=false
ARG PHP_VERSION=5.6
ARG PHP_VER_SHORT=5
ENV FLAVOR=${FLAVOR}
ENV WITH_APACHE=${WITH_APACHE}
ENV PHP_VERSION=${PHP_VERSION}
ENV PHP_VER_SHORT=${PHP_VER_SHORT}
ENV SERVER_ROOT=/app
WORKDIR /root
ADD 5/scripts/alpine-setup.sh /tmp/setup.sh
ADD scripts/entrypoint.sh /usr/local/bin/
# Create directory, and install required php app
RUN /bin/mkdir -p /app ; \
/sbin/apk add --update --no-cache \
php${PHP_VER_SHORT} php${PHP_VER_SHORT}-common \
php${PHP_VER_SHORT}-cli ; \
/bin/chmod +x /tmp/setup.sh /usr/local/bin/entrypoint.sh ; \
/bin/sh /tmp/setup.sh; \
/bin/rm -f /tmp/*.sh;
ADD htdocs ${SERVER_ROOT}/htdocs
# Create symlinks to /usr/bin/php in case it doesn't exists
RUN ln -ns /usr/bin/php${PHP_VER_SHORT} /usr/bin/php ; exit 0
# CLEAN APK CACHES
RUN sed -i "s|#version#|${PHP_VERSION}|" /app/htdocs/index.html ; \
sed -i "s|#os#|alpine|" /app/htdocs/index.html ; \
sed -i "s|#flavor#|${FLAVOR}|" /app/htdocs/index.html ; \
mkdir -p ${SERVER_ROOT}/logs ${SERVER_ROOT}/run /run/apache2 ; \
ln -s /usr/lib/apache2 ${SERVER_ROOT}/modules ; \
chmod -R 755 ${SERVER_ROOT}/logs ${SERVER_ROOT/run} ; \
chown -R apache:apache ${SERVER_ROOT}/htdocs ${SERVER_ROOT}/logs ${SERVER_ROOT}/run /run/apache2 ; \
rm -vrf /var/cache/apk/*
FROM scratch
ARG PHP_VERSION=5.6
ARG PHP_VER_SHORT=5
ENV PHP_VERSION=${PHP_VERSION}
ENV PHP_VER_SHORT=${PHP_VER_SHORT}
LABEL maintainer="Muhamad Aditya Prima <map@sindigilive.com>"
LABEL name="php"
LABEL version="${PHP_VERSION}"
LABEL distribution-scope="public"
#labels for container catalog
LABEL summary="PHP ${PHP_VERSION} on alpine based container image"
LABEL description="Provide php on alpine based container base image"
LABEL io.k8s.description="Very small alpine linux container image"
LABEL io.k8s.display-name="PHP ${PHP_VERSION}"
COPY --from=builder / /
USER apache
WORKDIR /app/htdocs
STOPSIGNAL SIGQUIT
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]

View File

@ -0,0 +1,75 @@
# PHP 5.6 == 3.6
ARG OS_VERSION=3.6
FROM quay.io/sindigilive/alpine:${OS_VERSION} AS builder
LABEL maintainer="<Muhamad Aditya Prima> map@sindigilive.com"
ARG PHP_VERSION=5.6
ARG PHP_VER_SHORT=5
ARG COMPOSER_VERSION=2.2.25
ENV PHP_VERSION=${PHP_VERSION}
ENV PHP_VER_SHORT=${PHP_VER_SHORT}
ENV COMPOSER_VERSION=${COMPOSER_VERSION}
# Set composer home
ENV COMPOSER_HOME=/app
ENV COMPOSER_CACHE_DIR=${COMPOSER_HOME}/cache
WORKDIR /root
ADD 5/scripts/alpine-composer-setup.sh /tmp/setup.sh
# Create directory, and install required php app
RUN /bin/mkdir -p ${COMPOSER_HOME}/build ${COMPOSER_CACHE_DIR}/files \
${COMPOSER_CACHE_DIR}/repo ${COMPOSER_CACHE_DIR}/vcs ; \
/usr/sbin/addgroup -g 10001 composer ; \
/usr/sbin/adduser -D -u 10001 -G composer -s /sbin/nologin -h ${COMPOSER_HOME}/build composer ; \
/sbin/apk add --update --no-cache \
php${PHP_VER_SHORT} php${PHP_VER_SHORT}-common \
php${PHP_VER_SHORT}-cli ; \
/bin/chown -R composer:composer /app ${COMPOSER_CACHE_DIR} ; \
/bin/chmod +x /tmp/setup.sh; \
/bin/sh /tmp/setup.sh; \
/bin/rm -f /tmp/*.sh;
# Create symlinks to /usr/bin/php in case it doesn't exists
RUN ln -ns /usr/bin/php${PHP_VER_SHORT} /usr/bin/php ; exit 0
# CLEAN APK CACHES
RUN rm -vrf /var/cache/apk/*
FROM scratch
ARG PHP_VERSION=5.6
ARG PHP_VER_SHORT=5
ARG COMPOSER_VERSION=2.2.25
ENV PHP_VERSION=${PHP_VERSION}
ENV PHP_VER_SHORT=${PHP_VER_SHORT}
ENV COMPOSER_VERSION=${COMPOSER_VERSION}
# Set composer home
ENV COMPOSER_HOME=/app
ENV COMPOSER_CACHE_DIR=${COMPOSER_HOME}/cache
LABEL maintainer="Muhamad Aditya Prima <map@sindigilive.com>"
LABEL name="composer"
LABEL version="${COMPOSER_VER_SHORT}"
LABEL distribution-scope="public"
#labels for container catalog
LABEL summary="Composer ${COMPOSER_VER_SHORT} with PHP ${PHP_VERSION} on alpine based container image"
LABEL description="Provide php on alpine based container base image"
LABEL io.k8s.description="Very small alpine linux container image"
LABEL io.k8s.display-name="Composer ${COMPOSER_VER_SHORT}, PHP ${PHP_VERSION}"
COPY --from=builder / /
USER composer
WORKDIR ${COMPOSER_HOME}/build
STOPSIGNAL SIGQUIT
CMD ["/usr/bin/composer", "-V"]

View File

@ -0,0 +1,21 @@
#!/bin/sh
PHP_LIST="bcmath,bz2,calendar,cgi,ctype,
curl,dba,dev,doc,
dom,embed,enchant,exif,ftp,
gd,gettext,gmp,iconv,imap,
intl,json,ldap,mailparse,mcrypt,
memcache,opcache,openssl,pcntl,pdo,
pear,pear-net_socket,phar,phpdbg,
phpmailer,posix,pspell,shmop,
snmp,soap,sockets,sysvmsg,sysvsem,
sysvshm,wddx,xcache,xml,xmlreader,
xmlrpc,xsl,zip,zlib"
PHP_DEPS=""
# Setup php flavor
for i in $(echo $PHP_LIST | tr "," "\n"); do
PHP_DEPS="${PHP_DEPS} php$PHP_VER_SHORT-$i ";
done
/sbin/apk add --update --no-cache $PHP_DEPS;

View File

@ -11,19 +11,56 @@ phpmailer,posix,pspell,shmop,
snmp,soap,sockets,sysvmsg,sysvsem,
sysvshm,wddx,xcache,xml,xmlreader,
xmlrpc,xsl,zip,zlib"
PHP_DEPS=""
# apache2 configurations
SERVER_ROOT="/app"
APP_ROOT="$SERVER_ROOT/htdocs"
LOG_LEVEL="info"
echo $FLAVOR
# Setup php flavor
if [[ "$FLAVOR" == "debug" ]]; then
LOG_LEVEL="debug"
/sbin/apk add --update --no-cache php$PHP_VER_SHORT-dbg;
fi
if [ "$FLAVOR" == "full" ] || [ "$FLAVOR" == "debug" ]; then
for i in $(echo $PHP_LIST | tr "," "\n"); do
PHP_DEPS="${PHP_DEPS} php$PHP_VER_SHORT-$i ";
done
/sbin/apk add --update --no-cache $PHP_DEPS;
/sbin/apk add --update --no-cache $PHP_DEPS;
fi
# Only setup apache with full flavor parameters
if [ "$WITH_APACHE" == "true" ]; then
if [ "$FLAVOR" == "full" ] || [ "$FLAVOR" == "debug" ]; then
/usr/sbin/addgroup -g 10001 apache ;
/usr/sbin/adduser -D -u 10001 -G apache -s /bin/sh -h $APP_ROOT apache ;
/sbin/apk add --update --no-cache apache2 php$PHP_VER_SHORT-apache2 ;
sed -i "s|ServerRoot /var/www|ServerRoot ${SERVER_ROOT}|" /etc/apache2/httpd.conf ;
sed -i "s|ServerAdmin you@example.com| ServerAdmin map@sindigilive.com|" /etc/apache2/httpd.conf ;
sed -i "s|DocumentRoot \"/var/www/localhost/htdocs\"|DocumentRoot \"${APP_ROOT}\"|" /etc/apache2/httpd.conf ;
sed -i "s|Directory \"/var/www/localhost/htdocs\"|Directory \"${APP_ROOT}\"|" /etc/apache2/httpd.conf ;
sed -i "s|AllowOverride None|AllowOverride All|" /etc/apache2/httpd.conf ;
sed -i "s|ErrorLog .*|ErrorLog /dev/stderr \nTransferLog /dev/stdout|" /etc/apache2/httpd.conf ;
sed -i "s|CustomLog .* combined|CustomLog /dev/stdout combined|" /etc/apache2/httpd.conf ;
sed -i "s|LogLevel .*|LogLevel ${LOG_LEVEL}|" /etc/apache2/httpd.conf ;
sed -i "s|#LoadModule rewrite_module|LoadModule rewrite_module|" /etc/apache2/httpd.conf ;
sed -i "s|#LoadModule deflate_module|LoadModule deflate_module|" /etc/apache2/httpd.conf ;
sed -i "s|#LoadModule expires_module|LoadModule expires_module|" /etc/apache2/httpd.conf ;
sed -i "s|/var/www/localhost/cgi-bin/|/app/cgi-bin/|" /etc/apache2/httpd.conf ;
sed -i "s|Require host .example.com|#Require host .example.com|" /etc/apache2/conf.d/info.conf ;
sed -i "s|Require ip 127|Require all granted|" /etc/apache2/conf.d/info.conf ;
sed -i "s|/run/apache2/httpd.pid|${SERVER_ROOT}/run/httpd.pid|" /etc/apache2/conf.d/mpm.conf ;
fi
fi
if ["$WITH_DATABASE" == "postgresql"]; then
/sbin/apk add --update --no-cache php$PHP_VER_SHORT-pdo php$PHP_VER_SHORT-pdo_pgsql php$PHP_VER_SHORT-pgsql ;
fi
if ["$WITH_DATABASE" == "mysql"]; then
/sbin/apk add --update --no-cache php$PHP_VER_SHORT-pdo php$PHP_VER_SHORT-pdo_mysql php$PHP_VER_SHORT-mysql php$PHP_VER_SHORT-mysqli ;
fi

View File

@ -12,15 +12,15 @@
</head>
<body>
<h1>Welcome to httpd!</h1>
<h2>The aprimediet/php:version-apache variant.</h2>
<h2>The sindigilive/php:#version#-apache-#flavor#-#os# variant.</h2>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>
<p>For online documentation and support please refer to
<a href="https://httpd.apache.org/">httpd.apache.org</a>.</p>
<p>For online documentation specific to the aprimediet/php:version-apache,<br/>
please refer to <a href="https://github.com/aprimediet/docker-php">aprimediet/php</a>.</p>
<p>For online documentation specific to the sindigilive/php:#version#-apache-#flavor#-#os# variant,<br/>
please refer to <a href="https://github.com/aprimediet/docker-php">sindigilive/php</a>.</p>
<p><em>Thank you for using httpd.</em></p>
</body>

View File

@ -1,7 +1,9 @@
#!/bin/sh
echo "##########################"
echo "# Apache2 is starting up #"
echo "##########################"
/bin/echo "### PHP version :$PHP_VERSION ###";
/bin/echo "### Maintainer: map@sindigilive.com ###";
/bin/echo "";
/bin/echo "### Starting HTTPD Server ###";
/bin/echo "";
httpd -D FOREGROUND