Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 19 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
name: Build Docker image

on:
push:
branches:
- '*'

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Build
uses: docker/build-push-action@v3
with:
push: false
name: Build Docker image

on:
push:
branches:
- '*'
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Build
uses: docker/build-push-action@v3
with:
push: false
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN apt-get update \

# Install php packages and configure php.ini
RUN echo 'memory_limit=256M' > /usr/local/etc/php/conf.d/memory-limit.ini
RUN docker-php-ext-configure gd --with-freetype --with-jpeg
RUN docker-php-ext-install intl gd opcache pdo_mysql pdo_pgsql zip
RUN pecl install pcov xdebug \
&& docker-php-ext-enable pcov xdebug
Expand All @@ -26,9 +27,9 @@ COPY install_composer.sh install_composer.sh
RUN sh install_composer.sh \
&& mv composer.phar /usr/local/bin/composer

RUN wget https://github.com/fabpot/local-php-security-checker/releases/download/v1.2.0/local-php-security-checker_1.2.0_linux_amd64 \
&& chmod +x local-php-security-checker_1.2.0_linux_amd64 \
&& mv local-php-security-checker_1.2.0_linux_amd64 /usr/local/bin/local-php-security-checker
RUN wget https://github.com/fabpot/local-php-security-checker/releases/download/v2.0.6/local-php-security-checker_2.0.6_linux_amd64 \
&& chmod +x local-php-security-checker_2.0.6_linux_amd64 \
&& mv local-php-security-checker_2.0.6_linux_amd64 /usr/local/bin/local-php-security-checker

# Ansistrano roles for deployment
RUN ansible-galaxy install ansistrano.deploy ansistrano.rollback
Expand Down
46 changes: 24 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
![example workflow](https://github.com/appsinet/php_development/actions/workflows/publish.yml/badge.svg)
# php_development
A Docker image based on official PHP, with some extras for development / CI.

## PHP Modules
- iconv
- intl
- json
- mbstring
- opcache
- pcov
- pdo_mysql
- pdo_pgsql
- xdebug
- xml
- zip

## Utilities
- composer
- postgresql-client
- local-php-security-checker
- mariadb-client
![example workflow](https://github.com/appsinet/php_development/actions/workflows/publish.yml/badge.svg)
# php_development
A Docker image based on official PHP, with some extras for development / CI.

## PHP Modules
- intl
- gd
- opcache
- pcov
- pdo_mysql
- pdo_pgsql
- xdebug
- zip

## Utilities
- ansible
- ansible-lint
- ansistrano
- composer
- local-php-security-checker
- mariadb-client
- node 18
- postgresql-client
- sentry cli