Skip to content

Commit

Permalink
Configure php-gd extension (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmata authored Jan 29, 2023
1 parent dd4506d commit 761f4f8
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 41 deletions.
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

0 comments on commit 761f4f8

Please sign in to comment.