Skip to content

Commit

Permalink
feat: merge docker-php-prod with docker-php-base
Browse files Browse the repository at this point in the history
  • Loading branch information
lotyp committed May 15, 2023
1 parent 9598307 commit 2cad279
Show file tree
Hide file tree
Showing 62 changed files with 394 additions and 2,164 deletions.
110 changes: 0 additions & 110 deletions .github/workflows/ci.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/upload-assets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---

# https://github.com/google-github-actions/release-please-action#release-types-supported

on: # yamllint disable-line rule:truthy
push:
tags:
- "v*.*.*"

name: 📤 Upload artifacts

jobs:
upload-artifacts:
runs-on: ubuntu-latest
steps:
- name: 📦 Check out the codebase
uses: actions/checkout@v3

- name: 🚀 Generate dist files
run: make generate

- name: 🗜️ Archive dist files
run: tar -czvf dist.tar.gz dist

- name: 📤 Upload release assets
uses: alexellis/upload-assets@0.4.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_paths: '["./dist.tar.gz"]'

...
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.idea
dist
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# to decrease build times and increase productivity for free.
# https://docs.docker.com/compose/environment-variables/envvars/
export DOCKER_BUILDKIT ?= 1
export COMPOSE_DOCKER_CLI_BUILD ?= 1

IMAGE_NAMESPACE ?= wayofdev/php-base
IMAGE_TEMPLATE ?= 7.4-cli-alpine
Expand Down
45 changes: 43 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,20 @@ Enabled extensions by default:
| [pcntl](https://www.php.net/manual/en/book.pcntl.php) | Process control | native |
| [sockets](https://www.php.net/manual/en/book.sockets.php) | Socket communication functions | native |
| [pdo_pgsql](https://www.php.net/manual/en/ref.pdo-pgsql.php) | PostgreSQL functions | native |
| [pdo_mysql](https://www.php.net/manual/en/ref.pdo-mysql.php) | Mysql functions | native |
| [opcache](https://www.php.net/manual/en/book.opcache.php) | Improves PHP performance by storing precompiled script bytecode in shared memory | native |
| [zip](https://www.php.net/manual/en/book.zip.php) | Read/write functions for ZIP archives | native |
| [bcmath](https://www.php.net/manual/en/book.bc.php) | For arbitrary precision mathematics | native |
| [exif](https://www.php.net/manual/en/book.exif.php) | Exchangeable image information | native |
| [gd](https://www.php.net/manual/en/book.image.php) | Image processing and manipulation library | native |
| [soap](https://www.php.net/manual/en/book.soap.php) | SOAP (Simple Object Access Protocol) functions | native |
| [redis](https://pecl.php.net/package/redis) | Functions for interfacing with Redis | pecl |
| [decimal](https://pecl.php.net/package/decimal) | Arbitrary precision floating-point decimal | pecl |
| [imagick](https://pecl.php.net/package/imagick) | ImageMagick library for image manipulation | pecl |
| [rdkafka](https://pecl.php.net/package/rdkafka) | Kafka client library for PHP | pecl |
| [amqp](https://pecl.php.net/package/amqp) | Advanced Message Queuing Protocol (AMQP) library | pecl |
| [protobuf](https://pecl.php.net/package/protobuf) | Protocol Buffers serialization format library | pecl |
| [yaml](https://pecl.php.net/package/yaml) | YAML (YAML Ain't Markup Language) library | pecl |

<br>

Expand Down Expand Up @@ -67,18 +76,32 @@ ext_native_enabled:
- intl
- pcntl
- sockets
- pdo_mysql
- pdo_pgsql
- OPcache
- zip
- bcmath
- exif
- gd
- soap

ext_pecl_enabled:
- redis
- decimal
- imagick
- rdkafka
- amqp
- protobuf
- yaml

ext_pecl_versions:
redis: "5.3.7"
decimal: "1.4.0"
imagick: "3.7.0"
rdkafka: "6.0.3"
amqp: "1.11.0"
protobuf: "3.22.5"
yaml: "2.2.3"
```
<br>
Expand Down Expand Up @@ -129,10 +152,16 @@ Building all images:
```bash
$ make build IMAGE_TEMPLATE="7.4-cli-alpine"
$ make build IMAGE_TEMPLATE="7.4-fpm-alpine"
$ make build IMAGE_TEMPLATE="7.4-supervisord-alpine"
$ make build IMAGE_TEMPLATE="8.0-cli-alpine"
$ make build IMAGE_TEMPLATE="8.0-fpm-alpine"
$ make build IMAGE_TEMPLATE="8.0-supervisord-alpine"
$ make build IMAGE_TEMPLATE="8.1-cli-alpine"
$ make build IMAGE_TEMPLATE="8.1-fpm-alpine"
$ make build IMAGE_TEMPLATE="8.1-supervisord-alpine"
$ make build IMAGE_TEMPLATE="8.2-cli-alpine"
$ make build IMAGE_TEMPLATE="8.2-fpm-alpine"
$ make build IMAGE_TEMPLATE="8.2-supervisord-alpine"
```

<br>
Expand All @@ -152,10 +181,16 @@ To test all images:
```bash
$ make test IMAGE_TEMPLATE="7.4-cli-alpine"
$ make test IMAGE_TEMPLATE="7.4-fpm-alpine"
$ make test IMAGE_TEMPLATE="7.4-supervisord-alpine"
$ make test IMAGE_TEMPLATE="8.0-cli-alpine"
$ make test IMAGE_TEMPLATE="8.0-fpm-alpine"
$ make test IMAGE_TEMPLATE="8.0-supervisord-alpine"
$ make test IMAGE_TEMPLATE="8.1-cli-alpine"
$ make test IMAGE_TEMPLATE="8.1-fpm-alpine"
$ make test IMAGE_TEMPLATE="8.1-supervisord-alpine"
$ make test IMAGE_TEMPLATE="8.2-cli-alpine"
$ make test IMAGE_TEMPLATE="8.2-fpm-alpine"
$ make test IMAGE_TEMPLATE="8.2-supervisord-alpine"
```

<br>
Expand All @@ -165,13 +200,19 @@ $ make test IMAGE_TEMPLATE="8.1-fpm-alpine"
Run **yamllint** to validate all yaml files in project:

```bash
$ make lint
$ make lint-yaml
```

Run hadolint to validate created Dockerfiles:

```bash
$ make hadolint
$ make lint-docker
```

Run ansible-lint to validate ansible project files:

```bash
$ make lint-ansible
```

<br>
Expand Down
79 changes: 0 additions & 79 deletions dist/base/7.4-cli-alpine/Dockerfile

This file was deleted.

8 changes: 0 additions & 8 deletions dist/base/7.4-cli-alpine/configs/opcache.ini

This file was deleted.

25 changes: 0 additions & 25 deletions dist/base/7.4-cli-alpine/configs/php.ini

This file was deleted.

Loading

0 comments on commit 2cad279

Please sign in to comment.