mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2025-12-19 15:31:15 +00:00
Compare commits
23 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cb046ddd2b | ||
|
|
e687ad15f2 | ||
|
|
70e3fc68ba | ||
|
|
e6564db96d | ||
|
|
b90a13482d | ||
|
|
397175aec8 | ||
|
|
90f5abc2fd | ||
|
|
79f087e21a | ||
|
|
b08e7d5c02 | ||
|
|
0a71f838f2 | ||
|
|
7e3db52406 | ||
|
|
05d8edb2fe | ||
|
|
a671401bf2 | ||
|
|
0d11c229d4 | ||
|
|
20f87ad3ce | ||
|
|
8a7ca18897 | ||
|
|
59b1197c75 | ||
|
|
12e51113a6 | ||
|
|
40c2db6633 | ||
|
|
b4bfb84dcf | ||
|
|
b7a52ff1bd | ||
|
|
9df90b3500 | ||
|
|
0bdc196f43 |
2
.github/workflows/action-schedule_master.yml
vendored
2
.github/workflows/action-schedule_master.yml
vendored
@@ -35,7 +35,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
enabled: true
|
enabled: true
|
||||||
can_deploy: true
|
can_deploy: true
|
||||||
is_scheduled: true
|
|
||||||
versions: ${{ needs.params.outputs.versions }}
|
versions: ${{ needs.params.outputs.versions }}
|
||||||
refs: ${{ needs.params.outputs.refs }}
|
refs: ${{ needs.params.outputs.refs }}
|
||||||
secrets:
|
secrets:
|
||||||
@@ -54,6 +53,7 @@ jobs:
|
|||||||
has_refs: ${{ needs.configure.outputs.has_refs == 'true' }}
|
has_refs: ${{ needs.configure.outputs.has_refs == 'true' }}
|
||||||
run_tests: false
|
run_tests: false
|
||||||
upload_artifact: true
|
upload_artifact: true
|
||||||
|
pull_base_image: true
|
||||||
matrix: ${{ needs.configure.outputs.matrix_build }}
|
matrix: ${{ needs.configure.outputs.matrix_build }}
|
||||||
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
|
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
|
||||||
stage: base
|
stage: base
|
||||||
|
|||||||
2
.github/workflows/action-schedule_tags.yml
vendored
2
.github/workflows/action-schedule_tags.yml
vendored
@@ -35,7 +35,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
enabled: true
|
enabled: true
|
||||||
can_deploy: true
|
can_deploy: true
|
||||||
is_scheduled: true
|
|
||||||
versions: ${{ needs.params.outputs.versions }}
|
versions: ${{ needs.params.outputs.versions }}
|
||||||
refs: ${{ needs.params.outputs.refs }}
|
refs: ${{ needs.params.outputs.refs }}
|
||||||
secrets:
|
secrets:
|
||||||
@@ -54,6 +53,7 @@ jobs:
|
|||||||
has_refs: ${{ needs.configure.outputs.has_refs == 'true' }}
|
has_refs: ${{ needs.configure.outputs.has_refs == 'true' }}
|
||||||
run_tests: false
|
run_tests: false
|
||||||
upload_artifact: true
|
upload_artifact: true
|
||||||
|
pull_base_image: true
|
||||||
matrix: ${{ needs.configure.outputs.matrix_build }}
|
matrix: ${{ needs.configure.outputs.matrix_build }}
|
||||||
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
|
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
|
||||||
stage: base
|
stage: base
|
||||||
|
|||||||
2
.github/workflows/action.yml
vendored
2
.github/workflows/action.yml
vendored
@@ -35,7 +35,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
enabled: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && (github.event.pull_request.user.login != 'cytopia')) }}
|
enabled: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && (github.event.pull_request.user.login != 'cytopia')) }}
|
||||||
can_deploy: ${{ (github.repository == 'devilbox/docker-php-fpm') && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-')) }}
|
can_deploy: ${{ (github.repository == 'devilbox/docker-php-fpm') && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-')) }}
|
||||||
is_scheduled: false
|
|
||||||
versions: ${{ needs.params.outputs.versions }}
|
versions: ${{ needs.params.outputs.versions }}
|
||||||
refs: ${{ needs.params.outputs.refs }}
|
refs: ${{ needs.params.outputs.refs }}
|
||||||
secrets:
|
secrets:
|
||||||
@@ -54,6 +53,7 @@ jobs:
|
|||||||
has_refs: ${{ needs.configure.outputs.has_refs == 'true' }}
|
has_refs: ${{ needs.configure.outputs.has_refs == 'true' }}
|
||||||
run_tests: false
|
run_tests: false
|
||||||
upload_artifact: true
|
upload_artifact: true
|
||||||
|
pull_base_image: true
|
||||||
matrix: ${{ needs.configure.outputs.matrix_build }}
|
matrix: ${{ needs.configure.outputs.matrix_build }}
|
||||||
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
|
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
|
||||||
stage: base
|
stage: base
|
||||||
|
|||||||
6
.github/workflows/params-nightly_master.yml
vendored
6
.github/workflows/params-nightly_master.yml
vendored
@@ -61,9 +61,11 @@ jobs:
|
|||||||
- name: "[Set-Output] jsonify VERSIONS"
|
- name: "[Set-Output] jsonify VERSIONS"
|
||||||
id: set-versions
|
id: set-versions
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=versions::$( echo '${{ env.VERSIONS }}' | jq -M -c )"
|
VERSIONS="$( echo '${{ env.VERSIONS }}' | jq -M -c )"
|
||||||
|
echo "versions=${VERSIONS}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: "[Set-Output] jsonify REFS"
|
- name: "[Set-Output] jsonify REFS"
|
||||||
id: set-refs
|
id: set-refs
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=refs::$( echo '${{ env.REFS }}' | jq -M -c )"
|
REFS="$( echo '${{ env.REFS }}' | jq -M -c )"
|
||||||
|
echo "refs=${REFS}" >> $GITHUB_OUTPUT
|
||||||
|
|||||||
6
.github/workflows/params-nightly_tags.yml
vendored
6
.github/workflows/params-nightly_tags.yml
vendored
@@ -61,9 +61,11 @@ jobs:
|
|||||||
- name: "[Set-Output] jsonify VERSIONS"
|
- name: "[Set-Output] jsonify VERSIONS"
|
||||||
id: set-versions
|
id: set-versions
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=versions::$( echo '${{ env.VERSIONS }}' | jq -M -c )"
|
VERSIONS="$( echo '${{ env.VERSIONS }}' | jq -M -c )"
|
||||||
|
echo "versions=${VERSIONS}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: "[Set-Output] jsonify REFS"
|
- name: "[Set-Output] jsonify REFS"
|
||||||
id: set-refs
|
id: set-refs
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=refs::$( echo '${{ env.REFS }}' | jq -M -c )"
|
REFS="$( echo '${{ env.REFS }}' | jq -M -c )"
|
||||||
|
echo "refs=${REFS}" >> $GITHUB_OUTPUT
|
||||||
|
|||||||
6
.github/workflows/params.yml
vendored
6
.github/workflows/params.yml
vendored
@@ -61,9 +61,11 @@ jobs:
|
|||||||
- name: "[Set-Output] jsonify VERSIONS"
|
- name: "[Set-Output] jsonify VERSIONS"
|
||||||
id: set-versions
|
id: set-versions
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=versions::$( echo '${{ env.VERSIONS }}' | jq -M -c )"
|
VERSIONS="$( echo '${{ env.VERSIONS }}' | jq -M -c )"
|
||||||
|
echo "versions=${VERSIONS}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: "[Set-Output] jsonify REFS"
|
- name: "[Set-Output] jsonify REFS"
|
||||||
id: set-refs
|
id: set-refs
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=refs::$( echo '${{ env.REFS }}' | jq -M -c )"
|
REFS="$( echo '${{ env.REFS }}' | jq -M -c )"
|
||||||
|
echo "refs=${REFS}" >> $GITHUB_OUTPUT
|
||||||
|
|||||||
20
CHANGELOG.md
20
CHANGELOG.md
@@ -4,6 +4,26 @@
|
|||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
|
||||||
|
## Release 0.143
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Added `phalcon` 5.x to PHP 8.0 and PHP 8.1
|
||||||
|
|
||||||
|
|
||||||
|
## Release 0.142
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Fixed `phalcon` module
|
||||||
|
- Fixed `swoole` module
|
||||||
|
- Fixed installation of wkhtmltopdf [#245](https://github.com/devilbox/docker-php-fpm/pull/245)
|
||||||
|
- FIxed installation of drupalconsole [#246](https://github.com/devilbox/docker-php-fpm/pull/246)
|
||||||
|
- Fixed installation of symfoni cli [#247](https://github.com/devilbox/docker-php-fpm/pull/247)
|
||||||
|
- Fixed installation of NodeJS
|
||||||
|
- Fixed installation of PostgreSQL client for PHP 5.6
|
||||||
|
- Fixed installation of PostgreSQL client for PHP 7.0
|
||||||
|
- Disabled Phalcon Devtools for PHP 7.4 as it breaks
|
||||||
|
|
||||||
|
|
||||||
## Release 0.141
|
## Release 0.141
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -534,12 +534,12 @@ RUN set -eux \
|
|||||||
|
|
||||||
# -------------------- Installing PHP Extension: phalcon --------------------
|
# -------------------- Installing PHP Extension: phalcon --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Generic
|
# Installation: Version specific
|
||||||
# Type: GIT extension
|
# Type: GIT extension
|
||||||
&& git clone https://github.com/phalcon/cphalcon /tmp/phalcon \
|
&& git clone https://github.com/phalcon/cphalcon /tmp/phalcon \
|
||||||
&& cd /tmp/phalcon \
|
&& cd /tmp/phalcon \
|
||||||
# Custom: Branch
|
# Custom: Branch
|
||||||
&& git checkout $(git for-each-ref --format='%(*creatordate:raw)%(creatordate:raw) %(refname)' refs/tags | sort -n | sed 's/^.*tags\///g' | grep -E '^v[.0-9]+$' | tail -1) \
|
&& git checkout v4.1.1 \
|
||||||
# Custom: Install command
|
# Custom: Install command
|
||||||
&& cd build && ./install \
|
&& cd build && ./install \
|
||||||
# Enabling
|
# Enabling
|
||||||
@@ -807,10 +807,10 @@ RUN set -eux \
|
|||||||
|
|
||||||
# -------------------- Installing PHP Extension: swoole --------------------
|
# -------------------- Installing PHP Extension: swoole --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Generic
|
# Installation: Version specific
|
||||||
# Type: PECL extension
|
# Type: PECL extension
|
||||||
# Custom: Pecl command
|
# Default: Pecl command
|
||||||
&& pecl install -D 'enable-sockets="no" enable-openssl="yes" enable-http2="yes" enable-mysqlnd="yes" enable-swoole-json="no" enable-swoole-curl="yes" enable-cares="yes" with-postgres="yes"' swoole \
|
&& pecl install swoole-4.8.12 \
|
||||||
# Enabling
|
# Enabling
|
||||||
&& docker-php-ext-enable swoole \
|
&& docker-php-ext-enable swoole \
|
||||||
&& true
|
&& true
|
||||||
|
|||||||
@@ -524,12 +524,12 @@ RUN set -eux \
|
|||||||
|
|
||||||
# -------------------- Installing PHP Extension: phalcon --------------------
|
# -------------------- Installing PHP Extension: phalcon --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Generic
|
# Installation: Version specific
|
||||||
# Type: GIT extension
|
# Type: GIT extension
|
||||||
&& git clone https://github.com/phalcon/cphalcon /tmp/phalcon \
|
&& git clone https://github.com/phalcon/cphalcon /tmp/phalcon \
|
||||||
&& cd /tmp/phalcon \
|
&& cd /tmp/phalcon \
|
||||||
# Custom: Branch
|
# Custom: Branch
|
||||||
&& git checkout $(git for-each-ref --format='%(*creatordate:raw)%(creatordate:raw) %(refname)' refs/tags | sort -n | sed 's/^.*tags\///g' | grep -E '^v[.0-9]+$' | tail -1) \
|
&& git checkout v4.1.2 \
|
||||||
# Custom: Install command
|
# Custom: Install command
|
||||||
&& cd build && ./install \
|
&& cd build && ./install \
|
||||||
# Enabling
|
# Enabling
|
||||||
@@ -797,10 +797,10 @@ RUN set -eux \
|
|||||||
|
|
||||||
# -------------------- Installing PHP Extension: swoole --------------------
|
# -------------------- Installing PHP Extension: swoole --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Generic
|
# Installation: Version specific
|
||||||
# Type: PECL extension
|
# Type: PECL extension
|
||||||
# Custom: Pecl command
|
# Default: Pecl command
|
||||||
&& pecl install -D 'enable-sockets="no" enable-openssl="yes" enable-http2="yes" enable-mysqlnd="yes" enable-swoole-json="no" enable-swoole-curl="yes" enable-cares="yes" with-postgres="yes"' swoole \
|
&& pecl install swoole-4.8.12 \
|
||||||
# Enabling
|
# Enabling
|
||||||
&& docker-php-ext-enable swoole \
|
&& docker-php-ext-enable swoole \
|
||||||
&& true
|
&& true
|
||||||
|
|||||||
@@ -783,10 +783,10 @@ RUN set -eux \
|
|||||||
|
|
||||||
# -------------------- Installing PHP Extension: swoole --------------------
|
# -------------------- Installing PHP Extension: swoole --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Generic
|
# Installation: Version specific
|
||||||
# Type: PECL extension
|
# Type: PECL extension
|
||||||
# Custom: Pecl command
|
# Default: Pecl command
|
||||||
&& pecl install -D 'enable-sockets="no" enable-openssl="yes" enable-http2="yes" enable-mysqlnd="yes" enable-swoole-json="no" enable-swoole-curl="yes" enable-cares="yes" with-postgres="yes"' swoole \
|
&& pecl install swoole-4.8.12 \
|
||||||
# Enabling
|
# Enabling
|
||||||
&& docker-php-ext-enable swoole \
|
&& docker-php-ext-enable swoole \
|
||||||
&& true
|
&& true
|
||||||
|
|||||||
@@ -505,6 +505,21 @@ RUN set -eux \
|
|||||||
&& true
|
&& true
|
||||||
|
|
||||||
|
|
||||||
|
# -------------------- Installing PHP Extension: phalcon --------------------
|
||||||
|
RUN set -eux \
|
||||||
|
# Installation: Generic
|
||||||
|
# Type: GIT extension
|
||||||
|
&& git clone https://github.com/phalcon/cphalcon /tmp/phalcon \
|
||||||
|
&& cd /tmp/phalcon \
|
||||||
|
# Custom: Branch
|
||||||
|
&& git checkout $(git for-each-ref --format='%(*creatordate:raw)%(creatordate:raw) %(refname)' refs/tags | sort -n | sed 's/^.*tags\///g' | grep -E '^v[.0-9]+$' | tail -1) \
|
||||||
|
# Custom: Install command
|
||||||
|
&& cd build && ./install \
|
||||||
|
# Enabling
|
||||||
|
&& docker-php-ext-enable phalcon \
|
||||||
|
&& true
|
||||||
|
|
||||||
|
|
||||||
# -------------------- Installing PHP Extension: pspell --------------------
|
# -------------------- Installing PHP Extension: pspell --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Generic
|
# Installation: Generic
|
||||||
@@ -989,6 +1004,8 @@ RUN set -eux \
|
|||||||
&& php-fpm -m | grep -oiE '^pgsql$' \
|
&& php-fpm -m | grep -oiE '^pgsql$' \
|
||||||
&& php -m | grep -oiE '^psr$' \
|
&& php -m | grep -oiE '^psr$' \
|
||||||
&& php-fpm -m | grep -oiE '^psr$' \
|
&& php-fpm -m | grep -oiE '^psr$' \
|
||||||
|
&& php -m | grep -oiE '^phalcon$' \
|
||||||
|
&& php-fpm -m | grep -oiE '^phalcon$' \
|
||||||
&& php -m | grep -oiE '^phar$' \
|
&& php -m | grep -oiE '^phar$' \
|
||||||
&& php-fpm -m | grep -oiE '^phar$' \
|
&& php-fpm -m | grep -oiE '^phar$' \
|
||||||
&& php -m | grep -oiE '^posix$' \
|
&& php -m | grep -oiE '^posix$' \
|
||||||
|
|||||||
@@ -483,6 +483,21 @@ RUN set -eux \
|
|||||||
&& true
|
&& true
|
||||||
|
|
||||||
|
|
||||||
|
# -------------------- Installing PHP Extension: phalcon --------------------
|
||||||
|
RUN set -eux \
|
||||||
|
# Installation: Generic
|
||||||
|
# Type: GIT extension
|
||||||
|
&& git clone https://github.com/phalcon/cphalcon /tmp/phalcon \
|
||||||
|
&& cd /tmp/phalcon \
|
||||||
|
# Custom: Branch
|
||||||
|
&& git checkout $(git for-each-ref --format='%(*creatordate:raw)%(creatordate:raw) %(refname)' refs/tags | sort -n | sed 's/^.*tags\///g' | grep -E '^v[.0-9]+$' | tail -1) \
|
||||||
|
# Custom: Install command
|
||||||
|
&& cd build && ./install \
|
||||||
|
# Enabling
|
||||||
|
&& docker-php-ext-enable phalcon \
|
||||||
|
&& true
|
||||||
|
|
||||||
|
|
||||||
# -------------------- Installing PHP Extension: pspell --------------------
|
# -------------------- Installing PHP Extension: pspell --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Generic
|
# Installation: Generic
|
||||||
@@ -974,6 +989,8 @@ RUN set -eux \
|
|||||||
&& php-fpm -m | grep -oiE '^pgsql$' \
|
&& php-fpm -m | grep -oiE '^pgsql$' \
|
||||||
&& php -m | grep -oiE '^psr$' \
|
&& php -m | grep -oiE '^psr$' \
|
||||||
&& php-fpm -m | grep -oiE '^psr$' \
|
&& php-fpm -m | grep -oiE '^psr$' \
|
||||||
|
&& php -m | grep -oiE '^phalcon$' \
|
||||||
|
&& php-fpm -m | grep -oiE '^phalcon$' \
|
||||||
&& php -m | grep -oiE '^phar$' \
|
&& php -m | grep -oiE '^phar$' \
|
||||||
&& php-fpm -m | grep -oiE '^phar$' \
|
&& php-fpm -m | grep -oiE '^phar$' \
|
||||||
&& php -m | grep -oiE '^posix$' \
|
&& php -m | grep -oiE '^posix$' \
|
||||||
|
|||||||
@@ -148,6 +148,8 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- nvm --------------------
|
# -------------------- nvm --------------------
|
||||||
|
&& NODE_VERSION="17" \
|
||||||
|
\
|
||||||
&& NVM_VERSION="$( \
|
&& NVM_VERSION="$( \
|
||||||
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
||||||
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
||||||
@@ -156,8 +158,7 @@ RUN set -eux \
|
|||||||
| tail -1 \
|
| tail -1 \
|
||||||
)" \
|
)" \
|
||||||
&& mkdir -p /opt/nvm \
|
&& mkdir -p /opt/nvm \
|
||||||
\
|
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
||||||
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
|
||||||
| NVM_DIR="/opt/nvm" bash \
|
| NVM_DIR="/opt/nvm" bash \
|
||||||
\
|
\
|
||||||
&& { \
|
&& { \
|
||||||
@@ -168,9 +169,9 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
&& chown -R devilbox:devilbox "/opt/nvm" \
|
&& chown -R devilbox:devilbox "/opt/nvm" \
|
||||||
\
|
\
|
||||||
&& su -c '. /opt/nvm/nvm.sh; nvm install --lts' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; nvm install ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. /opt/nvm/nvm.sh; nvm use --lts' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; nvm use ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. /opt/nvm/nvm.sh; corepack enable' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; corepack enable" devilbox \
|
||||||
\
|
\
|
||||||
&& chmod 0777 /opt/nvm \
|
&& chmod 0777 /opt/nvm \
|
||||||
&& find /opt/nvm -type f -print0 | xargs -n1 -0 chmod go+w \
|
&& find /opt/nvm -type f -print0 | xargs -n1 -0 chmod go+w \
|
||||||
@@ -264,12 +265,12 @@ fi \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- wkhtmltopdf --------------------
|
# -------------------- wkhtmltopdf --------------------
|
||||||
&& VERSION="$( curl -sSL -L --fail https://github.com/wkhtmltopdf/wkhtmltopdf/releases | grep -Eo '/wkhtmltopdf/.+jessie_amd64\.deb' | head -1 )" \
|
&& VERSION="$(curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/wkhtmltopdf/releases | awk -F\" '/wkhtmltopdf.*.jessie_amd64\.deb/{print $(NF-1)}' | head -1 )" \
|
||||||
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
||||||
libfontenc1 libxfont1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
libfontenc1 libxfont1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
||||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb https://github.com/${VERSION} \
|
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb ${VERSION} \
|
||||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||||
&& rm -f /tmp/wkhtmltopdf.deb; \
|
&& rm -f /tmp/wkhtmltopdf.deb; \
|
||||||
fi \
|
fi \
|
||||||
|
|||||||
@@ -160,6 +160,8 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- nvm --------------------
|
# -------------------- nvm --------------------
|
||||||
|
&& NODE_VERSION="17" \
|
||||||
|
\
|
||||||
&& NVM_VERSION="$( \
|
&& NVM_VERSION="$( \
|
||||||
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
||||||
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
||||||
@@ -168,8 +170,7 @@ RUN set -eux \
|
|||||||
| tail -1 \
|
| tail -1 \
|
||||||
)" \
|
)" \
|
||||||
&& mkdir -p /opt/nvm \
|
&& mkdir -p /opt/nvm \
|
||||||
\
|
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
||||||
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
|
||||||
| NVM_DIR="/opt/nvm" bash \
|
| NVM_DIR="/opt/nvm" bash \
|
||||||
\
|
\
|
||||||
&& { \
|
&& { \
|
||||||
@@ -180,9 +181,9 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
&& chown -R devilbox:devilbox "/opt/nvm" \
|
&& chown -R devilbox:devilbox "/opt/nvm" \
|
||||||
\
|
\
|
||||||
&& su -c '. /opt/nvm/nvm.sh; nvm install --lts' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; nvm install ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. /opt/nvm/nvm.sh; nvm use --lts' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; nvm use ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. /opt/nvm/nvm.sh; corepack enable' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; corepack enable" devilbox \
|
||||||
\
|
\
|
||||||
&& chmod 0777 /opt/nvm \
|
&& chmod 0777 /opt/nvm \
|
||||||
&& find /opt/nvm -type f -print0 | xargs -n1 -0 chmod go+w \
|
&& find /opt/nvm -type f -print0 | xargs -n1 -0 chmod go+w \
|
||||||
@@ -318,12 +319,12 @@ fi \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- wkhtmltopdf --------------------
|
# -------------------- wkhtmltopdf --------------------
|
||||||
&& VERSION="$( curl -sSL -L --fail https://github.com/wkhtmltopdf/wkhtmltopdf/releases | grep -Eo '/wkhtmltopdf/.+jessie_amd64\.deb' | head -1 )" \
|
&& VERSION="$(curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/wkhtmltopdf/releases | awk -F\" '/wkhtmltopdf.*.jessie_amd64\.deb/{print $(NF-1)}' | head -1 )" \
|
||||||
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
||||||
libfontenc1 libxfont1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
libfontenc1 libxfont1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
||||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb https://github.com/${VERSION} \
|
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb ${VERSION} \
|
||||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||||
&& rm -f /tmp/wkhtmltopdf.deb; \
|
&& rm -f /tmp/wkhtmltopdf.deb; \
|
||||||
fi \
|
fi \
|
||||||
|
|||||||
@@ -160,6 +160,8 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- nvm --------------------
|
# -------------------- nvm --------------------
|
||||||
|
&& NODE_VERSION="17" \
|
||||||
|
\
|
||||||
&& NVM_VERSION="$( \
|
&& NVM_VERSION="$( \
|
||||||
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
||||||
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
||||||
@@ -168,8 +170,7 @@ RUN set -eux \
|
|||||||
| tail -1 \
|
| tail -1 \
|
||||||
)" \
|
)" \
|
||||||
&& mkdir -p /opt/nvm \
|
&& mkdir -p /opt/nvm \
|
||||||
\
|
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
||||||
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
|
||||||
| NVM_DIR="/opt/nvm" bash \
|
| NVM_DIR="/opt/nvm" bash \
|
||||||
\
|
\
|
||||||
&& { \
|
&& { \
|
||||||
@@ -180,9 +181,9 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
&& chown -R devilbox:devilbox "/opt/nvm" \
|
&& chown -R devilbox:devilbox "/opt/nvm" \
|
||||||
\
|
\
|
||||||
&& su -c '. /opt/nvm/nvm.sh; nvm install --lts' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; nvm install ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. /opt/nvm/nvm.sh; nvm use --lts' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; nvm use ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. /opt/nvm/nvm.sh; corepack enable' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; corepack enable" devilbox \
|
||||||
\
|
\
|
||||||
&& chmod 0777 /opt/nvm \
|
&& chmod 0777 /opt/nvm \
|
||||||
&& find /opt/nvm -type f -print0 | xargs -n1 -0 chmod go+w \
|
&& find /opt/nvm -type f -print0 | xargs -n1 -0 chmod go+w \
|
||||||
@@ -347,17 +348,19 @@ fi \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- symfony --------------------
|
# -------------------- symfony --------------------
|
||||||
&& SYMFONY_VERSION="$( curl -sS -L --fail https://get.symfony.com/cli/LATEST )" \
|
&& VERSION="$(curl -s https://api.github.com/repos/symfony-cli/symfony-cli/releases/latest | awk -F\" '/symfony-cli_.*._amd64\.deb/{print $(NF-1)}' | head -1 | sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/')" \
|
||||||
&& curl -sS -L --fail "https://github.com/symfony/cli/releases/download/v${SYMFONY_VERSION}/symfony_linux_$(dpkg-architecture --query DEB_HOST_ARCH)" > /usr/local/bin/symfony \
|
&& curl -sS -L --fail -o /tmp/symfonycli.deb https://github.com/symfony-cli/symfony-cli/releases/download/v${VERSION}/symfony-cli_${VERSION}_$(dpkg-architecture --query DEB_HOST_ARCH).deb \
|
||||||
&& chmod +x /usr/local/bin/symfony \
|
&& dpkg -i /tmp/symfonycli.deb \
|
||||||
|
&& rm -f /tmp/symfonycli.deb \
|
||||||
|
\
|
||||||
\
|
\
|
||||||
# -------------------- wkhtmltopdf --------------------
|
# -------------------- wkhtmltopdf --------------------
|
||||||
&& VERSION="$( curl -sSL -L --fail https://github.com/wkhtmltopdf/wkhtmltopdf/releases | grep -Eo '/wkhtmltopdf/.+jessie_amd64\.deb' | head -1 )" \
|
&& VERSION="$(curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/wkhtmltopdf/releases | awk -F\" '/wkhtmltopdf.*.jessie_amd64\.deb/{print $(NF-1)}' | head -1 )" \
|
||||||
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
||||||
libfontenc1 libxfont1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
libfontenc1 libxfont1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
||||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb https://github.com/${VERSION} \
|
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb ${VERSION} \
|
||||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||||
&& rm -f /tmp/wkhtmltopdf.deb; \
|
&& rm -f /tmp/wkhtmltopdf.deb; \
|
||||||
fi \
|
fi \
|
||||||
@@ -755,7 +758,7 @@ fi \
|
|||||||
&& php-cs-fixer --version 2>&1 | grep -E 'Fixer\s+(version\s*)?[-_.0-9]+\s+' \
|
&& php-cs-fixer --version 2>&1 | grep -E 'Fixer\s+(version\s*)?[-_.0-9]+\s+' \
|
||||||
&& phpmd --version | grep -E '^PHPMD [0-9][.0-9]+' \
|
&& phpmd --version | grep -E '^PHPMD [0-9][.0-9]+' \
|
||||||
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' \
|
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' \
|
||||||
&& symfony -V | grep -Ei 'version\s*.*v[0-9][.0-9]+' \
|
&& symfony -V | grep -Ei 'version\s[0-9][.0-9]+' \
|
||||||
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then wkhtmltopdf --version | grep -E "^wkhtmltopdf [0-9][.0-9]+\s+\(.+patched.+\)"; fi \
|
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then wkhtmltopdf --version | grep -E "^wkhtmltopdf [0-9][.0-9]+\s+\(.+patched.+\)"; fi \
|
||||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' \
|
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' \
|
||||||
\
|
\
|
||||||
|
|||||||
@@ -160,6 +160,8 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- nvm --------------------
|
# -------------------- nvm --------------------
|
||||||
|
&& NODE_VERSION="17" \
|
||||||
|
\
|
||||||
&& NVM_VERSION="$( \
|
&& NVM_VERSION="$( \
|
||||||
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
||||||
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
||||||
@@ -168,8 +170,7 @@ RUN set -eux \
|
|||||||
| tail -1 \
|
| tail -1 \
|
||||||
)" \
|
)" \
|
||||||
&& mkdir -p /opt/nvm \
|
&& mkdir -p /opt/nvm \
|
||||||
\
|
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
||||||
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
|
||||||
| NVM_DIR="/opt/nvm" bash \
|
| NVM_DIR="/opt/nvm" bash \
|
||||||
\
|
\
|
||||||
&& { \
|
&& { \
|
||||||
@@ -180,9 +181,9 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
&& chown -R devilbox:devilbox "/opt/nvm" \
|
&& chown -R devilbox:devilbox "/opt/nvm" \
|
||||||
\
|
\
|
||||||
&& su -c '. /opt/nvm/nvm.sh; nvm install --lts' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; nvm install ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. /opt/nvm/nvm.sh; nvm use --lts' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; nvm use ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. /opt/nvm/nvm.sh; corepack enable' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; corepack enable" devilbox \
|
||||||
\
|
\
|
||||||
&& chmod 0777 /opt/nvm \
|
&& chmod 0777 /opt/nvm \
|
||||||
&& find /opt/nvm -type f -print0 | xargs -n1 -0 chmod go+w \
|
&& find /opt/nvm -type f -print0 | xargs -n1 -0 chmod go+w \
|
||||||
@@ -353,17 +354,19 @@ fi \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- symfony --------------------
|
# -------------------- symfony --------------------
|
||||||
&& SYMFONY_VERSION="$( curl -sS -L --fail https://get.symfony.com/cli/LATEST )" \
|
&& VERSION="$(curl -s https://api.github.com/repos/symfony-cli/symfony-cli/releases/latest | awk -F\" '/symfony-cli_.*._amd64\.deb/{print $(NF-1)}' | head -1 | sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/')" \
|
||||||
&& curl -sS -L --fail "https://github.com/symfony/cli/releases/download/v${SYMFONY_VERSION}/symfony_linux_$(dpkg-architecture --query DEB_HOST_ARCH)" > /usr/local/bin/symfony \
|
&& curl -sS -L --fail -o /tmp/symfonycli.deb https://github.com/symfony-cli/symfony-cli/releases/download/v${VERSION}/symfony-cli_${VERSION}_$(dpkg-architecture --query DEB_HOST_ARCH).deb \
|
||||||
&& chmod +x /usr/local/bin/symfony \
|
&& dpkg -i /tmp/symfonycli.deb \
|
||||||
|
&& rm -f /tmp/symfonycli.deb \
|
||||||
|
\
|
||||||
\
|
\
|
||||||
# -------------------- wkhtmltopdf --------------------
|
# -------------------- wkhtmltopdf --------------------
|
||||||
&& VERSION="$( curl -sSL -L --fail https://github.com/wkhtmltopdf/wkhtmltopdf/releases | grep -Eo '/wkhtmltopdf/.+jessie_amd64\.deb' | head -1 )" \
|
&& VERSION="$(curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/wkhtmltopdf/releases | awk -F\" '/wkhtmltopdf.*.jessie_amd64\.deb/{print $(NF-1)}' | head -1 )" \
|
||||||
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
||||||
libfontenc1 libxfont1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
libfontenc1 libxfont1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
||||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb https://github.com/${VERSION} \
|
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb ${VERSION} \
|
||||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||||
&& rm -f /tmp/wkhtmltopdf.deb; \
|
&& rm -f /tmp/wkhtmltopdf.deb; \
|
||||||
fi \
|
fi \
|
||||||
@@ -770,7 +773,7 @@ fi \
|
|||||||
&& php-cs-fixer --version 2>&1 | grep -E 'Fixer\s+(version\s*)?[-_.0-9]+\s+' \
|
&& php-cs-fixer --version 2>&1 | grep -E 'Fixer\s+(version\s*)?[-_.0-9]+\s+' \
|
||||||
&& phpmd --version | grep -E '^PHPMD [0-9][.0-9]+' \
|
&& phpmd --version | grep -E '^PHPMD [0-9][.0-9]+' \
|
||||||
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' \
|
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' \
|
||||||
&& symfony -V | grep -Ei 'version\s*.*v[0-9][.0-9]+' \
|
&& symfony -V | grep -Ei 'version\s[0-9][.0-9]+' \
|
||||||
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then wkhtmltopdf --version | grep -E "^wkhtmltopdf [0-9][.0-9]+\s+\(.+patched.+\)"; fi \
|
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then wkhtmltopdf --version | grep -E "^wkhtmltopdf [0-9][.0-9]+\s+\(.+patched.+\)"; fi \
|
||||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' \
|
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' \
|
||||||
\
|
\
|
||||||
|
|||||||
@@ -162,6 +162,8 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- nvm --------------------
|
# -------------------- nvm --------------------
|
||||||
|
&& NODE_VERSION="17" \
|
||||||
|
\
|
||||||
&& NVM_VERSION="$( \
|
&& NVM_VERSION="$( \
|
||||||
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
||||||
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
||||||
@@ -170,8 +172,7 @@ RUN set -eux \
|
|||||||
| tail -1 \
|
| tail -1 \
|
||||||
)" \
|
)" \
|
||||||
&& mkdir -p /opt/nvm \
|
&& mkdir -p /opt/nvm \
|
||||||
\
|
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
||||||
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
|
||||||
| NVM_DIR="/opt/nvm" bash \
|
| NVM_DIR="/opt/nvm" bash \
|
||||||
\
|
\
|
||||||
&& { \
|
&& { \
|
||||||
@@ -182,9 +183,9 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
&& chown -R devilbox:devilbox "/opt/nvm" \
|
&& chown -R devilbox:devilbox "/opt/nvm" \
|
||||||
\
|
\
|
||||||
&& su -c '. /opt/nvm/nvm.sh; nvm install --lts' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; nvm install ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. /opt/nvm/nvm.sh; nvm use --lts' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; nvm use ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. /opt/nvm/nvm.sh; corepack enable' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; corepack enable" devilbox \
|
||||||
\
|
\
|
||||||
&& chmod 0777 /opt/nvm \
|
&& chmod 0777 /opt/nvm \
|
||||||
&& find /opt/nvm -type f -print0 | xargs -n1 -0 chmod go+w \
|
&& find /opt/nvm -type f -print0 | xargs -n1 -0 chmod go+w \
|
||||||
@@ -194,7 +195,7 @@ RUN set -eux \
|
|||||||
# -------------------- pgsql_client --------------------
|
# -------------------- pgsql_client --------------------
|
||||||
&& if [ "$(dpkg-architecture --query DEB_BUILD_ARCH)" = "amd64" ]; then \
|
&& if [ "$(dpkg-architecture --query DEB_BUILD_ARCH)" = "amd64" ]; then \
|
||||||
curl -sS -k -L --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add - \
|
curl -sS -k -L --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add - \
|
||||||
&& echo "deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main" > /etc/apt/sources.list.d/pgsql.list \
|
&& echo "deb https://apt-archive.postgresql.org/pub/repos/apt/ stretch-pgdg main" > /etc/apt/sources.list.d/pgsql.list \
|
||||||
&& apt-get update; \
|
&& apt-get update; \
|
||||||
fi \
|
fi \
|
||||||
\
|
\
|
||||||
@@ -373,17 +374,19 @@ fi \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- symfony --------------------
|
# -------------------- symfony --------------------
|
||||||
&& SYMFONY_VERSION="$( curl -sS -L --fail https://get.symfony.com/cli/LATEST )" \
|
&& VERSION="$(curl -s https://api.github.com/repos/symfony-cli/symfony-cli/releases/latest | awk -F\" '/symfony-cli_.*._amd64\.deb/{print $(NF-1)}' | head -1 | sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/')" \
|
||||||
&& curl -sS -L --fail "https://github.com/symfony/cli/releases/download/v${SYMFONY_VERSION}/symfony_linux_$(dpkg-architecture --query DEB_HOST_ARCH)" > /usr/local/bin/symfony \
|
&& curl -sS -L --fail -o /tmp/symfonycli.deb https://github.com/symfony-cli/symfony-cli/releases/download/v${VERSION}/symfony-cli_${VERSION}_$(dpkg-architecture --query DEB_HOST_ARCH).deb \
|
||||||
&& chmod +x /usr/local/bin/symfony \
|
&& dpkg -i /tmp/symfonycli.deb \
|
||||||
|
&& rm -f /tmp/symfonycli.deb \
|
||||||
|
\
|
||||||
\
|
\
|
||||||
# -------------------- wkhtmltopdf --------------------
|
# -------------------- wkhtmltopdf --------------------
|
||||||
&& VERSION="$( curl -sSL -L --fail https://github.com/wkhtmltopdf/wkhtmltopdf/releases | grep -Eo '/wkhtmltopdf/.+stretch_amd64\.deb' | head -1 )" \
|
&& VERSION="$(curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/packaging/releases | awk -F\" '/wkhtmltopdf.*.stretch_amd64\.deb/{print $(NF-1)}' | head -1 )" \
|
||||||
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
||||||
libfontenc1 libxfont1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
libfontenc1 libxfont1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
||||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb https://github.com/${VERSION} \
|
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb ${VERSION} \
|
||||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||||
&& rm -f /tmp/wkhtmltopdf.deb; \
|
&& rm -f /tmp/wkhtmltopdf.deb; \
|
||||||
fi \
|
fi \
|
||||||
@@ -788,7 +791,7 @@ fi \
|
|||||||
&& php-cs-fixer --version 2>&1 | grep -E 'Fixer\s+(version\s*)?[-_.0-9]+\s+' \
|
&& php-cs-fixer --version 2>&1 | grep -E 'Fixer\s+(version\s*)?[-_.0-9]+\s+' \
|
||||||
&& phpmd --version | grep -E '^PHPMD [0-9][.0-9]+' \
|
&& phpmd --version | grep -E '^PHPMD [0-9][.0-9]+' \
|
||||||
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' \
|
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' \
|
||||||
&& symfony -V | grep -Ei 'version\s*.*v[0-9][.0-9]+' \
|
&& symfony -V | grep -Ei 'version\s[0-9][.0-9]+' \
|
||||||
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then wkhtmltopdf --version | grep -E "^wkhtmltopdf [0-9][.0-9]+\s+\(.+patched.+\)"; fi \
|
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then wkhtmltopdf --version | grep -E "^wkhtmltopdf [0-9][.0-9]+\s+\(.+patched.+\)"; fi \
|
||||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' \
|
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' \
|
||||||
\
|
\
|
||||||
|
|||||||
@@ -162,6 +162,8 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- nvm --------------------
|
# -------------------- nvm --------------------
|
||||||
|
&& NODE_VERSION="17" \
|
||||||
|
\
|
||||||
&& NVM_VERSION="$( \
|
&& NVM_VERSION="$( \
|
||||||
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
||||||
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
||||||
@@ -170,8 +172,7 @@ RUN set -eux \
|
|||||||
| tail -1 \
|
| tail -1 \
|
||||||
)" \
|
)" \
|
||||||
&& mkdir -p /opt/nvm \
|
&& mkdir -p /opt/nvm \
|
||||||
\
|
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
||||||
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
|
||||||
| NVM_DIR="/opt/nvm" bash \
|
| NVM_DIR="/opt/nvm" bash \
|
||||||
\
|
\
|
||||||
&& { \
|
&& { \
|
||||||
@@ -182,9 +183,9 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
&& chown -R devilbox:devilbox "/opt/nvm" \
|
&& chown -R devilbox:devilbox "/opt/nvm" \
|
||||||
\
|
\
|
||||||
&& su -c '. /opt/nvm/nvm.sh; nvm install --lts' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; nvm install ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. /opt/nvm/nvm.sh; nvm use --lts' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; nvm use ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. /opt/nvm/nvm.sh; corepack enable' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; corepack enable" devilbox \
|
||||||
\
|
\
|
||||||
&& chmod 0777 /opt/nvm \
|
&& chmod 0777 /opt/nvm \
|
||||||
&& find /opt/nvm -type f -print0 | xargs -n1 -0 chmod go+w \
|
&& find /opt/nvm -type f -print0 | xargs -n1 -0 chmod go+w \
|
||||||
@@ -194,7 +195,7 @@ RUN set -eux \
|
|||||||
# -------------------- pgsql_client --------------------
|
# -------------------- pgsql_client --------------------
|
||||||
&& if [ "$(dpkg-architecture --query DEB_BUILD_ARCH)" = "amd64" ]; then \
|
&& if [ "$(dpkg-architecture --query DEB_BUILD_ARCH)" = "amd64" ]; then \
|
||||||
curl -sS -k -L --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add - \
|
curl -sS -k -L --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add - \
|
||||||
&& echo "deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main" > /etc/apt/sources.list.d/pgsql.list \
|
&& echo "deb https://apt-archive.postgresql.org/pub/repos/apt/ stretch-pgdg main" > /etc/apt/sources.list.d/pgsql.list \
|
||||||
&& apt-get update; \
|
&& apt-get update; \
|
||||||
fi \
|
fi \
|
||||||
\
|
\
|
||||||
@@ -354,17 +355,19 @@ fi \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- symfony --------------------
|
# -------------------- symfony --------------------
|
||||||
&& SYMFONY_VERSION="$( curl -sS -L --fail https://get.symfony.com/cli/LATEST )" \
|
&& VERSION="$(curl -s https://api.github.com/repos/symfony-cli/symfony-cli/releases/latest | awk -F\" '/symfony-cli_.*._amd64\.deb/{print $(NF-1)}' | head -1 | sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/')" \
|
||||||
&& curl -sS -L --fail "https://github.com/symfony/cli/releases/download/v${SYMFONY_VERSION}/symfony_linux_$(dpkg-architecture --query DEB_HOST_ARCH)" > /usr/local/bin/symfony \
|
&& curl -sS -L --fail -o /tmp/symfonycli.deb https://github.com/symfony-cli/symfony-cli/releases/download/v${VERSION}/symfony-cli_${VERSION}_$(dpkg-architecture --query DEB_HOST_ARCH).deb \
|
||||||
&& chmod +x /usr/local/bin/symfony \
|
&& dpkg -i /tmp/symfonycli.deb \
|
||||||
|
&& rm -f /tmp/symfonycli.deb \
|
||||||
|
\
|
||||||
\
|
\
|
||||||
# -------------------- wkhtmltopdf --------------------
|
# -------------------- wkhtmltopdf --------------------
|
||||||
&& VERSION="$( curl -sSL -L --fail https://github.com/wkhtmltopdf/wkhtmltopdf/releases | grep -Eo '/wkhtmltopdf/.+stretch_amd64\.deb' | head -1 )" \
|
&& VERSION="$(curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/packaging/releases | awk -F\" '/wkhtmltopdf.*.stretch_amd64\.deb/{print $(NF-1)}' | head -1 )" \
|
||||||
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
||||||
libfontenc1 libxfont1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
libfontenc1 libxfont1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
||||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb https://github.com/${VERSION} \
|
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb ${VERSION} \
|
||||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||||
&& rm -f /tmp/wkhtmltopdf.deb; \
|
&& rm -f /tmp/wkhtmltopdf.deb; \
|
||||||
fi \
|
fi \
|
||||||
@@ -767,7 +770,7 @@ fi \
|
|||||||
&& php-cs-fixer --version 2>&1 | grep -E 'Fixer\s+(version\s*)?[-_.0-9]+\s+' \
|
&& php-cs-fixer --version 2>&1 | grep -E 'Fixer\s+(version\s*)?[-_.0-9]+\s+' \
|
||||||
&& phpmd --version | grep -E '^PHPMD [0-9][.0-9]+' \
|
&& phpmd --version | grep -E '^PHPMD [0-9][.0-9]+' \
|
||||||
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' \
|
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' \
|
||||||
&& symfony -V | grep -Ei 'version\s*.*v[0-9][.0-9]+' \
|
&& symfony -V | grep -Ei 'version\s[0-9][.0-9]+' \
|
||||||
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then wkhtmltopdf --version | grep -E "^wkhtmltopdf [0-9][.0-9]+\s+\(.+patched.+\)"; fi \
|
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then wkhtmltopdf --version | grep -E "^wkhtmltopdf [0-9][.0-9]+\s+\(.+patched.+\)"; fi \
|
||||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' \
|
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' \
|
||||||
\
|
\
|
||||||
|
|||||||
@@ -161,6 +161,8 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- nvm --------------------
|
# -------------------- nvm --------------------
|
||||||
|
&& NODE_VERSION="--lts" \
|
||||||
|
\
|
||||||
&& NVM_VERSION="$( \
|
&& NVM_VERSION="$( \
|
||||||
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
||||||
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
||||||
@@ -169,8 +171,7 @@ RUN set -eux \
|
|||||||
| tail -1 \
|
| tail -1 \
|
||||||
)" \
|
)" \
|
||||||
&& mkdir -p /opt/nvm \
|
&& mkdir -p /opt/nvm \
|
||||||
\
|
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
||||||
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
|
||||||
| NVM_DIR="/opt/nvm" bash \
|
| NVM_DIR="/opt/nvm" bash \
|
||||||
\
|
\
|
||||||
&& { \
|
&& { \
|
||||||
@@ -181,9 +182,9 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
&& chown -R devilbox:devilbox "/opt/nvm" \
|
&& chown -R devilbox:devilbox "/opt/nvm" \
|
||||||
\
|
\
|
||||||
&& su -c '. /opt/nvm/nvm.sh; nvm install --lts' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; nvm install ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. /opt/nvm/nvm.sh; nvm use --lts' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; nvm use ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. /opt/nvm/nvm.sh; corepack enable' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; corepack enable" devilbox \
|
||||||
\
|
\
|
||||||
&& chmod 0777 /opt/nvm \
|
&& chmod 0777 /opt/nvm \
|
||||||
&& find /opt/nvm -type f -print0 | xargs -n1 -0 chmod go+w \
|
&& find /opt/nvm -type f -print0 | xargs -n1 -0 chmod go+w \
|
||||||
@@ -347,17 +348,19 @@ fi \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- symfony --------------------
|
# -------------------- symfony --------------------
|
||||||
&& SYMFONY_VERSION="$( curl -sS -L --fail https://get.symfony.com/cli/LATEST )" \
|
&& VERSION="$(curl -s https://api.github.com/repos/symfony-cli/symfony-cli/releases/latest | awk -F\" '/symfony-cli_.*._amd64\.deb/{print $(NF-1)}' | head -1 | sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/')" \
|
||||||
&& curl -sS -L --fail "https://github.com/symfony/cli/releases/download/v${SYMFONY_VERSION}/symfony_linux_$(dpkg-architecture --query DEB_HOST_ARCH)" > /usr/local/bin/symfony \
|
&& curl -sS -L --fail -o /tmp/symfonycli.deb https://github.com/symfony-cli/symfony-cli/releases/download/v${VERSION}/symfony-cli_${VERSION}_$(dpkg-architecture --query DEB_HOST_ARCH).deb \
|
||||||
&& chmod +x /usr/local/bin/symfony \
|
&& dpkg -i /tmp/symfonycli.deb \
|
||||||
|
&& rm -f /tmp/symfonycli.deb \
|
||||||
|
\
|
||||||
\
|
\
|
||||||
# -------------------- wkhtmltopdf --------------------
|
# -------------------- wkhtmltopdf --------------------
|
||||||
&& VERSION="$( curl -sSL -L --fail https://github.com/wkhtmltopdf/wkhtmltopdf/releases | grep -Eo '/wkhtmltopdf/.+stretch_amd64\.deb' | head -1 )" \
|
&& VERSION="$(curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/packaging/releases | awk -F\" '/wkhtmltopdf.*.stretch_amd64\.deb/{print $(NF-1)}' | head -1 )" \
|
||||||
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
||||||
libfontenc1 libxfont2 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
libfontenc1 libxfont2 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
||||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb https://github.com/${VERSION} \
|
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb ${VERSION} \
|
||||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||||
&& rm -f /tmp/wkhtmltopdf.deb; \
|
&& rm -f /tmp/wkhtmltopdf.deb; \
|
||||||
fi \
|
fi \
|
||||||
@@ -760,7 +763,7 @@ fi \
|
|||||||
&& php-cs-fixer --version 2>&1 | grep -E 'Fixer\s+(version\s*)?[-_.0-9]+\s+' \
|
&& php-cs-fixer --version 2>&1 | grep -E 'Fixer\s+(version\s*)?[-_.0-9]+\s+' \
|
||||||
&& phpmd --version | grep -E '^PHPMD [0-9][.0-9]+' \
|
&& phpmd --version | grep -E '^PHPMD [0-9][.0-9]+' \
|
||||||
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' \
|
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' \
|
||||||
&& symfony -V | grep -Ei 'version\s*.*v[0-9][.0-9]+' \
|
&& symfony -V | grep -Ei 'version\s[0-9][.0-9]+' \
|
||||||
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then wkhtmltopdf --version | grep -E "^wkhtmltopdf [0-9][.0-9]+\s+\(.+patched.+\)"; fi \
|
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then wkhtmltopdf --version | grep -E "^wkhtmltopdf [0-9][.0-9]+\s+\(.+patched.+\)"; fi \
|
||||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' \
|
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' \
|
||||||
\
|
\
|
||||||
|
|||||||
@@ -161,6 +161,8 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- nvm --------------------
|
# -------------------- nvm --------------------
|
||||||
|
&& NODE_VERSION="--lts" \
|
||||||
|
\
|
||||||
&& NVM_VERSION="$( \
|
&& NVM_VERSION="$( \
|
||||||
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
||||||
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
||||||
@@ -169,8 +171,7 @@ RUN set -eux \
|
|||||||
| tail -1 \
|
| tail -1 \
|
||||||
)" \
|
)" \
|
||||||
&& mkdir -p /opt/nvm \
|
&& mkdir -p /opt/nvm \
|
||||||
\
|
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
||||||
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
|
||||||
| NVM_DIR="/opt/nvm" bash \
|
| NVM_DIR="/opt/nvm" bash \
|
||||||
\
|
\
|
||||||
&& { \
|
&& { \
|
||||||
@@ -181,9 +182,9 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
&& chown -R devilbox:devilbox "/opt/nvm" \
|
&& chown -R devilbox:devilbox "/opt/nvm" \
|
||||||
\
|
\
|
||||||
&& su -c '. /opt/nvm/nvm.sh; nvm install --lts' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; nvm install ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. /opt/nvm/nvm.sh; nvm use --lts' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; nvm use ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. /opt/nvm/nvm.sh; corepack enable' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; corepack enable" devilbox \
|
||||||
\
|
\
|
||||||
&& chmod 0777 /opt/nvm \
|
&& chmod 0777 /opt/nvm \
|
||||||
&& find /opt/nvm -type f -print0 | xargs -n1 -0 chmod go+w \
|
&& find /opt/nvm -type f -print0 | xargs -n1 -0 chmod go+w \
|
||||||
@@ -268,7 +269,7 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- drupalconsole --------------------
|
# -------------------- drupalconsole --------------------
|
||||||
&& DURL="https://github.com$(curl -sS 'https://github.com/hechoendrupal/drupal-console-launcher/releases' | grep -Eo 'href="/.+drupal.phar"' | head -1 | sed 's/^href="//g' | sed 's/"$//g')" \
|
&& DURL="$(curl -s https://api.github.com/repos/hechoendrupal/drupal-console-launcher/releases/latest | awk -F\" '/download.*.phar/{print $(NF-1)}' | head -1)" \
|
||||||
&& curl -sS -L --fail "${DURL}" -L -o /usr/local/bin/drupal \
|
&& curl -sS -L --fail "${DURL}" -L -o /usr/local/bin/drupal \
|
||||||
&& chmod +x /usr/local/bin/drupal \
|
&& chmod +x /usr/local/bin/drupal \
|
||||||
\
|
\
|
||||||
@@ -367,17 +368,19 @@ fi \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- symfony --------------------
|
# -------------------- symfony --------------------
|
||||||
&& SYMFONY_VERSION="$( curl -sS -L --fail https://get.symfony.com/cli/LATEST )" \
|
&& VERSION="$(curl -s https://api.github.com/repos/symfony-cli/symfony-cli/releases/latest | awk -F\" '/symfony-cli_.*._amd64\.deb/{print $(NF-1)}' | head -1 | sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/')" \
|
||||||
&& curl -sS -L --fail "https://github.com/symfony/cli/releases/download/v${SYMFONY_VERSION}/symfony_linux_$(dpkg-architecture --query DEB_HOST_ARCH)" > /usr/local/bin/symfony \
|
&& curl -sS -L --fail -o /tmp/symfonycli.deb https://github.com/symfony-cli/symfony-cli/releases/download/v${VERSION}/symfony-cli_${VERSION}_$(dpkg-architecture --query DEB_HOST_ARCH).deb \
|
||||||
&& chmod +x /usr/local/bin/symfony \
|
&& dpkg -i /tmp/symfonycli.deb \
|
||||||
|
&& rm -f /tmp/symfonycli.deb \
|
||||||
|
\
|
||||||
\
|
\
|
||||||
# -------------------- wkhtmltopdf --------------------
|
# -------------------- wkhtmltopdf --------------------
|
||||||
&& VERSION="$( curl -sSL -L --fail https://github.com/wkhtmltopdf/wkhtmltopdf/releases | grep -Eo '/wkhtmltopdf/.+stretch_amd64\.deb' | head -1 )" \
|
&& VERSION="$(curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/packaging/releases | awk -F\" '/wkhtmltopdf.*.stretch_amd64\.deb/{print $(NF-1)}' | head -1 )" \
|
||||||
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
||||||
libfontenc1 libxfont2 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
libfontenc1 libxfont2 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
||||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb https://github.com/${VERSION} \
|
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb ${VERSION} \
|
||||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||||
&& rm -f /tmp/wkhtmltopdf.deb; \
|
&& rm -f /tmp/wkhtmltopdf.deb; \
|
||||||
fi \
|
fi \
|
||||||
@@ -782,7 +785,7 @@ fi \
|
|||||||
&& php-cs-fixer --version 2>&1 | grep -E 'Fixer\s+(version\s*)?[-_.0-9]+\s+' \
|
&& php-cs-fixer --version 2>&1 | grep -E 'Fixer\s+(version\s*)?[-_.0-9]+\s+' \
|
||||||
&& phpmd --version | grep -E '^PHPMD [0-9][.0-9]+' \
|
&& phpmd --version | grep -E '^PHPMD [0-9][.0-9]+' \
|
||||||
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' \
|
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' \
|
||||||
&& symfony -V | grep -Ei 'version\s*.*v[0-9][.0-9]+' \
|
&& symfony -V | grep -Ei 'version\s[0-9][.0-9]+' \
|
||||||
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then wkhtmltopdf --version | grep -E "^wkhtmltopdf [0-9][.0-9]+\s+\(.+patched.+\)"; fi \
|
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then wkhtmltopdf --version | grep -E "^wkhtmltopdf [0-9][.0-9]+\s+\(.+patched.+\)"; fi \
|
||||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' \
|
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' \
|
||||||
\
|
\
|
||||||
|
|||||||
@@ -162,6 +162,8 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- nvm --------------------
|
# -------------------- nvm --------------------
|
||||||
|
&& NODE_VERSION="--lts" \
|
||||||
|
\
|
||||||
&& NVM_VERSION="$( \
|
&& NVM_VERSION="$( \
|
||||||
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
||||||
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
||||||
@@ -170,8 +172,7 @@ RUN set -eux \
|
|||||||
| tail -1 \
|
| tail -1 \
|
||||||
)" \
|
)" \
|
||||||
&& mkdir -p /opt/nvm \
|
&& mkdir -p /opt/nvm \
|
||||||
\
|
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
||||||
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
|
||||||
| NVM_DIR="/opt/nvm" bash \
|
| NVM_DIR="/opt/nvm" bash \
|
||||||
\
|
\
|
||||||
&& { \
|
&& { \
|
||||||
@@ -182,9 +183,9 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
&& chown -R devilbox:devilbox "/opt/nvm" \
|
&& chown -R devilbox:devilbox "/opt/nvm" \
|
||||||
\
|
\
|
||||||
&& su -c '. /opt/nvm/nvm.sh; nvm install --lts' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; nvm install ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. /opt/nvm/nvm.sh; nvm use --lts' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; nvm use ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. /opt/nvm/nvm.sh; corepack enable' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; corepack enable" devilbox \
|
||||||
\
|
\
|
||||||
&& chmod 0777 /opt/nvm \
|
&& chmod 0777 /opt/nvm \
|
||||||
&& find /opt/nvm -type f -print0 | xargs -n1 -0 chmod go+w \
|
&& find /opt/nvm -type f -print0 | xargs -n1 -0 chmod go+w \
|
||||||
@@ -269,7 +270,7 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- drupalconsole --------------------
|
# -------------------- drupalconsole --------------------
|
||||||
&& DURL="https://github.com$(curl -sS 'https://github.com/hechoendrupal/drupal-console-launcher/releases' | grep -Eo 'href="/.+drupal.phar"' | head -1 | sed 's/^href="//g' | sed 's/"$//g')" \
|
&& DURL="$(curl -s https://api.github.com/repos/hechoendrupal/drupal-console-launcher/releases/latest | awk -F\" '/download.*.phar/{print $(NF-1)}' | head -1)" \
|
||||||
&& curl -sS -L --fail "${DURL}" -L -o /usr/local/bin/drupal \
|
&& curl -sS -L --fail "${DURL}" -L -o /usr/local/bin/drupal \
|
||||||
&& chmod +x /usr/local/bin/drupal \
|
&& chmod +x /usr/local/bin/drupal \
|
||||||
\
|
\
|
||||||
@@ -368,17 +369,19 @@ fi \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- symfony --------------------
|
# -------------------- symfony --------------------
|
||||||
&& SYMFONY_VERSION="$( curl -sS -L --fail https://get.symfony.com/cli/LATEST )" \
|
&& VERSION="$(curl -s https://api.github.com/repos/symfony-cli/symfony-cli/releases/latest | awk -F\" '/symfony-cli_.*._amd64\.deb/{print $(NF-1)}' | head -1 | sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/')" \
|
||||||
&& curl -sS -L --fail "https://github.com/symfony/cli/releases/download/v${SYMFONY_VERSION}/symfony_linux_$(dpkg-architecture --query DEB_HOST_ARCH)" > /usr/local/bin/symfony \
|
&& curl -sS -L --fail -o /tmp/symfonycli.deb https://github.com/symfony-cli/symfony-cli/releases/download/v${VERSION}/symfony-cli_${VERSION}_$(dpkg-architecture --query DEB_HOST_ARCH).deb \
|
||||||
&& chmod +x /usr/local/bin/symfony \
|
&& dpkg -i /tmp/symfonycli.deb \
|
||||||
|
&& rm -f /tmp/symfonycli.deb \
|
||||||
|
\
|
||||||
\
|
\
|
||||||
# -------------------- wkhtmltopdf --------------------
|
# -------------------- wkhtmltopdf --------------------
|
||||||
&& VERSION="$( curl -sSL -L --fail https://github.com/wkhtmltopdf/wkhtmltopdf/releases | grep -Eo '/wkhtmltopdf/.+stretch_amd64\.deb' | head -1 )" \
|
&& VERSION="$(curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/packaging/releases | awk -F\" '/wkhtmltopdf.*.stretch_amd64\.deb/{print $(NF-1)}' | head -1 )" \
|
||||||
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
||||||
libfontenc1 libxfont2 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
libfontenc1 libxfont2 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
||||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb https://github.com/${VERSION} \
|
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb ${VERSION} \
|
||||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||||
&& rm -f /tmp/wkhtmltopdf.deb; \
|
&& rm -f /tmp/wkhtmltopdf.deb; \
|
||||||
fi \
|
fi \
|
||||||
@@ -783,7 +786,7 @@ fi \
|
|||||||
&& php-cs-fixer --version 2>&1 | grep -E 'Fixer\s+(version\s*)?[-_.0-9]+\s+' \
|
&& php-cs-fixer --version 2>&1 | grep -E 'Fixer\s+(version\s*)?[-_.0-9]+\s+' \
|
||||||
&& phpmd --version | grep -E '^PHPMD [0-9][.0-9]+' \
|
&& phpmd --version | grep -E '^PHPMD [0-9][.0-9]+' \
|
||||||
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' \
|
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' \
|
||||||
&& symfony -V | grep -Ei 'version\s*.*v[0-9][.0-9]+' \
|
&& symfony -V | grep -Ei 'version\s[0-9][.0-9]+' \
|
||||||
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then wkhtmltopdf --version | grep -E "^wkhtmltopdf [0-9][.0-9]+\s+\(.+patched.+\)"; fi \
|
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then wkhtmltopdf --version | grep -E "^wkhtmltopdf [0-9][.0-9]+\s+\(.+patched.+\)"; fi \
|
||||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' \
|
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' \
|
||||||
\
|
\
|
||||||
|
|||||||
@@ -162,6 +162,8 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- nvm --------------------
|
# -------------------- nvm --------------------
|
||||||
|
&& NODE_VERSION="--lts" \
|
||||||
|
\
|
||||||
&& NVM_VERSION="$( \
|
&& NVM_VERSION="$( \
|
||||||
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
||||||
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
||||||
@@ -170,8 +172,7 @@ RUN set -eux \
|
|||||||
| tail -1 \
|
| tail -1 \
|
||||||
)" \
|
)" \
|
||||||
&& mkdir -p /opt/nvm \
|
&& mkdir -p /opt/nvm \
|
||||||
\
|
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
||||||
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
|
||||||
| NVM_DIR="/opt/nvm" bash \
|
| NVM_DIR="/opt/nvm" bash \
|
||||||
\
|
\
|
||||||
&& { \
|
&& { \
|
||||||
@@ -182,9 +183,9 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
&& chown -R devilbox:devilbox "/opt/nvm" \
|
&& chown -R devilbox:devilbox "/opt/nvm" \
|
||||||
\
|
\
|
||||||
&& su -c '. /opt/nvm/nvm.sh; nvm install --lts' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; nvm install ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. /opt/nvm/nvm.sh; nvm use --lts' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; nvm use ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. /opt/nvm/nvm.sh; corepack enable' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; corepack enable" devilbox \
|
||||||
\
|
\
|
||||||
&& chmod 0777 /opt/nvm \
|
&& chmod 0777 /opt/nvm \
|
||||||
&& find /opt/nvm -type f -print0 | xargs -n1 -0 chmod go+w \
|
&& find /opt/nvm -type f -print0 | xargs -n1 -0 chmod go+w \
|
||||||
@@ -269,7 +270,7 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- drupalconsole --------------------
|
# -------------------- drupalconsole --------------------
|
||||||
&& DURL="https://github.com$(curl -sS 'https://github.com/hechoendrupal/drupal-console-launcher/releases' | grep -Eo 'href="/.+drupal.phar"' | head -1 | sed 's/^href="//g' | sed 's/"$//g')" \
|
&& DURL="$(curl -s https://api.github.com/repos/hechoendrupal/drupal-console-launcher/releases/latest | awk -F\" '/download.*.phar/{print $(NF-1)}' | head -1)" \
|
||||||
&& curl -sS -L --fail "${DURL}" -L -o /usr/local/bin/drupal \
|
&& curl -sS -L --fail "${DURL}" -L -o /usr/local/bin/drupal \
|
||||||
&& chmod +x /usr/local/bin/drupal \
|
&& chmod +x /usr/local/bin/drupal \
|
||||||
\
|
\
|
||||||
@@ -327,20 +328,6 @@ fi \
|
|||||||
&& rm -rf /usr/local/src/mysqldump-secure \
|
&& rm -rf /usr/local/src/mysqldump-secure \
|
||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- phalcon --------------------
|
|
||||||
&& git clone https://github.com/phalcon/phalcon-devtools /usr/local/src/phalcon-devtools \
|
|
||||||
&& cd /usr/local/src/phalcon-devtools \
|
|
||||||
&& git checkout $(git describe --abbrev=0 --tags) \
|
|
||||||
&& COMPOSER_MEMORY_LIMIT=-1 /usr/local/bin/composer install \
|
|
||||||
\
|
|
||||||
&& chown -R ${MY_USER}:${MY_GROUP} /usr/local/src/phalcon-devtools \
|
|
||||||
&& su - ${MY_USER} -c 'cd /usr/local/src/phalcon-devtools && ./phalcon.sh' \
|
|
||||||
&& ln -sf /usr/local/src/phalcon-devtools/phalcon /usr/local/bin/phalcon \
|
|
||||||
&& chmod +x phalcon \
|
|
||||||
&& cd / \
|
|
||||||
&& rm -rf /usr/local/src/phalcon-devtools/.git \
|
|
||||||
\
|
|
||||||
\
|
|
||||||
# -------------------- phpcs --------------------
|
# -------------------- phpcs --------------------
|
||||||
&& curl -sS -L --fail https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar > /usr/local/bin/phpcs \
|
&& curl -sS -L --fail https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar > /usr/local/bin/phpcs \
|
||||||
&& chmod +x /usr/local/bin/phpcs \
|
&& chmod +x /usr/local/bin/phpcs \
|
||||||
@@ -368,17 +355,19 @@ fi \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- symfony --------------------
|
# -------------------- symfony --------------------
|
||||||
&& SYMFONY_VERSION="$( curl -sS -L --fail https://get.symfony.com/cli/LATEST )" \
|
&& VERSION="$(curl -s https://api.github.com/repos/symfony-cli/symfony-cli/releases/latest | awk -F\" '/symfony-cli_.*._amd64\.deb/{print $(NF-1)}' | head -1 | sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/')" \
|
||||||
&& curl -sS -L --fail "https://github.com/symfony/cli/releases/download/v${SYMFONY_VERSION}/symfony_linux_$(dpkg-architecture --query DEB_HOST_ARCH)" > /usr/local/bin/symfony \
|
&& curl -sS -L --fail -o /tmp/symfonycli.deb https://github.com/symfony-cli/symfony-cli/releases/download/v${VERSION}/symfony-cli_${VERSION}_$(dpkg-architecture --query DEB_HOST_ARCH).deb \
|
||||||
&& chmod +x /usr/local/bin/symfony \
|
&& dpkg -i /tmp/symfonycli.deb \
|
||||||
|
&& rm -f /tmp/symfonycli.deb \
|
||||||
|
\
|
||||||
\
|
\
|
||||||
# -------------------- wkhtmltopdf --------------------
|
# -------------------- wkhtmltopdf --------------------
|
||||||
&& VERSION="$( curl -sSL -L --fail https://github.com/wkhtmltopdf/wkhtmltopdf/releases | grep -Eo '/wkhtmltopdf/.+stretch_amd64\.deb' | head -1 )" \
|
&& VERSION="$(curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/packaging/releases | awk -F\" '/wkhtmltopdf.*.stretch_amd64\.deb/{print $(NF-1)}' | head -1 )" \
|
||||||
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
||||||
libfontenc1 libxfont2 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
libfontenc1 libxfont2 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
||||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb https://github.com/${VERSION} \
|
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb ${VERSION} \
|
||||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||||
&& rm -f /tmp/wkhtmltopdf.deb; \
|
&& rm -f /tmp/wkhtmltopdf.deb; \
|
||||||
fi \
|
fi \
|
||||||
@@ -777,13 +766,12 @@ fi \
|
|||||||
&& laravel --version | grep -E '(Installer|version)\s*[0-9][.0-9]+' \
|
&& laravel --version | grep -E '(Installer|version)\s*[0-9][.0-9]+' \
|
||||||
&& linkcheck --version | grep -E '^linkcheck\sv[0-9][.0-9]+' \
|
&& linkcheck --version | grep -E '^linkcheck\sv[0-9][.0-9]+' \
|
||||||
&& mysqldump-secure --version | grep -E 'Version:\s*[0-9][.0-9]+' \
|
&& mysqldump-secure --version | grep -E 'Version:\s*[0-9][.0-9]+' \
|
||||||
&& phalcon commands | grep -E '[0-9][.0-9]+' \
|
|
||||||
&& phpcs --version | grep -E 'version [0-9][.0-9]+' \
|
&& phpcs --version | grep -E 'version [0-9][.0-9]+' \
|
||||||
&& phpcbf --version | grep -E 'version [0-9][.0-9]+' \
|
&& phpcbf --version | grep -E 'version [0-9][.0-9]+' \
|
||||||
&& php-cs-fixer --version 2>&1 | grep -E 'Fixer\s+(version\s*)?[-_.0-9]+\s+' \
|
&& php-cs-fixer --version 2>&1 | grep -E 'Fixer\s+(version\s*)?[-_.0-9]+\s+' \
|
||||||
&& phpmd --version | grep -E '^PHPMD [0-9][.0-9]+' \
|
&& phpmd --version | grep -E '^PHPMD [0-9][.0-9]+' \
|
||||||
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' \
|
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' \
|
||||||
&& symfony -V | grep -Ei 'version\s*.*v[0-9][.0-9]+' \
|
&& symfony -V | grep -Ei 'version\s[0-9][.0-9]+' \
|
||||||
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then wkhtmltopdf --version | grep -E "^wkhtmltopdf [0-9][.0-9]+\s+\(.+patched.+\)"; fi \
|
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then wkhtmltopdf --version | grep -E "^wkhtmltopdf [0-9][.0-9]+\s+\(.+patched.+\)"; fi \
|
||||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' \
|
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' \
|
||||||
\
|
\
|
||||||
|
|||||||
@@ -162,6 +162,8 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- nvm --------------------
|
# -------------------- nvm --------------------
|
||||||
|
&& NODE_VERSION="--lts" \
|
||||||
|
\
|
||||||
&& NVM_VERSION="$( \
|
&& NVM_VERSION="$( \
|
||||||
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
||||||
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
||||||
@@ -170,8 +172,7 @@ RUN set -eux \
|
|||||||
| tail -1 \
|
| tail -1 \
|
||||||
)" \
|
)" \
|
||||||
&& mkdir -p /opt/nvm \
|
&& mkdir -p /opt/nvm \
|
||||||
\
|
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
||||||
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
|
||||||
| NVM_DIR="/opt/nvm" bash \
|
| NVM_DIR="/opt/nvm" bash \
|
||||||
\
|
\
|
||||||
&& { \
|
&& { \
|
||||||
@@ -182,9 +183,9 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
&& chown -R devilbox:devilbox "/opt/nvm" \
|
&& chown -R devilbox:devilbox "/opt/nvm" \
|
||||||
\
|
\
|
||||||
&& su -c '. /opt/nvm/nvm.sh; nvm install --lts' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; nvm install ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. /opt/nvm/nvm.sh; nvm use --lts' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; nvm use ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. /opt/nvm/nvm.sh; corepack enable' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; corepack enable" devilbox \
|
||||||
\
|
\
|
||||||
&& chmod 0777 /opt/nvm \
|
&& chmod 0777 /opt/nvm \
|
||||||
&& find /opt/nvm -type f -print0 | xargs -n1 -0 chmod go+w \
|
&& find /opt/nvm -type f -print0 | xargs -n1 -0 chmod go+w \
|
||||||
@@ -302,17 +303,19 @@ fi \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- symfony --------------------
|
# -------------------- symfony --------------------
|
||||||
&& SYMFONY_VERSION="$( curl -sS -L --fail https://get.symfony.com/cli/LATEST )" \
|
&& VERSION="$(curl -s https://api.github.com/repos/symfony-cli/symfony-cli/releases/latest | awk -F\" '/symfony-cli_.*._amd64\.deb/{print $(NF-1)}' | head -1 | sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/')" \
|
||||||
&& curl -sS -L --fail "https://github.com/symfony/cli/releases/download/v${SYMFONY_VERSION}/symfony_linux_$(dpkg-architecture --query DEB_HOST_ARCH)" > /usr/local/bin/symfony \
|
&& curl -sS -L --fail -o /tmp/symfonycli.deb https://github.com/symfony-cli/symfony-cli/releases/download/v${VERSION}/symfony-cli_${VERSION}_$(dpkg-architecture --query DEB_HOST_ARCH).deb \
|
||||||
&& chmod +x /usr/local/bin/symfony \
|
&& dpkg -i /tmp/symfonycli.deb \
|
||||||
|
&& rm -f /tmp/symfonycli.deb \
|
||||||
|
\
|
||||||
\
|
\
|
||||||
# -------------------- wkhtmltopdf --------------------
|
# -------------------- wkhtmltopdf --------------------
|
||||||
&& VERSION="$( curl -sSL -L --fail https://github.com/wkhtmltopdf/wkhtmltopdf/releases | grep -Eo '/wkhtmltopdf/.+stretch_amd64\.deb' | head -1 )" \
|
&& VERSION="$(curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/packaging/releases | awk -F\" '/wkhtmltopdf.*.stretch_amd64\.deb/{print $(NF-1)}' | head -1 )" \
|
||||||
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
||||||
libfontenc1 libxfont2 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
libfontenc1 libxfont2 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
||||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb https://github.com/${VERSION} \
|
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb ${VERSION} \
|
||||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||||
&& rm -f /tmp/wkhtmltopdf.deb; \
|
&& rm -f /tmp/wkhtmltopdf.deb; \
|
||||||
fi \
|
fi \
|
||||||
@@ -696,7 +699,7 @@ fi \
|
|||||||
&& phpcbf --version | grep -E 'version [0-9][.0-9]+' \
|
&& phpcbf --version | grep -E 'version [0-9][.0-9]+' \
|
||||||
&& php-cs-fixer --version 2>&1 | grep -E 'Fixer\s+(version\s*)?[-_.0-9]+\s+' \
|
&& php-cs-fixer --version 2>&1 | grep -E 'Fixer\s+(version\s*)?[-_.0-9]+\s+' \
|
||||||
&& phpmd --version | grep -E '^PHPMD [0-9][.0-9]+' \
|
&& phpmd --version | grep -E '^PHPMD [0-9][.0-9]+' \
|
||||||
&& symfony -V | grep -Ei 'version\s*.*v[0-9][.0-9]+' \
|
&& symfony -V | grep -Ei 'version\s[0-9][.0-9]+' \
|
||||||
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then wkhtmltopdf --version | grep -E "^wkhtmltopdf [0-9][.0-9]+\s+\(.+patched.+\)"; fi \
|
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then wkhtmltopdf --version | grep -E "^wkhtmltopdf [0-9][.0-9]+\s+\(.+patched.+\)"; fi \
|
||||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' \
|
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' \
|
||||||
\
|
\
|
||||||
|
|||||||
@@ -162,6 +162,8 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- nvm --------------------
|
# -------------------- nvm --------------------
|
||||||
|
&& NODE_VERSION="--lts" \
|
||||||
|
\
|
||||||
&& NVM_VERSION="$( \
|
&& NVM_VERSION="$( \
|
||||||
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
||||||
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
||||||
@@ -170,8 +172,7 @@ RUN set -eux \
|
|||||||
| tail -1 \
|
| tail -1 \
|
||||||
)" \
|
)" \
|
||||||
&& mkdir -p /opt/nvm \
|
&& mkdir -p /opt/nvm \
|
||||||
\
|
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
||||||
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
|
||||||
| NVM_DIR="/opt/nvm" bash \
|
| NVM_DIR="/opt/nvm" bash \
|
||||||
\
|
\
|
||||||
&& { \
|
&& { \
|
||||||
@@ -182,9 +183,9 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
&& chown -R devilbox:devilbox "/opt/nvm" \
|
&& chown -R devilbox:devilbox "/opt/nvm" \
|
||||||
\
|
\
|
||||||
&& su -c '. /opt/nvm/nvm.sh; nvm install --lts' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; nvm install ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. /opt/nvm/nvm.sh; nvm use --lts' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; nvm use ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. /opt/nvm/nvm.sh; corepack enable' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; corepack enable" devilbox \
|
||||||
\
|
\
|
||||||
&& chmod 0777 /opt/nvm \
|
&& chmod 0777 /opt/nvm \
|
||||||
&& find /opt/nvm -type f -print0 | xargs -n1 -0 chmod go+w \
|
&& find /opt/nvm -type f -print0 | xargs -n1 -0 chmod go+w \
|
||||||
@@ -302,17 +303,19 @@ fi \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- symfony --------------------
|
# -------------------- symfony --------------------
|
||||||
&& SYMFONY_VERSION="$( curl -sS -L --fail https://get.symfony.com/cli/LATEST )" \
|
&& VERSION="$(curl -s https://api.github.com/repos/symfony-cli/symfony-cli/releases/latest | awk -F\" '/symfony-cli_.*._amd64\.deb/{print $(NF-1)}' | head -1 | sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/')" \
|
||||||
&& curl -sS -L --fail "https://github.com/symfony/cli/releases/download/v${SYMFONY_VERSION}/symfony_linux_$(dpkg-architecture --query DEB_HOST_ARCH)" > /usr/local/bin/symfony \
|
&& curl -sS -L --fail -o /tmp/symfonycli.deb https://github.com/symfony-cli/symfony-cli/releases/download/v${VERSION}/symfony-cli_${VERSION}_$(dpkg-architecture --query DEB_HOST_ARCH).deb \
|
||||||
&& chmod +x /usr/local/bin/symfony \
|
&& dpkg -i /tmp/symfonycli.deb \
|
||||||
|
&& rm -f /tmp/symfonycli.deb \
|
||||||
|
\
|
||||||
\
|
\
|
||||||
# -------------------- wkhtmltopdf --------------------
|
# -------------------- wkhtmltopdf --------------------
|
||||||
&& VERSION="$( curl -sSL -L --fail https://github.com/wkhtmltopdf/wkhtmltopdf/releases | grep -Eo '/wkhtmltopdf/.+stretch_amd64\.deb' | head -1 )" \
|
&& VERSION="$(curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/packaging/releases | awk -F\" '/wkhtmltopdf.*.stretch_amd64\.deb/{print $(NF-1)}' | head -1 )" \
|
||||||
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
||||||
libfontenc1 libxfont2 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
libfontenc1 libxfont2 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
||||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb https://github.com/${VERSION} \
|
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb ${VERSION} \
|
||||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||||
&& rm -f /tmp/wkhtmltopdf.deb; \
|
&& rm -f /tmp/wkhtmltopdf.deb; \
|
||||||
fi \
|
fi \
|
||||||
@@ -696,7 +699,7 @@ fi \
|
|||||||
&& phpcbf --version | grep -E 'version [0-9][.0-9]+' \
|
&& phpcbf --version | grep -E 'version [0-9][.0-9]+' \
|
||||||
&& php-cs-fixer --version 2>&1 | grep -E 'Fixer\s+(version\s*)?[-_.0-9]+\s+' \
|
&& php-cs-fixer --version 2>&1 | grep -E 'Fixer\s+(version\s*)?[-_.0-9]+\s+' \
|
||||||
&& phpmd --version | grep -E '^PHPMD [0-9][.0-9]+' \
|
&& phpmd --version | grep -E '^PHPMD [0-9][.0-9]+' \
|
||||||
&& symfony -V | grep -Ei 'version\s*.*v[0-9][.0-9]+' \
|
&& symfony -V | grep -Ei 'version\s[0-9][.0-9]+' \
|
||||||
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then wkhtmltopdf --version | grep -E "^wkhtmltopdf [0-9][.0-9]+\s+\(.+patched.+\)"; fi \
|
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then wkhtmltopdf --version | grep -E "^wkhtmltopdf [0-9][.0-9]+\s+\(.+patched.+\)"; fi \
|
||||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' \
|
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' \
|
||||||
\
|
\
|
||||||
|
|||||||
@@ -162,6 +162,8 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- nvm --------------------
|
# -------------------- nvm --------------------
|
||||||
|
&& NODE_VERSION="--lts" \
|
||||||
|
\
|
||||||
&& NVM_VERSION="$( \
|
&& NVM_VERSION="$( \
|
||||||
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
||||||
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
||||||
@@ -170,8 +172,7 @@ RUN set -eux \
|
|||||||
| tail -1 \
|
| tail -1 \
|
||||||
)" \
|
)" \
|
||||||
&& mkdir -p /opt/nvm \
|
&& mkdir -p /opt/nvm \
|
||||||
\
|
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
||||||
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
|
||||||
| NVM_DIR="/opt/nvm" bash \
|
| NVM_DIR="/opt/nvm" bash \
|
||||||
\
|
\
|
||||||
&& { \
|
&& { \
|
||||||
@@ -182,9 +183,9 @@ RUN set -eux \
|
|||||||
\
|
\
|
||||||
&& chown -R devilbox:devilbox "/opt/nvm" \
|
&& chown -R devilbox:devilbox "/opt/nvm" \
|
||||||
\
|
\
|
||||||
&& su -c '. /opt/nvm/nvm.sh; nvm install --lts' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; nvm install ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. /opt/nvm/nvm.sh; nvm use --lts' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; nvm use ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. /opt/nvm/nvm.sh; corepack enable' devilbox \
|
&& su -c ". /opt/nvm/nvm.sh; corepack enable" devilbox \
|
||||||
\
|
\
|
||||||
&& chmod 0777 /opt/nvm \
|
&& chmod 0777 /opt/nvm \
|
||||||
&& find /opt/nvm -type f -print0 | xargs -n1 -0 chmod go+w \
|
&& find /opt/nvm -type f -print0 | xargs -n1 -0 chmod go+w \
|
||||||
@@ -286,17 +287,19 @@ fi \
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
# -------------------- symfony --------------------
|
# -------------------- symfony --------------------
|
||||||
&& SYMFONY_VERSION="$( curl -sS -L --fail https://get.symfony.com/cli/LATEST )" \
|
&& VERSION="$(curl -s https://api.github.com/repos/symfony-cli/symfony-cli/releases/latest | awk -F\" '/symfony-cli_.*._amd64\.deb/{print $(NF-1)}' | head -1 | sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/')" \
|
||||||
&& curl -sS -L --fail "https://github.com/symfony/cli/releases/download/v${SYMFONY_VERSION}/symfony_linux_$(dpkg-architecture --query DEB_HOST_ARCH)" > /usr/local/bin/symfony \
|
&& curl -sS -L --fail -o /tmp/symfonycli.deb https://github.com/symfony-cli/symfony-cli/releases/download/v${VERSION}/symfony-cli_${VERSION}_$(dpkg-architecture --query DEB_HOST_ARCH).deb \
|
||||||
&& chmod +x /usr/local/bin/symfony \
|
&& dpkg -i /tmp/symfonycli.deb \
|
||||||
|
&& rm -f /tmp/symfonycli.deb \
|
||||||
|
\
|
||||||
\
|
\
|
||||||
# -------------------- wkhtmltopdf --------------------
|
# -------------------- wkhtmltopdf --------------------
|
||||||
&& VERSION="$( curl -sSL -L --fail https://github.com/wkhtmltopdf/wkhtmltopdf/releases | grep -Eo '/wkhtmltopdf/.+stretch_amd64\.deb' | head -1 )" \
|
&& VERSION="$(curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/packaging/releases | awk -F\" '/wkhtmltopdf.*.stretch_amd64\.deb/{print $(NF-1)}' | head -1 )" \
|
||||||
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
||||||
libfontenc1 libxfont2 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
libfontenc1 libxfont2 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
||||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb https://github.com/${VERSION} \
|
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb ${VERSION} \
|
||||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||||
&& rm -f /tmp/wkhtmltopdf.deb; \
|
&& rm -f /tmp/wkhtmltopdf.deb; \
|
||||||
fi \
|
fi \
|
||||||
@@ -678,7 +681,7 @@ fi \
|
|||||||
&& phpcs --version | grep -E 'version [0-9][.0-9]+' \
|
&& phpcs --version | grep -E 'version [0-9][.0-9]+' \
|
||||||
&& phpcbf --version | grep -E 'version [0-9][.0-9]+' \
|
&& phpcbf --version | grep -E 'version [0-9][.0-9]+' \
|
||||||
&& phpmd --version | grep -E '^PHPMD [0-9][.0-9]+' \
|
&& phpmd --version | grep -E '^PHPMD [0-9][.0-9]+' \
|
||||||
&& symfony -V | grep -Ei 'version\s*.*v[0-9][.0-9]+' \
|
&& symfony -V | grep -Ei 'version\s[0-9][.0-9]+' \
|
||||||
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then wkhtmltopdf --version | grep -E "^wkhtmltopdf [0-9][.0-9]+\s+\(.+patched.+\)"; fi \
|
&& if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then wkhtmltopdf --version | grep -E "^wkhtmltopdf [0-9][.0-9]+\s+\(.+patched.+\)"; fi \
|
||||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' \
|
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' \
|
||||||
\
|
\
|
||||||
|
|||||||
@@ -711,12 +711,12 @@ Check out this table to see which Docker image provides what PHP modules.
|
|||||||
<tr>
|
<tr>
|
||||||
<th>8.0</th>
|
<th>8.0</th>
|
||||||
<td id="80-base">Core, ctype, curl, date, dom, FFI, fileinfo, filter, ftp, hash, iconv, json, libxml, mbstring, mysqlnd, openssl, pcre, PDO, pdo_sqlite, Phar, posix, readline, Reflection, session, SimpleXML, sodium, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, zlib</td>
|
<td id="80-base">Core, ctype, curl, date, dom, FFI, fileinfo, filter, ftp, hash, iconv, json, libxml, mbstring, mysqlnd, openssl, pcre, PDO, pdo_sqlite, Phar, posix, readline, Reflection, session, SimpleXML, sodium, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, zlib</td>
|
||||||
<td id="80-mods">amqp, apcu, bcmath, blackfire, bz2, calendar, Core, ctype, curl, date, dba, dom, enchant, exif, FFI, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, igbinary, imagick, imap, intl, json, ldap, libxml, mbstring, mcrypt, memcache, memcached, mongodb, msgpack, mysqli, mysqlnd, OAuth, oci8, openssl, pcntl, pcre, PDO, pdo_dblib, PDO_Firebird, pdo_mysql, PDO_OCI, pdo_pgsql, pdo_sqlite, pdo_sqlsrv, pgsql, Phar, posix, pspell, psr, rdkafka, readline, redis, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, sodium, solr, SPL, sqlite3, sqlsrv, standard, swoole, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, uploadprogress, uuid, vips, xdebug, xlswriter, xml, xmlreader, xmlwriter, xsl, yaml, Zend OPcache, zip, zlib</td>
|
<td id="80-mods">amqp, apcu, bcmath, blackfire, bz2, calendar, Core, ctype, curl, date, dba, dom, enchant, exif, FFI, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, igbinary, imagick, imap, intl, json, ldap, libxml, mbstring, mcrypt, memcache, memcached, mongodb, msgpack, mysqli, mysqlnd, OAuth, oci8, openssl, pcntl, pcre, PDO, pdo_dblib, PDO_Firebird, pdo_mysql, PDO_OCI, pdo_pgsql, pdo_sqlite, pdo_sqlsrv, pgsql, phalcon, Phar, posix, pspell, psr, rdkafka, readline, redis, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, sodium, solr, SPL, sqlite3, sqlsrv, standard, swoole, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, uploadprogress, uuid, vips, xdebug, xlswriter, xml, xmlreader, xmlwriter, xsl, yaml, Zend OPcache, zip, zlib</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>8.1</th>
|
<th>8.1</th>
|
||||||
<td id="81-base">Core, ctype, curl, date, dom, FFI, fileinfo, filter, ftp, hash, iconv, json, libxml, mbstring, mysqlnd, openssl, pcre, PDO, pdo_sqlite, Phar, posix, readline, Reflection, session, SimpleXML, sodium, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, zlib</td>
|
<td id="81-base">Core, ctype, curl, date, dom, FFI, fileinfo, filter, ftp, hash, iconv, json, libxml, mbstring, mysqlnd, openssl, pcre, PDO, pdo_sqlite, Phar, posix, readline, Reflection, session, SimpleXML, sodium, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, zlib</td>
|
||||||
<td id="81-mods">amqp, apcu, bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, enchant, exif, FFI, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, igbinary, imagick, imap, intl, json, ldap, libxml, mbstring, memcache, memcached, mongodb, msgpack, mysqli, mysqlnd, OAuth, oci8, openssl, pcntl, pcre, PDO, pdo_dblib, PDO_Firebird, pdo_mysql, PDO_OCI, pdo_pgsql, pdo_sqlite, pdo_sqlsrv, pgsql, Phar, posix, pspell, psr, rdkafka, readline, redis, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, sodium, solr, SPL, sqlite3, sqlsrv, standard, swoole, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, uploadprogress, uuid, vips, xdebug, xlswriter, xml, xmlreader, xmlwriter, xsl, yaml, Zend OPcache, zip, zlib</td>
|
<td id="81-mods">amqp, apcu, bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, enchant, exif, FFI, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, igbinary, imagick, imap, intl, json, ldap, libxml, mbstring, memcache, memcached, mongodb, msgpack, mysqli, mysqlnd, OAuth, oci8, openssl, pcntl, pcre, PDO, pdo_dblib, PDO_Firebird, pdo_mysql, PDO_OCI, pdo_pgsql, pdo_sqlite, pdo_sqlsrv, pgsql, phalcon, Phar, posix, pspell, psr, rdkafka, readline, redis, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, sodium, solr, SPL, sqlite3, sqlsrv, standard, swoole, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, uploadprogress, uuid, vips, xdebug, xlswriter, xml, xmlreader, xmlwriter, xsl, yaml, Zend OPcache, zip, zlib</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>8.2</th>
|
<th>8.2</th>
|
||||||
|
|||||||
@@ -915,7 +915,7 @@ extensions_available:
|
|||||||
all:
|
all:
|
||||||
type: pecl
|
type: pecl
|
||||||
phalcon:
|
phalcon:
|
||||||
disabled: [5.2, 8.0, 8.1, 8.2] # TODO: currently disabled for 7.4 as it breaks
|
disabled: [5.2, 8.2] # TODO: currently disabled for 7.4 as it breaks
|
||||||
5.3:
|
5.3:
|
||||||
type: git
|
type: git
|
||||||
git_url: https://github.com/phalcon/cphalcon
|
git_url: https://github.com/phalcon/cphalcon
|
||||||
@@ -946,6 +946,16 @@ extensions_available:
|
|||||||
git_url: https://github.com/phalcon/cphalcon
|
git_url: https://github.com/phalcon/cphalcon
|
||||||
git_ref: v3.4.4
|
git_ref: v3.4.4
|
||||||
command: cd build && ./install
|
command: cd build && ./install
|
||||||
|
7.2:
|
||||||
|
type: git
|
||||||
|
git_url: https://github.com/phalcon/cphalcon
|
||||||
|
git_ref: v4.1.1
|
||||||
|
command: cd build && ./install
|
||||||
|
7.3:
|
||||||
|
type: git
|
||||||
|
git_url: https://github.com/phalcon/cphalcon
|
||||||
|
git_ref: v4.1.2
|
||||||
|
command: cd build && ./install
|
||||||
all:
|
all:
|
||||||
type: git
|
type: git
|
||||||
git_url: https://github.com/phalcon/cphalcon
|
git_url: https://github.com/phalcon/cphalcon
|
||||||
@@ -1169,6 +1179,15 @@ extensions_available:
|
|||||||
7.1:
|
7.1:
|
||||||
type: pecl
|
type: pecl
|
||||||
version: 4.4.26
|
version: 4.4.26
|
||||||
|
7.2:
|
||||||
|
type: pecl
|
||||||
|
version: 4.8.12
|
||||||
|
7.3:
|
||||||
|
type: pecl
|
||||||
|
version: 4.8.12
|
||||||
|
7.4:
|
||||||
|
type: pecl
|
||||||
|
version: 4.8.12
|
||||||
all:
|
all:
|
||||||
type: pecl
|
type: pecl
|
||||||
# Note: -D is only supported from PHP 7.2+
|
# Note: -D is only supported from PHP 7.2+
|
||||||
|
|||||||
@@ -327,12 +327,10 @@ apt_repositories_available:
|
|||||||
deb: deb https://apt-archive.postgresql.org/pub/repos/apt/ {{ os_release[5.5].debian }}-pgdg main
|
deb: deb https://apt-archive.postgresql.org/pub/repos/apt/ {{ os_release[5.5].debian }}-pgdg main
|
||||||
# [Stretch]
|
# [Stretch]
|
||||||
5.6:
|
5.6:
|
||||||
deb: deb http://apt.postgresql.org/pub/repos/apt/ {{ os_release[5.6].debian }}-pgdg main
|
deb: deb https://apt-archive.postgresql.org/pub/repos/apt/ {{ os_release[5.6].debian }}-pgdg main
|
||||||
pre: curl -sS -k -L --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add -
|
|
||||||
# [Stretch]
|
# [Stretch]
|
||||||
7.0:
|
7.0:
|
||||||
deb: deb http://apt.postgresql.org/pub/repos/apt/ {{ os_release[7.0].debian }}-pgdg main
|
deb: deb https://apt-archive.postgresql.org/pub/repos/apt/ {{ os_release[7.0].debian }}-pgdg main
|
||||||
pre: curl -sS -k -L --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add -
|
|
||||||
# [Buster]
|
# [Buster]
|
||||||
7.1:
|
7.1:
|
||||||
deb: deb http://apt.postgresql.org/pub/repos/apt/ {{ os_release[7.1].debian }}-pgdg main
|
deb: deb http://apt.postgresql.org/pub/repos/apt/ {{ os_release[7.1].debian }}-pgdg main
|
||||||
@@ -680,8 +678,28 @@ software_available:
|
|||||||
check: |
|
check: |
|
||||||
su -c '. {{ nvm_home }}/nvm.sh; nvm --version' devilbox | grep -E '^v?[0-9][.0-9]+' \
|
su -c '. {{ nvm_home }}/nvm.sh; nvm --version' devilbox | grep -E '^v?[0-9][.0-9]+' \
|
||||||
&& su -c '. {{ nvm_home }}/nvm.sh; yarn --version' devilbox | grep -E '^v?[0-9][.0-9]+' \
|
&& su -c '. {{ nvm_home }}/nvm.sh; yarn --version' devilbox | grep -E '^v?[0-9][.0-9]+' \
|
||||||
|
5.2:
|
||||||
|
pre: |
|
||||||
|
NODE_VERSION="17" \
|
||||||
|
5.3:
|
||||||
|
pre: |
|
||||||
|
NODE_VERSION="17" \
|
||||||
|
5.4:
|
||||||
|
pre: |
|
||||||
|
NODE_VERSION="17" \
|
||||||
|
5.5:
|
||||||
|
pre: |
|
||||||
|
NODE_VERSION="17" \
|
||||||
|
5.6:
|
||||||
|
pre: |
|
||||||
|
NODE_VERSION="17" \
|
||||||
|
7.0:
|
||||||
|
pre: |
|
||||||
|
NODE_VERSION="17" \
|
||||||
all:
|
all:
|
||||||
pre: |
|
pre: |
|
||||||
|
NODE_VERSION="{{ node_version }}" \
|
||||||
|
command: |
|
||||||
NVM_VERSION="$( \
|
NVM_VERSION="$( \
|
||||||
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
curl -sS 'https://github.com/nvm-sh/nvm/releases' \
|
||||||
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
| grep -Eo '/nvm-sh/nvm/releases/tag/v?[.0-9]+"' \
|
||||||
@@ -690,8 +708,7 @@ software_available:
|
|||||||
| tail -1 \
|
| tail -1 \
|
||||||
)" \
|
)" \
|
||||||
&& mkdir -p {{ nvm_home }} \
|
&& mkdir -p {{ nvm_home }} \
|
||||||
command: |
|
&& curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
||||||
curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" \
|
|
||||||
| NVM_DIR="{{ nvm_home }}" bash \
|
| NVM_DIR="{{ nvm_home }}" bash \
|
||||||
\
|
\
|
||||||
&& { \
|
&& { \
|
||||||
@@ -703,9 +720,9 @@ software_available:
|
|||||||
&& chown -R devilbox:devilbox "{{ nvm_home }}" \
|
&& chown -R devilbox:devilbox "{{ nvm_home }}" \
|
||||||
# Install latest and LTS version and yarn
|
# Install latest and LTS version and yarn
|
||||||
post: |
|
post: |
|
||||||
su -c '. {{ nvm_home }}/nvm.sh; nvm install {{ node_version }}' devilbox \
|
su -c ". {{ nvm_home }}/nvm.sh; nvm install ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. {{ nvm_home }}/nvm.sh; nvm use {{ node_version }}' devilbox \
|
&& su -c ". {{ nvm_home }}/nvm.sh; nvm use ${NODE_VERSION}" devilbox \
|
||||||
&& su -c '. {{ nvm_home }}/nvm.sh; corepack enable' devilbox \
|
&& su -c ". {{ nvm_home }}/nvm.sh; corepack enable" devilbox \
|
||||||
\
|
\
|
||||||
&& chmod 0777 {{ nvm_home }} \
|
&& chmod 0777 {{ nvm_home }} \
|
||||||
&& find {{ nvm_home }} -type f -print0 | xargs -n1 -0 chmod go+w \
|
&& find {{ nvm_home }} -type f -print0 | xargs -n1 -0 chmod go+w \
|
||||||
@@ -787,7 +804,7 @@ software_available:
|
|||||||
pre: |
|
pre: |
|
||||||
if [ "$(dpkg-architecture --query DEB_BUILD_ARCH)" = "amd64" ]; then \
|
if [ "$(dpkg-architecture --query DEB_BUILD_ARCH)" = "amd64" ]; then \
|
||||||
curl -sS -k -L --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add - \
|
curl -sS -k -L --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add - \
|
||||||
&& echo "deb http://apt.postgresql.org/pub/repos/apt/ {{ os_release[php_version].debian }}-pgdg main" > /etc/apt/sources.list.d/pgsql.list \
|
&& echo "deb https://apt-archive.postgresql.org/pub/repos/apt/ {{ os_release[php_version].debian }}-pgdg main" > /etc/apt/sources.list.d/pgsql.list \
|
||||||
&& apt-get update; \
|
&& apt-get update; \
|
||||||
fi \
|
fi \
|
||||||
command: |
|
command: |
|
||||||
@@ -799,7 +816,7 @@ software_available:
|
|||||||
pre: |
|
pre: |
|
||||||
if [ "$(dpkg-architecture --query DEB_BUILD_ARCH)" = "amd64" ]; then \
|
if [ "$(dpkg-architecture --query DEB_BUILD_ARCH)" = "amd64" ]; then \
|
||||||
curl -sS -k -L --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add - \
|
curl -sS -k -L --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add - \
|
||||||
&& echo "deb http://apt.postgresql.org/pub/repos/apt/ {{ os_release[php_version].debian }}-pgdg main" > /etc/apt/sources.list.d/pgsql.list \
|
&& echo "deb https://apt-archive.postgresql.org/pub/repos/apt/ {{ os_release[php_version].debian }}-pgdg main" > /etc/apt/sources.list.d/pgsql.list \
|
||||||
&& apt-get update; \
|
&& apt-get update; \
|
||||||
fi \
|
fi \
|
||||||
command: |
|
command: |
|
||||||
@@ -993,7 +1010,7 @@ software_available:
|
|||||||
7.1:
|
7.1:
|
||||||
pre: DURL="https://github.com/hechoendrupal/drupal-console-launcher/releases/download/1.9.4/drupal.phar"
|
pre: DURL="https://github.com/hechoendrupal/drupal-console-launcher/releases/download/1.9.4/drupal.phar"
|
||||||
all:
|
all:
|
||||||
pre: DURL="https://github.com$(curl -sS 'https://github.com/hechoendrupal/drupal-console-launcher/releases' | grep -Eo 'href="/.+drupal.phar"' | head -1 | sed 's/^href="//g' | sed 's/"$//g')"
|
pre: DURL="$(curl -s https://api.github.com/repos/hechoendrupal/drupal-console-launcher/releases/latest | awk -F\" '/download.*.phar/{print $(NF-1)}' | head -1)"
|
||||||
command: curl -sS -L --fail "${DURL}" -L -o /usr/local/bin/drupal
|
command: curl -sS -L --fail "${DURL}" -L -o /usr/local/bin/drupal
|
||||||
post: chmod +x /usr/local/bin/drupal
|
post: chmod +x /usr/local/bin/drupal
|
||||||
gitflow:
|
gitflow:
|
||||||
@@ -1111,7 +1128,7 @@ software_available:
|
|||||||
&& cd / \
|
&& cd / \
|
||||||
&& rm -rf /usr/local/src/mysqldump-secure \
|
&& rm -rf /usr/local/src/mysqldump-secure \
|
||||||
phalcon:
|
phalcon:
|
||||||
disabled: [5.2, 8.0, 8.1, 8.2]
|
disabled: [5.2, 7.4, 8.0, 8.1, 8.2]
|
||||||
check: phalcon commands | grep -E '[0-9][.0-9]+'
|
check: phalcon commands | grep -E '[0-9][.0-9]+'
|
||||||
5.3:
|
5.3:
|
||||||
pre: |
|
pre: |
|
||||||
@@ -1300,54 +1317,56 @@ software_available:
|
|||||||
&& chmod +x /usr/local/bin/phpunit \
|
&& chmod +x /usr/local/bin/phpunit \
|
||||||
symfony:
|
symfony:
|
||||||
disabled: [5.2, 5.3]
|
disabled: [5.2, 5.3]
|
||||||
check: symfony -V | grep -Ei 'version\s*.*v[0-9][.0-9]+'
|
check: symfony -V | grep -Ei 'version\s[0-9][.0-9]+'
|
||||||
all:
|
all:
|
||||||
pre: SYMFONY_VERSION="$( curl -sS -L --fail https://get.symfony.com/cli/LATEST )"
|
pre: VERSION="$(curl -s https://api.github.com/repos/symfony-cli/symfony-cli/releases/latest | awk -F\" '/symfony-cli_.*._amd64\.deb/{print $(NF-1)}' | head -1 | sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/')"
|
||||||
command: curl -sS -L --fail "https://github.com/symfony/cli/releases/download/v${SYMFONY_VERSION}/symfony_linux_$(dpkg-architecture --query DEB_HOST_ARCH)" > /usr/local/bin/symfony
|
command: |
|
||||||
post: chmod +x /usr/local/bin/symfony
|
curl -sS -L --fail -o /tmp/symfonycli.deb https://github.com/symfony-cli/symfony-cli/releases/download/v${VERSION}/symfony-cli_${VERSION}_$(dpkg-architecture --query DEB_HOST_ARCH).deb \
|
||||||
|
&& dpkg -i /tmp/symfonycli.deb \
|
||||||
|
&& rm -f /tmp/symfonycli.deb \
|
||||||
wkhtmltopdf:
|
wkhtmltopdf:
|
||||||
check: if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then wkhtmltopdf --version | grep -E "^wkhtmltopdf [0-9][.0-9]+\s+\(.+patched.+\)"; fi
|
check: if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then wkhtmltopdf --version | grep -E "^wkhtmltopdf [0-9][.0-9]+\s+\(.+patched.+\)"; fi
|
||||||
5.2:
|
5.2:
|
||||||
pre: VERSION="$( curl -sSL -L --fail https://github.com/wkhtmltopdf/wkhtmltopdf/releases | grep -Eo '/wkhtmltopdf/.+jessie_amd64\.deb' | head -1 )"
|
pre: VERSION="$(curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/wkhtmltopdf/releases | awk -F\" '/wkhtmltopdf.*.jessie_amd64\.deb/{print $(NF-1)}' | head -1 )"
|
||||||
command: |
|
command: |
|
||||||
if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
||||||
libfontenc1 libxfont1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
libfontenc1 libxfont1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
||||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb https://github.com/${VERSION} \
|
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb ${VERSION} \
|
||||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||||
&& rm -f /tmp/wkhtmltopdf.deb; \
|
&& rm -f /tmp/wkhtmltopdf.deb; \
|
||||||
fi \
|
fi \
|
||||||
5.3:
|
5.3:
|
||||||
pre: VERSION="$( curl -sSL -L --fail https://github.com/wkhtmltopdf/wkhtmltopdf/releases | grep -Eo '/wkhtmltopdf/.+jessie_amd64\.deb' | head -1 )"
|
pre: VERSION="$(curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/wkhtmltopdf/releases | awk -F\" '/wkhtmltopdf.*.jessie_amd64\.deb/{print $(NF-1)}' | head -1 )"
|
||||||
command: |
|
command: |
|
||||||
if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
||||||
libfontenc1 libxfont1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
libfontenc1 libxfont1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
||||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb https://github.com/${VERSION} \
|
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb ${VERSION} \
|
||||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||||
&& rm -f /tmp/wkhtmltopdf.deb; \
|
&& rm -f /tmp/wkhtmltopdf.deb; \
|
||||||
fi \
|
fi \
|
||||||
5.4:
|
5.4:
|
||||||
pre: VERSION="$( curl -sSL -L --fail https://github.com/wkhtmltopdf/wkhtmltopdf/releases | grep -Eo '/wkhtmltopdf/.+jessie_amd64\.deb' | head -1 )"
|
pre: VERSION="$(curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/wkhtmltopdf/releases | awk -F\" '/wkhtmltopdf.*.jessie_amd64\.deb/{print $(NF-1)}' | head -1 )"
|
||||||
command: |
|
command: |
|
||||||
if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
||||||
libfontenc1 libxfont1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
libfontenc1 libxfont1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
||||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb https://github.com/${VERSION} \
|
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb ${VERSION} \
|
||||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||||
&& rm -f /tmp/wkhtmltopdf.deb; \
|
&& rm -f /tmp/wkhtmltopdf.deb; \
|
||||||
fi \
|
fi \
|
||||||
5.5:
|
5.5:
|
||||||
pre: VERSION="$( curl -sSL -L --fail https://github.com/wkhtmltopdf/wkhtmltopdf/releases | grep -Eo '/wkhtmltopdf/.+jessie_amd64\.deb' | head -1 )"
|
pre: VERSION="$(curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/wkhtmltopdf/releases | awk -F\" '/wkhtmltopdf.*.jessie_amd64\.deb/{print $(NF-1)}' | head -1 )"
|
||||||
command: |
|
command: |
|
||||||
if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
||||||
libfontenc1 libxfont1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
libfontenc1 libxfont1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
||||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb https://github.com/${VERSION} \
|
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb ${VERSION} \
|
||||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||||
&& rm -f /tmp/wkhtmltopdf.deb; \
|
&& rm -f /tmp/wkhtmltopdf.deb; \
|
||||||
fi \
|
fi \
|
||||||
@@ -1357,7 +1376,7 @@ software_available:
|
|||||||
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
||||||
libfontenc1 libxfont1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
libfontenc1 libxfont1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
||||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb https://github.com/${VERSION} \
|
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb ${VERSION} \
|
||||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||||
&& rm -f /tmp/wkhtmltopdf.deb; \
|
&& rm -f /tmp/wkhtmltopdf.deb; \
|
||||||
fi \
|
fi \
|
||||||
@@ -1367,18 +1386,18 @@ software_available:
|
|||||||
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
||||||
libfontenc1 libxfont1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
libfontenc1 libxfont1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
||||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb https://github.com/${VERSION} \
|
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb ${VERSION} \
|
||||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||||
&& rm -f /tmp/wkhtmltopdf.deb; \
|
&& rm -f /tmp/wkhtmltopdf.deb; \
|
||||||
fi \
|
fi \
|
||||||
all:
|
all:
|
||||||
pre: VERSION="$( curl -sSL -L --fail https://github.com/wkhtmltopdf/wkhtmltopdf/releases | grep -Eo '/wkhtmltopdf/.+stretch_amd64\.deb' | head -1 )"
|
pre: VERSION="$(curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/packaging/releases | awk -F\" '/wkhtmltopdf.*.stretch_amd64\.deb/{print $(NF-1)}' | head -1 )"
|
||||||
command: |
|
command: |
|
||||||
if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
||||||
libfontenc1 libxfont2 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
libfontenc1 libxfont2 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
||||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb https://github.com/${VERSION} \
|
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb ${VERSION} \
|
||||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||||
&& rm -f /tmp/wkhtmltopdf.deb; \
|
&& rm -f /tmp/wkhtmltopdf.deb; \
|
||||||
fi \
|
fi \
|
||||||
|
|||||||
Reference in New Issue
Block a user