File tree 3 files changed +47
-41
lines changed
3 files changed +47
-41
lines changed Original file line number Diff line number Diff line change 1
- name : Build Docker image
2
-
3
- on :
4
- push :
5
- branches :
6
- - ' *'
7
-
8
- jobs :
9
- build :
10
- name : Build
11
- runs-on : ubuntu-latest
12
- steps :
13
- - name : Build
14
- uses : docker/build-push-action@v3
15
- with :
16
- push : false
1
+ name : Build Docker image
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' *'
7
+ pull_request :
8
+ # The branches below must be a subset of the branches above
9
+ branches : [ "main" ]
10
+
11
+ jobs :
12
+ build :
13
+ name : Build
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Build
17
+ uses : docker/build-push-action@v3
18
+ with :
19
+ push : false
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ RUN apt-get update \
14
14
15
15
# Install php packages and configure php.ini
16
16
RUN echo 'memory_limit=256M' > /usr/local/etc/php/conf.d/memory-limit.ini
17
+ RUN docker-php-ext-configure gd --with-freetype --with-jpeg
17
18
RUN docker-php-ext-install intl gd opcache pdo_mysql pdo_pgsql zip
18
19
RUN pecl install pcov xdebug \
19
20
&& docker-php-ext-enable pcov xdebug
@@ -26,9 +27,9 @@ COPY install_composer.sh install_composer.sh
26
27
RUN sh install_composer.sh \
27
28
&& mv composer.phar /usr/local/bin/composer
28
29
29
- RUN wget https://github.com/fabpot/local-php-security-checker/releases/download/v1.2.0 /local-php-security-checker_1.2.0_linux_amd64 \
30
- && chmod +x local-php-security-checker_1.2.0_linux_amd64 \
31
- && mv local-php-security-checker_1.2.0_linux_amd64 /usr/local/bin/local-php-security-checker
30
+ RUN wget https://github.com/fabpot/local-php-security-checker/releases/download/v2.0.6 /local-php-security-checker_2.0.6_linux_amd64 \
31
+ && chmod +x local-php-security-checker_2.0.6_linux_amd64 \
32
+ && mv local-php-security-checker_2.0.6_linux_amd64 /usr/local/bin/local-php-security-checker
32
33
33
34
# Ansistrano roles for deployment
34
35
RUN ansible-galaxy install ansistrano.deploy ansistrano.rollback
Original file line number Diff line number Diff line change 1
- ![ example workflow] ( https://github.com/appsinet/php_development/actions/workflows/publish.yml/badge.svg )
2
- # php_development
3
- A Docker image based on official PHP, with some extras for development / CI.
4
-
5
- ## PHP Modules
6
- - iconv
7
- - intl
8
- - json
9
- - mbstring
10
- - opcache
11
- - pcov
12
- - pdo_mysql
13
- - pdo_pgsql
14
- - xdebug
15
- - xml
16
- - zip
17
-
18
- ## Utilities
19
- - composer
20
- - postgresql-client
21
- - local-php-security-checker
22
- - mariadb-client
1
+ ![ example workflow] ( https://github.com/appsinet/php_development/actions/workflows/publish.yml/badge.svg )
2
+ # php_development
3
+ A Docker image based on official PHP, with some extras for development / CI.
4
+
5
+ ## PHP Modules
6
+ - intl
7
+ - gd
8
+ - opcache
9
+ - pcov
10
+ - pdo_mysql
11
+ - pdo_pgsql
12
+ - xdebug
13
+ - zip
14
+
15
+ ## Utilities
16
+ - ansible
17
+ - ansible-lint
18
+ - ansistrano
19
+ - composer
20
+ - local-php-security-checker
21
+ - mariadb-client
22
+ - node 18
23
+ - postgresql-client
24
+ - sentry cli
You can’t perform that action at this time.
0 commit comments