mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2025-12-11 11:31:16 +00:00
Compare commits
19 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8e715503ff | ||
|
|
c14d2d8881 | ||
|
|
06cb912d1e | ||
|
|
9c552b020c | ||
|
|
5613a40247 | ||
|
|
fada51d70e | ||
|
|
d4b1fb1e9e | ||
|
|
a1f7c0ccdd | ||
|
|
66428717b4 | ||
|
|
5cbf875308 | ||
|
|
a2300738b4 | ||
|
|
9b3f06116a | ||
|
|
127c169c85 | ||
|
|
3c28fc52d5 | ||
|
|
f2416e3801 | ||
|
|
f333e37e15 | ||
|
|
7eafbdb887 | ||
|
|
6bbfd78a43 | ||
|
|
737fbbc8ad |
@@ -44,6 +44,7 @@ tools_enabled:
|
||||
- webpack-cli
|
||||
- wkhtmltopdf
|
||||
- wp-cli
|
||||
- wscat
|
||||
- yamllint
|
||||
- yq
|
||||
- zsh
|
||||
@@ -623,12 +624,12 @@ tools_available:
|
||||
command: |
|
||||
DEB_HOST_ARCH="$( dpkg-architecture --query DEB_HOST_ARCH )" \
|
||||
&& WK_URL="$( \
|
||||
curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/packaging/releases \
|
||||
| awk -F\" "/wkhtmltopdf.*.${OS_RELEASE}_${DEB_HOST_ARCH}\.deb/{print \$(NF-1)}" \
|
||||
curl -sS -k -L --fail 'https://wkhtmltopdf.org/downloads.html' \
|
||||
| awk -F'"' "/wkhtmltopdf.*${OS_RELEASE}_${DEB_HOST_ARCH}\.deb/{print \$(NF-1)}" \
|
||||
| head -1 \
|
||||
)" \
|
||||
&& echo "URL: ${WK_URL}" \
|
||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb "${WK_URL}" \
|
||||
&& curl -sS -k -L --fail -o /tmp/wkhtmltopdf.deb "${WK_URL}" \
|
||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||
&& rm -f /tmp/wkhtmltopdf.deb \
|
||||
run_dep:
|
||||
@@ -677,7 +678,9 @@ tools_available:
|
||||
type: custom
|
||||
command: curl -sS -L --fail "${WPCLI_URL}" -L -o /usr/local/bin/wp
|
||||
build_dep: []
|
||||
run_dep: []
|
||||
# Fixes: sh: 1: less: not found during 'wp help'
|
||||
# It internally pipes it to less.
|
||||
run_dep: [less]
|
||||
pre: WPCLI_URL="https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar"
|
||||
post: chmod +x /usr/local/bin/wp
|
||||
5.5:
|
||||
@@ -689,6 +692,18 @@ tools_available:
|
||||
5.3:
|
||||
type: custom
|
||||
pre: WPCLI_URL="https://github.com/wp-cli/wp-cli/releases/download/v1.5.1/wp-cli-1.5.1.phar"
|
||||
wscat:
|
||||
disabled: []
|
||||
check: wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false)
|
||||
all:
|
||||
type: npm
|
||||
package: wscat
|
||||
binary: wscat
|
||||
version:
|
||||
build_dep: []
|
||||
run_dep: []
|
||||
pre:
|
||||
post:
|
||||
yamllint:
|
||||
disabled: []
|
||||
check: yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false)
|
||||
|
||||
106
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
Normal file
106
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
Normal file
@@ -0,0 +1,106 @@
|
||||
---
|
||||
name: "\U0001F41B Bug report"
|
||||
description: File a bug report
|
||||
title: "[Bug]: "
|
||||
labels: ["bug", "status:triage"]
|
||||
assignees:
|
||||
- cytopia
|
||||
|
||||
body:
|
||||
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Thanks for taking the time to fill out this bug report!
|
||||
|
||||
- type: input
|
||||
attributes:
|
||||
label: (Optional) Error message
|
||||
description: If you encountered any error message, copy and paste it here. This will be used for googling the issue.
|
||||
validations:
|
||||
required: false
|
||||
|
||||
- type: textarea
|
||||
id: what-happened
|
||||
attributes:
|
||||
label: What went wrong?
|
||||
description: What exactly went wrong and what bug did you encounter?
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: expected-behaviour
|
||||
attributes:
|
||||
label: Expected behaviour
|
||||
description: What did you expect to happen instead?
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: steps-to-reproduce
|
||||
attributes:
|
||||
label: How can we reproduce the bug?
|
||||
description: How do you trigger this bug? Please walk us through it step by step in detail. This is crucial in order to triage the bug and support you in resolving it.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: dropdown
|
||||
id: host-os
|
||||
attributes:
|
||||
label: Host Operating System
|
||||
description: What operating system are you using?
|
||||
multiple: false
|
||||
options:
|
||||
- Linux
|
||||
- macOS
|
||||
- Windows
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: dropdown
|
||||
id: host-platform
|
||||
attributes:
|
||||
label: Host Platform (amd64, arm64, other)
|
||||
description: What host platform are you running on?
|
||||
options:
|
||||
- amd64
|
||||
- arm64
|
||||
- other
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: dropdown
|
||||
attributes:
|
||||
label: (Linux only) Is SELinux enabled?
|
||||
description: When using Linux as your host operating system, check if SELinux is enabled or not.
|
||||
options:
|
||||
- Yes, SELinux is enabled
|
||||
- No, SELinux is disabled
|
||||
- I don't know
|
||||
- I am not on Linux
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: input
|
||||
id: docker-version
|
||||
attributes:
|
||||
label: Docker version
|
||||
description: "What Docker version are you using? Please copy and paste the output of `docker --version` into this text area."
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: log-docker
|
||||
attributes:
|
||||
label: "Log: docker logs"
|
||||
description: "Please copy and paste the output of `docker logs` into this text area"
|
||||
render: shell
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: (Optional) Additional information
|
||||
description: Add any additional information that might help with this bug report.
|
||||
validations:
|
||||
required: false
|
||||
12
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
12
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: Devilbox Discord Chat
|
||||
url: https://discord.gg/2wP3V6kBj4
|
||||
about: Please notify or discuss about any other requests here.
|
||||
- name: Devilbox Discourse Forum
|
||||
url: https://devilbox.discourse.group/
|
||||
about: Please ask and answer general questions here.
|
||||
- name: Devilbox documentation
|
||||
url: https://devilbox.readthedocs.io/
|
||||
about: Find the Devilbox documentation here.
|
||||
37
.github/ISSUE_TEMPLATE/documentation.yml
vendored
Normal file
37
.github/ISSUE_TEMPLATE/documentation.yml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
name: "\U0001F4DD Documentation"
|
||||
description: Something is missing, unclear or wrong in the documentation.
|
||||
title: "[Docs]: "
|
||||
labels: ["documentation", "status:triage"]
|
||||
assignees:
|
||||
- cytopia
|
||||
|
||||
body:
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: What is wrong in the documentation?
|
||||
description: Tell us, what is wrong in the documentation?
|
||||
validations:
|
||||
required: false
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: What is unclear in the documentation?
|
||||
description: Tell us, what is unclear in the documentation?
|
||||
validations:
|
||||
required: false
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: What is missing in the documentation?
|
||||
description: Tell us, what is missing in the documentation?
|
||||
validations:
|
||||
required: false
|
||||
|
||||
- type: dropdown
|
||||
attributes:
|
||||
label: Are you willing to provide a PR to address this?
|
||||
options:
|
||||
- "Yes"
|
||||
- "No"
|
||||
36
.github/ISSUE_TEMPLATE/feature_request.yml
vendored
Normal file
36
.github/ISSUE_TEMPLATE/feature_request.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
---
|
||||
name: "✨ Feature request"
|
||||
description: Suggest an idea or feature for this project
|
||||
title: "[Feature]: "
|
||||
labels: ["feature", "status:triage"]
|
||||
assignees: [cytopia]
|
||||
|
||||
body:
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: What is your idea or feature suggestion?
|
||||
description: Tell us, what idea or feature you suggest to be added.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Benefits
|
||||
description: Tell us, how this will be beneficial.
|
||||
validations:
|
||||
required: false
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Where can we find information about this?
|
||||
description: If you are proposing a software or tool, please add relevant links and documentation.
|
||||
validations:
|
||||
required: false
|
||||
|
||||
- type: dropdown
|
||||
attributes:
|
||||
label: Are you willing to provide a PR to address this?
|
||||
options:
|
||||
- "Yes"
|
||||
- "No"
|
||||
45
.github/ISSUE_TEMPLATE/howto.yml
vendored
Normal file
45
.github/ISSUE_TEMPLATE/howto.yml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
---
|
||||
name: "❔ Question"
|
||||
description: How do I do X or Y?
|
||||
title: "[Question]: "
|
||||
labels: ["question", "status:triage"]
|
||||
assignees: [cytopia]
|
||||
|
||||
body:
|
||||
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
If this is a generic question, please consider using the [Discord Chat](https://discord.gg/2wP3V6kBj4) or the [Devilbox forum](https://devilbox.discourse.group/) instead.
|
||||
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Have you already checked elsewhere?
|
||||
description: You may select more than one.
|
||||
options:
|
||||
- label: I have checked existing issues
|
||||
- label: I have googled already with no luck
|
||||
- label: I have not done any of the above
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: What is your question?
|
||||
description: Tell the community, what your question is. Be as specific as possible to make it easier for other people to answer your question.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: What have you tried already?
|
||||
description: Add some details on what you have tried already, so this can be ruled out.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: What is your goal?
|
||||
description: Tell the community, what you want to accomplish? This might be helpful to know in order to prevent [XY problems](https://en.wikipedia.org/wiki/XY_problem).
|
||||
validations:
|
||||
required: true
|
||||
21
.github/ISSUE_TEMPLATE/report.yml
vendored
Normal file
21
.github/ISSUE_TEMPLATE/report.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
name: "🕬 Report"
|
||||
description: Report something to the maintainer
|
||||
title: "[Report]: "
|
||||
labels: ["report", "status:triage"]
|
||||
assignees:
|
||||
- cytopia
|
||||
|
||||
body:
|
||||
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Report something to the maintainer such as versions are outdated or pipelines are not running, etc. For anything else please use other issue types. Thanks for taking the time!
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Report
|
||||
description: What do you want to report?
|
||||
validations:
|
||||
required: true
|
||||
8
.github/dependabot.yml
vendored
Normal file
8
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
version: 2
|
||||
updates:
|
||||
# Maintain dependencies for GitHub Actions
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
105
.github/labels.yml
vendored
Normal file
105
.github/labels.yml
vendored
Normal file
@@ -0,0 +1,105 @@
|
||||
# The labels in this file are automatically synced with the repository
|
||||
# using the micnncim/action-label-syncer action.
|
||||
---
|
||||
|
||||
###
|
||||
### Pull Requests
|
||||
###
|
||||
- name: C-dependency
|
||||
color: 1abc9c
|
||||
description: "Category: Dependency"
|
||||
- name: PR-block
|
||||
color: 3498db
|
||||
description: "Pull Request: Do not merge"
|
||||
- name: PR-merge
|
||||
color: 3498db
|
||||
description: "Pull Request: Merge when ready"
|
||||
|
||||
###
|
||||
### General Issues
|
||||
###
|
||||
- name: bug
|
||||
description: "Bug Report"
|
||||
color: ee0701
|
||||
- name: report
|
||||
description: "General Report"
|
||||
color: ef561f
|
||||
- name: feature
|
||||
description: "Feature Request"
|
||||
color: dc8b10
|
||||
- name: question
|
||||
description: "General question"
|
||||
color: cc317c
|
||||
- name: documentation
|
||||
description: "Documentation related"
|
||||
color: 45b046
|
||||
|
||||
###
|
||||
### Status: Issue progress
|
||||
###
|
||||
- name: "status:triage"
|
||||
description: "Issue needs Triaging"
|
||||
color: f2a7cf
|
||||
- name: "status:confirmed"
|
||||
description: "Issue is confirmed"
|
||||
color: f2a7cf
|
||||
- name: "status:needs-more-info"
|
||||
description: "Issue needs more info"
|
||||
color: f2a7cf
|
||||
|
||||
###
|
||||
### Close
|
||||
###
|
||||
- name: "issue:invalid"
|
||||
description: ""
|
||||
color: f5c7fc
|
||||
- name: "issue:invalid-type"
|
||||
description: ""
|
||||
color: f5c7fc
|
||||
- name: "issue:duplicate"
|
||||
description: ""
|
||||
color: f5c7fc
|
||||
- name: "issue:wontfix"
|
||||
description: ""
|
||||
color: f5c7fc
|
||||
- name: "issue:stale"
|
||||
description: ""
|
||||
color: f5c7fc
|
||||
|
||||
###
|
||||
### Issue types
|
||||
###
|
||||
- name: "type:extension"
|
||||
description: ""
|
||||
color: 0c9cf2
|
||||
- name: "type:tool"
|
||||
description: ""
|
||||
color: 0c9cf2
|
||||
- name: "type:env-var"
|
||||
description: ""
|
||||
color: 0c9cf2
|
||||
- name: "type:config"
|
||||
description: ""
|
||||
color: 0c9cf2
|
||||
|
||||
###
|
||||
### Issue Host specific
|
||||
###
|
||||
- name: "host:linux"
|
||||
description: ""
|
||||
color: fbca04
|
||||
- name: "host:macos"
|
||||
description: ""
|
||||
color: fbca04
|
||||
- name: "host:windows"
|
||||
description: ""
|
||||
color: fbca04
|
||||
- name: "arch:amd64"
|
||||
description: ""
|
||||
color: fbca04
|
||||
- name: "arch:arm64"
|
||||
description: ""
|
||||
color: fbca04
|
||||
- name: "arch:other"
|
||||
description: ""
|
||||
color: fbca04
|
||||
33
.github/release-drafter.yml
vendored
Normal file
33
.github/release-drafter.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
name-template: '$RESOLVED_VERSION 🌈'
|
||||
tag-template: '$RESOLVED_VERSION'
|
||||
version-template: '$MAJOR.$MINOR'
|
||||
categories:
|
||||
- title: '🚀 Features'
|
||||
labels:
|
||||
- 'feature'
|
||||
- 'enhancement'
|
||||
- title: '🐛 Bug Fixes'
|
||||
labels:
|
||||
- 'fix'
|
||||
- 'bugfix'
|
||||
- 'bug'
|
||||
- title: '🧰 Maintenance'
|
||||
label: 'chore'
|
||||
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
|
||||
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
|
||||
version-resolver:
|
||||
major:
|
||||
labels:
|
||||
- 'major'
|
||||
minor:
|
||||
labels:
|
||||
- 'minor'
|
||||
patch:
|
||||
labels:
|
||||
- 'patch'
|
||||
default: minor
|
||||
template: |
|
||||
## Changes
|
||||
|
||||
$CHANGES
|
||||
65
.github/workflows/generator.yml
vendored
Normal file
65
.github/workflows/generator.yml
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
---
|
||||
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Job Name
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
name: generator
|
||||
|
||||
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# When to run
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
on:
|
||||
# Runs on Pull Requests
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
paths:
|
||||
- '.ansible/**'
|
||||
- '.github/workflows/action.yml'
|
||||
- '.github/workflows/params.yml'
|
||||
- 'Dockerfiles/**'
|
||||
- 'php_modules/**'
|
||||
- 'php_tools/**'
|
||||
- 'tests/**'
|
||||
- 'Makefile'
|
||||
- '!**.md'
|
||||
- '!.ansible/ansible.cfg'
|
||||
|
||||
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# What to run
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
jobs:
|
||||
generator:
|
||||
name: "Generator"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# ------------------------------------------------------------
|
||||
# Setup repository
|
||||
# ------------------------------------------------------------
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install Python 3.9
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.9'
|
||||
|
||||
- name: Install required Python packages
|
||||
run: |
|
||||
pip install yamllib
|
||||
pip install typing
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Lint repository
|
||||
# ------------------------------------------------------------
|
||||
- name: Lint Changelog
|
||||
run: |
|
||||
make lint-changelog
|
||||
|
||||
- name: Diff generated Docker files
|
||||
run: |
|
||||
make gen-dockerfiles
|
||||
git diff --quiet || { echo "Build Changes"; git diff; git status; false; }
|
||||
21
.github/workflows/linting.yml
vendored
21
.github/workflows/linting.yml
vendored
@@ -27,20 +27,10 @@ jobs:
|
||||
# Setup repository
|
||||
# ------------------------------------------------------------
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install Python 3.9
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.9'
|
||||
|
||||
- name: Install required Python packages
|
||||
run: |
|
||||
pip install yamllib
|
||||
pip install typing
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Lint repository
|
||||
# ------------------------------------------------------------
|
||||
@@ -51,12 +41,3 @@ jobs:
|
||||
- name: Lint Yaml
|
||||
run: |
|
||||
make lint-yaml
|
||||
|
||||
- name: Lint Changelog
|
||||
run: |
|
||||
make lint-changelog
|
||||
|
||||
- name: Diff generated Docker files
|
||||
run: |
|
||||
make gen-dockerfiles
|
||||
git diff --quiet || { echo "Build Changes"; git diff; git status; false; }
|
||||
|
||||
19
.github/workflows/release-drafter.yml
vendored
Normal file
19
.github/workflows/release-drafter.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
name: Release Drafter
|
||||
|
||||
on:
|
||||
push:
|
||||
# branches to consider in the event; optional, defaults to all
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
update_release_draft:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# Drafts your next Release notes as Pull Requests are merged into "master"
|
||||
- uses: release-drafter/release-drafter@v5
|
||||
with:
|
||||
publish: false
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.RELEASE_DRAFTER_TOKEN }}
|
||||
25
.github/workflows/repository.yml
vendored
Normal file
25
.github/workflows/repository.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
name: Repository
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- .github/labels.yml
|
||||
|
||||
jobs:
|
||||
labels:
|
||||
name: Labels
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Sync labels
|
||||
uses: micnncim/action-label-syncer@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
manifest: .github/labels.yml
|
||||
13
CHANGELOG.md
13
CHANGELOG.md
@@ -4,6 +4,19 @@
|
||||
## Unreleased
|
||||
|
||||
|
||||
## Release 0.148
|
||||
|
||||
### Added
|
||||
- Added `wscat` to work with websockets
|
||||
|
||||
|
||||
## Release 0.147
|
||||
|
||||
### Fixed
|
||||
- Fixed wkhtmltopdf version finder during install
|
||||
- Fixed wp-cli runtime requirements (needs `less` in order to function)
|
||||
|
||||
|
||||
## Release 0.146
|
||||
|
||||
This release adds lots of documentation about recently added features.
|
||||
|
||||
@@ -461,6 +461,13 @@ RUN set -eux \
|
||||
&& webpack-cli --version | grep -E '[0-9][.0-9]+' || (webpack-cli --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (npm) wscat --------------------
|
||||
RUN set -eux \
|
||||
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
|
||||
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
|
||||
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (pip) yamllint --------------------
|
||||
RUN set -eux \
|
||||
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
|
||||
@@ -724,6 +731,11 @@ RUN set -eux \
|
||||
&& webpack-cli --version | grep -E '[0-9][.0-9]+' || (webpack-cli --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (npm) wscat --------------------
|
||||
RUN set -eux \
|
||||
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (pip) yamllint --------------------
|
||||
RUN set -eux \
|
||||
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \
|
||||
|
||||
@@ -270,6 +270,7 @@ RUN set -eux \
|
||||
# ---------- run_deps ----------
|
||||
dos2unix \
|
||||
file \
|
||||
less \
|
||||
moreutils \
|
||||
ruby \
|
||||
# ---------- type: apt ----------
|
||||
@@ -532,6 +533,13 @@ RUN set -eux \
|
||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (npm) wscat --------------------
|
||||
RUN set -eux \
|
||||
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
|
||||
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
|
||||
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (pip) yamllint --------------------
|
||||
RUN set -eux \
|
||||
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
|
||||
@@ -581,6 +589,7 @@ RUN set -eux \
|
||||
# ---------- run_deps ----------
|
||||
dos2unix \
|
||||
file \
|
||||
less \
|
||||
moreutils \
|
||||
ruby \
|
||||
# ---------- type: apt ----------
|
||||
@@ -815,6 +824,11 @@ RUN set -eux \
|
||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (npm) wscat --------------------
|
||||
RUN set -eux \
|
||||
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (pip) yamllint --------------------
|
||||
RUN set -eux \
|
||||
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \
|
||||
|
||||
@@ -270,6 +270,7 @@ RUN set -eux \
|
||||
# ---------- run_deps ----------
|
||||
dos2unix \
|
||||
file \
|
||||
less \
|
||||
moreutils \
|
||||
ruby \
|
||||
# ---------- type: apt ----------
|
||||
@@ -555,6 +556,13 @@ RUN set -eux \
|
||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (npm) wscat --------------------
|
||||
RUN set -eux \
|
||||
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
|
||||
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
|
||||
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (pip) yamllint --------------------
|
||||
RUN set -eux \
|
||||
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
|
||||
@@ -604,6 +612,7 @@ RUN set -eux \
|
||||
# ---------- run_deps ----------
|
||||
dos2unix \
|
||||
file \
|
||||
less \
|
||||
moreutils \
|
||||
ruby \
|
||||
# ---------- type: apt ----------
|
||||
@@ -853,6 +862,11 @@ RUN set -eux \
|
||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (npm) wscat --------------------
|
||||
RUN set -eux \
|
||||
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (pip) yamllint --------------------
|
||||
RUN set -eux \
|
||||
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \
|
||||
|
||||
@@ -270,6 +270,7 @@ RUN set -eux \
|
||||
# ---------- run_deps ----------
|
||||
dos2unix \
|
||||
file \
|
||||
less \
|
||||
moreutils \
|
||||
ruby \
|
||||
# ---------- type: apt ----------
|
||||
@@ -610,6 +611,13 @@ RUN set -eux \
|
||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (npm) wscat --------------------
|
||||
RUN set -eux \
|
||||
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
|
||||
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
|
||||
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (pip) yamllint --------------------
|
||||
RUN set -eux \
|
||||
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
|
||||
@@ -659,6 +667,7 @@ RUN set -eux \
|
||||
# ---------- run_deps ----------
|
||||
dos2unix \
|
||||
file \
|
||||
less \
|
||||
moreutils \
|
||||
ruby \
|
||||
# ---------- type: apt ----------
|
||||
@@ -940,6 +949,11 @@ RUN set -eux \
|
||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (npm) wscat --------------------
|
||||
RUN set -eux \
|
||||
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (pip) yamllint --------------------
|
||||
RUN set -eux \
|
||||
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \
|
||||
|
||||
@@ -271,6 +271,7 @@ RUN set -eux \
|
||||
dos2unix \
|
||||
file \
|
||||
fontconfig \
|
||||
less \
|
||||
libfontenc1 \
|
||||
libxfont1 \
|
||||
libxrender1 \
|
||||
@@ -615,12 +616,12 @@ RUN set -eux \
|
||||
&& OS_RELEASE="stretch" \
|
||||
&& DEB_HOST_ARCH="$( dpkg-architecture --query DEB_HOST_ARCH )" \
|
||||
&& WK_URL="$( \
|
||||
curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/packaging/releases \
|
||||
| awk -F\" "/wkhtmltopdf.*.${OS_RELEASE}_${DEB_HOST_ARCH}\.deb/{print \$(NF-1)}" \
|
||||
curl -sS -k -L --fail 'https://wkhtmltopdf.org/downloads.html' \
|
||||
| awk -F'"' "/wkhtmltopdf.*${OS_RELEASE}_${DEB_HOST_ARCH}\.deb/{print \$(NF-1)}" \
|
||||
| head -1 \
|
||||
)" \
|
||||
&& echo "URL: ${WK_URL}" \
|
||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb "${WK_URL}" \
|
||||
&& curl -sS -k -L --fail -o /tmp/wkhtmltopdf.deb "${WK_URL}" \
|
||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||
&& rm -f /tmp/wkhtmltopdf.deb \
|
||||
\
|
||||
@@ -635,6 +636,13 @@ RUN set -eux \
|
||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (npm) wscat --------------------
|
||||
RUN set -eux \
|
||||
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
|
||||
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
|
||||
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (pip) yamllint --------------------
|
||||
RUN set -eux \
|
||||
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
|
||||
@@ -685,6 +693,7 @@ RUN set -eux \
|
||||
dos2unix \
|
||||
file \
|
||||
fontconfig \
|
||||
less \
|
||||
libfontenc1 \
|
||||
libxfont1 \
|
||||
libxrender1 \
|
||||
@@ -978,6 +987,11 @@ RUN set -eux \
|
||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (npm) wscat --------------------
|
||||
RUN set -eux \
|
||||
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (pip) yamllint --------------------
|
||||
RUN set -eux \
|
||||
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \
|
||||
|
||||
@@ -271,6 +271,7 @@ RUN set -eux \
|
||||
dos2unix \
|
||||
file \
|
||||
fontconfig \
|
||||
less \
|
||||
libfontenc1 \
|
||||
libxfont1 \
|
||||
libxrender1 \
|
||||
@@ -615,12 +616,12 @@ RUN set -eux \
|
||||
&& OS_RELEASE="stretch" \
|
||||
&& DEB_HOST_ARCH="$( dpkg-architecture --query DEB_HOST_ARCH )" \
|
||||
&& WK_URL="$( \
|
||||
curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/packaging/releases \
|
||||
| awk -F\" "/wkhtmltopdf.*.${OS_RELEASE}_${DEB_HOST_ARCH}\.deb/{print \$(NF-1)}" \
|
||||
curl -sS -k -L --fail 'https://wkhtmltopdf.org/downloads.html' \
|
||||
| awk -F'"' "/wkhtmltopdf.*${OS_RELEASE}_${DEB_HOST_ARCH}\.deb/{print \$(NF-1)}" \
|
||||
| head -1 \
|
||||
)" \
|
||||
&& echo "URL: ${WK_URL}" \
|
||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb "${WK_URL}" \
|
||||
&& curl -sS -k -L --fail -o /tmp/wkhtmltopdf.deb "${WK_URL}" \
|
||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||
&& rm -f /tmp/wkhtmltopdf.deb \
|
||||
\
|
||||
@@ -635,6 +636,13 @@ RUN set -eux \
|
||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (npm) wscat --------------------
|
||||
RUN set -eux \
|
||||
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
|
||||
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
|
||||
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (pip) yamllint --------------------
|
||||
RUN set -eux \
|
||||
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
|
||||
@@ -685,6 +693,7 @@ RUN set -eux \
|
||||
dos2unix \
|
||||
file \
|
||||
fontconfig \
|
||||
less \
|
||||
libfontenc1 \
|
||||
libxfont1 \
|
||||
libxrender1 \
|
||||
@@ -978,6 +987,11 @@ RUN set -eux \
|
||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (npm) wscat --------------------
|
||||
RUN set -eux \
|
||||
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (pip) yamllint --------------------
|
||||
RUN set -eux \
|
||||
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \
|
||||
|
||||
@@ -271,6 +271,7 @@ RUN set -eux \
|
||||
dos2unix \
|
||||
file \
|
||||
fontconfig \
|
||||
less \
|
||||
libfontenc1 \
|
||||
libxfont2 \
|
||||
libxrender1 \
|
||||
@@ -615,12 +616,12 @@ RUN set -eux \
|
||||
&& OS_RELEASE="buster" \
|
||||
&& DEB_HOST_ARCH="$( dpkg-architecture --query DEB_HOST_ARCH )" \
|
||||
&& WK_URL="$( \
|
||||
curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/packaging/releases \
|
||||
| awk -F\" "/wkhtmltopdf.*.${OS_RELEASE}_${DEB_HOST_ARCH}\.deb/{print \$(NF-1)}" \
|
||||
curl -sS -k -L --fail 'https://wkhtmltopdf.org/downloads.html' \
|
||||
| awk -F'"' "/wkhtmltopdf.*${OS_RELEASE}_${DEB_HOST_ARCH}\.deb/{print \$(NF-1)}" \
|
||||
| head -1 \
|
||||
)" \
|
||||
&& echo "URL: ${WK_URL}" \
|
||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb "${WK_URL}" \
|
||||
&& curl -sS -k -L --fail -o /tmp/wkhtmltopdf.deb "${WK_URL}" \
|
||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||
&& rm -f /tmp/wkhtmltopdf.deb \
|
||||
\
|
||||
@@ -635,6 +636,13 @@ RUN set -eux \
|
||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (npm) wscat --------------------
|
||||
RUN set -eux \
|
||||
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
|
||||
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
|
||||
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (pip) yamllint --------------------
|
||||
RUN set -eux \
|
||||
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
|
||||
@@ -685,6 +693,7 @@ RUN set -eux \
|
||||
dos2unix \
|
||||
file \
|
||||
fontconfig \
|
||||
less \
|
||||
libfontenc1 \
|
||||
libxfont2 \
|
||||
libxrender1 \
|
||||
@@ -978,6 +987,11 @@ RUN set -eux \
|
||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (npm) wscat --------------------
|
||||
RUN set -eux \
|
||||
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (pip) yamllint --------------------
|
||||
RUN set -eux \
|
||||
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \
|
||||
|
||||
@@ -271,6 +271,7 @@ RUN set -eux \
|
||||
dos2unix \
|
||||
file \
|
||||
fontconfig \
|
||||
less \
|
||||
libfontenc1 \
|
||||
libxfont2 \
|
||||
libxrender1 \
|
||||
@@ -615,12 +616,12 @@ RUN set -eux \
|
||||
&& OS_RELEASE="buster" \
|
||||
&& DEB_HOST_ARCH="$( dpkg-architecture --query DEB_HOST_ARCH )" \
|
||||
&& WK_URL="$( \
|
||||
curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/packaging/releases \
|
||||
| awk -F\" "/wkhtmltopdf.*.${OS_RELEASE}_${DEB_HOST_ARCH}\.deb/{print \$(NF-1)}" \
|
||||
curl -sS -k -L --fail 'https://wkhtmltopdf.org/downloads.html' \
|
||||
| awk -F'"' "/wkhtmltopdf.*${OS_RELEASE}_${DEB_HOST_ARCH}\.deb/{print \$(NF-1)}" \
|
||||
| head -1 \
|
||||
)" \
|
||||
&& echo "URL: ${WK_URL}" \
|
||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb "${WK_URL}" \
|
||||
&& curl -sS -k -L --fail -o /tmp/wkhtmltopdf.deb "${WK_URL}" \
|
||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||
&& rm -f /tmp/wkhtmltopdf.deb \
|
||||
\
|
||||
@@ -635,6 +636,13 @@ RUN set -eux \
|
||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (npm) wscat --------------------
|
||||
RUN set -eux \
|
||||
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
|
||||
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
|
||||
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (pip) yamllint --------------------
|
||||
RUN set -eux \
|
||||
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
|
||||
@@ -685,6 +693,7 @@ RUN set -eux \
|
||||
dos2unix \
|
||||
file \
|
||||
fontconfig \
|
||||
less \
|
||||
libfontenc1 \
|
||||
libxfont2 \
|
||||
libxrender1 \
|
||||
@@ -978,6 +987,11 @@ RUN set -eux \
|
||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (npm) wscat --------------------
|
||||
RUN set -eux \
|
||||
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (pip) yamllint --------------------
|
||||
RUN set -eux \
|
||||
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \
|
||||
|
||||
@@ -273,6 +273,7 @@ RUN set -eux \
|
||||
dos2unix \
|
||||
file \
|
||||
fontconfig \
|
||||
less \
|
||||
libfontenc1 \
|
||||
libxfont2 \
|
||||
libxrender1 \
|
||||
@@ -615,12 +616,12 @@ RUN set -eux \
|
||||
&& OS_RELEASE="bullseye" \
|
||||
&& DEB_HOST_ARCH="$( dpkg-architecture --query DEB_HOST_ARCH )" \
|
||||
&& WK_URL="$( \
|
||||
curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/packaging/releases \
|
||||
| awk -F\" "/wkhtmltopdf.*.${OS_RELEASE}_${DEB_HOST_ARCH}\.deb/{print \$(NF-1)}" \
|
||||
curl -sS -k -L --fail 'https://wkhtmltopdf.org/downloads.html' \
|
||||
| awk -F'"' "/wkhtmltopdf.*${OS_RELEASE}_${DEB_HOST_ARCH}\.deb/{print \$(NF-1)}" \
|
||||
| head -1 \
|
||||
)" \
|
||||
&& echo "URL: ${WK_URL}" \
|
||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb "${WK_URL}" \
|
||||
&& curl -sS -k -L --fail -o /tmp/wkhtmltopdf.deb "${WK_URL}" \
|
||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||
&& rm -f /tmp/wkhtmltopdf.deb \
|
||||
\
|
||||
@@ -635,6 +636,13 @@ RUN set -eux \
|
||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (npm) wscat --------------------
|
||||
RUN set -eux \
|
||||
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
|
||||
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
|
||||
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (pip) yamllint --------------------
|
||||
RUN set -eux \
|
||||
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
|
||||
@@ -685,6 +693,7 @@ RUN set -eux \
|
||||
dos2unix \
|
||||
file \
|
||||
fontconfig \
|
||||
less \
|
||||
libfontenc1 \
|
||||
libxfont2 \
|
||||
libxrender1 \
|
||||
@@ -978,6 +987,11 @@ RUN set -eux \
|
||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (npm) wscat --------------------
|
||||
RUN set -eux \
|
||||
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (pip) yamllint --------------------
|
||||
RUN set -eux \
|
||||
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \
|
||||
|
||||
@@ -273,6 +273,7 @@ RUN set -eux \
|
||||
dos2unix \
|
||||
file \
|
||||
fontconfig \
|
||||
less \
|
||||
libfontenc1 \
|
||||
libxfont2 \
|
||||
libxrender1 \
|
||||
@@ -615,12 +616,12 @@ RUN set -eux \
|
||||
&& OS_RELEASE="bullseye" \
|
||||
&& DEB_HOST_ARCH="$( dpkg-architecture --query DEB_HOST_ARCH )" \
|
||||
&& WK_URL="$( \
|
||||
curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/packaging/releases \
|
||||
| awk -F\" "/wkhtmltopdf.*.${OS_RELEASE}_${DEB_HOST_ARCH}\.deb/{print \$(NF-1)}" \
|
||||
curl -sS -k -L --fail 'https://wkhtmltopdf.org/downloads.html' \
|
||||
| awk -F'"' "/wkhtmltopdf.*${OS_RELEASE}_${DEB_HOST_ARCH}\.deb/{print \$(NF-1)}" \
|
||||
| head -1 \
|
||||
)" \
|
||||
&& echo "URL: ${WK_URL}" \
|
||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb "${WK_URL}" \
|
||||
&& curl -sS -k -L --fail -o /tmp/wkhtmltopdf.deb "${WK_URL}" \
|
||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||
&& rm -f /tmp/wkhtmltopdf.deb \
|
||||
\
|
||||
@@ -635,6 +636,13 @@ RUN set -eux \
|
||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (npm) wscat --------------------
|
||||
RUN set -eux \
|
||||
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
|
||||
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
|
||||
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (pip) yamllint --------------------
|
||||
RUN set -eux \
|
||||
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
|
||||
@@ -685,6 +693,7 @@ RUN set -eux \
|
||||
dos2unix \
|
||||
file \
|
||||
fontconfig \
|
||||
less \
|
||||
libfontenc1 \
|
||||
libxfont2 \
|
||||
libxrender1 \
|
||||
@@ -978,6 +987,11 @@ RUN set -eux \
|
||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (npm) wscat --------------------
|
||||
RUN set -eux \
|
||||
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (pip) yamllint --------------------
|
||||
RUN set -eux \
|
||||
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \
|
||||
|
||||
@@ -273,6 +273,7 @@ RUN set -eux \
|
||||
dos2unix \
|
||||
file \
|
||||
fontconfig \
|
||||
less \
|
||||
libfontenc1 \
|
||||
libxfont2 \
|
||||
libxrender1 \
|
||||
@@ -615,12 +616,12 @@ RUN set -eux \
|
||||
&& OS_RELEASE="bullseye" \
|
||||
&& DEB_HOST_ARCH="$( dpkg-architecture --query DEB_HOST_ARCH )" \
|
||||
&& WK_URL="$( \
|
||||
curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/packaging/releases \
|
||||
| awk -F\" "/wkhtmltopdf.*.${OS_RELEASE}_${DEB_HOST_ARCH}\.deb/{print \$(NF-1)}" \
|
||||
curl -sS -k -L --fail 'https://wkhtmltopdf.org/downloads.html' \
|
||||
| awk -F'"' "/wkhtmltopdf.*${OS_RELEASE}_${DEB_HOST_ARCH}\.deb/{print \$(NF-1)}" \
|
||||
| head -1 \
|
||||
)" \
|
||||
&& echo "URL: ${WK_URL}" \
|
||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb "${WK_URL}" \
|
||||
&& curl -sS -k -L --fail -o /tmp/wkhtmltopdf.deb "${WK_URL}" \
|
||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||
&& rm -f /tmp/wkhtmltopdf.deb \
|
||||
\
|
||||
@@ -635,6 +636,13 @@ RUN set -eux \
|
||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (npm) wscat --------------------
|
||||
RUN set -eux \
|
||||
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
|
||||
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
|
||||
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (pip) yamllint --------------------
|
||||
RUN set -eux \
|
||||
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
|
||||
@@ -685,6 +693,7 @@ RUN set -eux \
|
||||
dos2unix \
|
||||
file \
|
||||
fontconfig \
|
||||
less \
|
||||
libfontenc1 \
|
||||
libxfont2 \
|
||||
libxrender1 \
|
||||
@@ -978,6 +987,11 @@ RUN set -eux \
|
||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (npm) wscat --------------------
|
||||
RUN set -eux \
|
||||
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (pip) yamllint --------------------
|
||||
RUN set -eux \
|
||||
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \
|
||||
|
||||
@@ -273,6 +273,7 @@ RUN set -eux \
|
||||
dos2unix \
|
||||
file \
|
||||
fontconfig \
|
||||
less \
|
||||
libfontenc1 \
|
||||
libxfont2 \
|
||||
libxrender1 \
|
||||
@@ -615,12 +616,12 @@ RUN set -eux \
|
||||
&& OS_RELEASE="bullseye" \
|
||||
&& DEB_HOST_ARCH="$( dpkg-architecture --query DEB_HOST_ARCH )" \
|
||||
&& WK_URL="$( \
|
||||
curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/packaging/releases \
|
||||
| awk -F\" "/wkhtmltopdf.*.${OS_RELEASE}_${DEB_HOST_ARCH}\.deb/{print \$(NF-1)}" \
|
||||
curl -sS -k -L --fail 'https://wkhtmltopdf.org/downloads.html' \
|
||||
| awk -F'"' "/wkhtmltopdf.*${OS_RELEASE}_${DEB_HOST_ARCH}\.deb/{print \$(NF-1)}" \
|
||||
| head -1 \
|
||||
)" \
|
||||
&& echo "URL: ${WK_URL}" \
|
||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb "${WK_URL}" \
|
||||
&& curl -sS -k -L --fail -o /tmp/wkhtmltopdf.deb "${WK_URL}" \
|
||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||
&& rm -f /tmp/wkhtmltopdf.deb \
|
||||
\
|
||||
@@ -635,6 +636,13 @@ RUN set -eux \
|
||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (npm) wscat --------------------
|
||||
RUN set -eux \
|
||||
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
|
||||
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
|
||||
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (pip) yamllint --------------------
|
||||
RUN set -eux \
|
||||
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
|
||||
@@ -685,6 +693,7 @@ RUN set -eux \
|
||||
dos2unix \
|
||||
file \
|
||||
fontconfig \
|
||||
less \
|
||||
libfontenc1 \
|
||||
libxfont2 \
|
||||
libxrender1 \
|
||||
@@ -978,6 +987,11 @@ RUN set -eux \
|
||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (npm) wscat --------------------
|
||||
RUN set -eux \
|
||||
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (pip) yamllint --------------------
|
||||
RUN set -eux \
|
||||
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \
|
||||
|
||||
@@ -273,6 +273,7 @@ RUN set -eux \
|
||||
dos2unix \
|
||||
file \
|
||||
fontconfig \
|
||||
less \
|
||||
libfontenc1 \
|
||||
libxfont2 \
|
||||
libxrender1 \
|
||||
@@ -568,12 +569,12 @@ RUN set -eux \
|
||||
&& OS_RELEASE="bullseye" \
|
||||
&& DEB_HOST_ARCH="$( dpkg-architecture --query DEB_HOST_ARCH )" \
|
||||
&& WK_URL="$( \
|
||||
curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/packaging/releases \
|
||||
| awk -F\" "/wkhtmltopdf.*.${OS_RELEASE}_${DEB_HOST_ARCH}\.deb/{print \$(NF-1)}" \
|
||||
curl -sS -k -L --fail 'https://wkhtmltopdf.org/downloads.html' \
|
||||
| awk -F'"' "/wkhtmltopdf.*${OS_RELEASE}_${DEB_HOST_ARCH}\.deb/{print \$(NF-1)}" \
|
||||
| head -1 \
|
||||
)" \
|
||||
&& echo "URL: ${WK_URL}" \
|
||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb "${WK_URL}" \
|
||||
&& curl -sS -k -L --fail -o /tmp/wkhtmltopdf.deb "${WK_URL}" \
|
||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||
&& rm -f /tmp/wkhtmltopdf.deb \
|
||||
\
|
||||
@@ -588,6 +589,13 @@ RUN set -eux \
|
||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (npm) wscat --------------------
|
||||
RUN set -eux \
|
||||
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
|
||||
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
|
||||
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (pip) yamllint --------------------
|
||||
RUN set -eux \
|
||||
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
|
||||
@@ -638,6 +646,7 @@ RUN set -eux \
|
||||
dos2unix \
|
||||
file \
|
||||
fontconfig \
|
||||
less \
|
||||
libfontenc1 \
|
||||
libxfont2 \
|
||||
libxrender1 \
|
||||
@@ -904,6 +913,11 @@ RUN set -eux \
|
||||
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (npm) wscat --------------------
|
||||
RUN set -eux \
|
||||
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
|
||||
&& true
|
||||
|
||||
# -------------------- (pip) yamllint --------------------
|
||||
RUN set -eux \
|
||||
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \
|
||||
|
||||
84
README.md
84
README.md
@@ -1,24 +1,18 @@
|
||||
# PHP-FPM Docker images
|
||||
|
||||
[](https://github.com/devilbox/docker-php-fpm/releases)
|
||||
[](https://github.com/devilbox/docker-php-fpm "github.com/devilbox/docker-php-fpm")
|
||||
[](https://github.com/devilbox/docker-php-fpm/actions?workflow=lint)
|
||||
[](https://github.com/devilbox/docker-php-fpm/actions?workflow=build)
|
||||
[](https://github.com/devilbox/docker-php-fpm/actions?workflow=nightly)
|
||||
[](https://github.com/devilbox/docker-php-fpm/releases)
|
||||
[](https://gitter.im/devilbox/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
[](https://devilbox.discourse.group)
|
||||
[](https://opensource.org/licenses/MIT)
|
||||
|
||||
|
||||
| PHP-FPM | Reference Implementation |
|
||||
|:----------------:|:------------------------:|
|
||||
| <a title="Docker PHP-FPM" href="https://github.com/devilbox/docker-php-fpm" ><img height="82px" src="https://raw.githubusercontent.com/devilbox/artwork/master/submissions_banner/cytopia/02/png/banner_256_trans.png" /></a> | <a title="Devilbox" href="https://github.com/cytopia/devilbox" ><img height="82px" src="https://raw.githubusercontent.com/devilbox/artwork/master/submissions_banner/cytopia/01/png/banner_256_trans.png" /></a> |
|
||||
| Streamlined [PHP-FPM](https://github.com/devilbox/docker-php-fpm) images | The [Devilbox](https://github.com/cytopia/devilbox) |
|
||||
|
||||
|
||||
[](https://hub.docker.com/r/devilbox/php-fpm)
|
||||
[](https://discord.gg/2wP3V6kBj4)
|
||||
[](https://devilbox.discourse.group)
|
||||
|
||||
**Available Architectures:** `amd64`, `arm64`
|
||||
|
||||
[](https://hub.docker.com/r/devilbox/php-fpm)
|
||||
|
||||
This repository will provide you fully functional PHP-FPM Docker images in different flavours,
|
||||
versions and packed with different types of integrated PHP modules. It also solves the problem of **[syncronizing file permissions](doc/syncronize-file-permissions.md)** of mounted volumes between the host and the container.
|
||||
@@ -28,9 +22,21 @@ versions and packed with different types of integrated PHP modules. It also solv
|
||||
This repository also allows you to quickly generate and **build your own custom PHP-FPM Docker image** with whatever PHP extension your desire for whatever PHP version you want and for any platform you're on (`amd64` or `arm64`). Jump to **[#Build your own image](#build-your-own-image)**.
|
||||
|
||||
|
||||
| PHP-FPM | Reference Implementation |
|
||||
|:----------------:|:------------------------:|
|
||||
| <a title="Docker PHP-FPM" href="https://github.com/devilbox/docker-php-fpm" ><img height="82px" src="https://raw.githubusercontent.com/devilbox/artwork/master/submissions_banner/cytopia/02/png/banner_256_trans.png" /></a> | <a title="Devilbox" href="https://github.com/cytopia/devilbox" ><img height="82px" src="https://raw.githubusercontent.com/devilbox/artwork/master/submissions_banner/cytopia/01/png/banner_256_trans.png" /></a> |
|
||||
| Streamlined [PHP-FPM](https://github.com/devilbox/docker-php-fpm) images | The [Devilbox](https://github.com/cytopia/devilbox) |
|
||||
|
||||
|
||||
|
||||
<h2><img id="docker-tags" width="20" src="https://github.com/devilbox/artwork/raw/master/submissions_logo/cytopia/01/png/logo_64_trans.png"> Docker Tags</h2>
|
||||
|
||||
[](https://hub.docker.com/r/devilbox/php-fpm)
|
||||
|
||||
```bash
|
||||
docker pull devilbox/php-fpm:<tag>
|
||||
```
|
||||
|
||||
* [`5.2-base`](Dockerfiles/base/Dockerfile-5.2), [`5.3-base`](Dockerfiles/base/Dockerfile-5.3), [`5.4-base`](Dockerfiles/base/Dockerfile-5.4), [`5.5-base`](Dockerfiles/base/Dockerfile-5.5), [`5.6-base`](Dockerfiles/base/Dockerfile-5.6), [`7.0-base`](Dockerfiles/base/Dockerfile-7.0), [`7.1-base`](Dockerfiles/base/Dockerfile-7.1), [`7.2-base`](Dockerfiles/base/Dockerfile-7.2), [`7.3-base`](Dockerfiles/base/Dockerfile-7.3), [`7.4-base`](Dockerfiles/base/Dockerfile-7.4), [`8.0-base`](Dockerfiles/base/Dockerfile-8.0), [`8.1-base`](Dockerfiles/base/Dockerfile-8.1), [`8.2-base`](Dockerfiles/base/Dockerfile-8.2)
|
||||
* [`5.2-mods`](Dockerfiles/mods/Dockerfile-5.2), [`5.3-mods`](Dockerfiles/mods/Dockerfile-5.3), [`5.4-mods`](Dockerfiles/mods/Dockerfile-5.4), [`5.5-mods`](Dockerfiles/mods/Dockerfile-5.5), [`5.6-mods`](Dockerfiles/mods/Dockerfile-5.6), [`7.0-mods`](Dockerfiles/mods/Dockerfile-7.0), [`7.1-mods`](Dockerfiles/mods/Dockerfile-7.1), [`7.2-mods`](Dockerfiles/mods/Dockerfile-7.2), [`7.3-mods`](Dockerfiles/mods/Dockerfile-7.3), [`7.4-mods`](Dockerfiles/mods/Dockerfile-7.4), [`8.0-mods`](Dockerfiles/mods/Dockerfile-8.0), [`8.1-mods`](Dockerfiles/mods/Dockerfile-8.1), [`8.2-mods`](Dockerfiles/mods/Dockerfile-8.2)
|
||||
* [`5.2-prod`](Dockerfiles/prod/Dockerfile-5.2), [`5.3-prod`](Dockerfiles/prod/Dockerfile-5.3), [`5.4-prod`](Dockerfiles/prod/Dockerfile-5.4), [`5.5-prod`](Dockerfiles/prod/Dockerfile-5.5), [`5.6-prod`](Dockerfiles/prod/Dockerfile-5.6), [`7.0-prod`](Dockerfiles/prod/Dockerfile-7.0), [`7.1-prod`](Dockerfiles/prod/Dockerfile-7.1), [`7.2-prod`](Dockerfiles/prod/Dockerfile-7.2), [`7.3-prod`](Dockerfiles/prod/Dockerfile-7.3), [`7.4-prod`](Dockerfiles/prod/Dockerfile-7.4), [`8.0-prod`](Dockerfiles/prod/Dockerfile-8.0), [`8.1-prod`](Dockerfiles/prod/Dockerfile-8.1), [`8.2-prod`](Dockerfiles/prod/Dockerfile-8.2)
|
||||
@@ -343,17 +349,17 @@ Apart from the provided tools, you will also be able to use the container simila
|
||||
|
||||
#### Provide PHP-FPM port to host
|
||||
```shell
|
||||
$ docker run -d \
|
||||
docker run -d -it \
|
||||
-p 127.0.0.1:9000:9000 \
|
||||
-t devilbox/php-fpm:7.2-prod
|
||||
devilbox/php-fpm:7.2-prod
|
||||
```
|
||||
|
||||
#### Alter PHP-FPM and system timezone
|
||||
```shell
|
||||
$ docker run -d \
|
||||
docker run -d -it \
|
||||
-p 127.0.0.1:9000:9000 \
|
||||
-e TIMEZONE=Europe/Berlin \
|
||||
-t devilbox/php-fpm:7.2-prod
|
||||
devilbox/php-fpm:7.2-prod
|
||||
```
|
||||
|
||||
#### Load custom PHP configuration
|
||||
@@ -361,48 +367,48 @@ $ docker run -d \
|
||||
`config/` is a local directory that will hold the PHP *.ini files you want to load into the Docker container.
|
||||
```shell
|
||||
# Create config directory to be mounted with dummy configuration
|
||||
$ mkdir config
|
||||
mkdir config
|
||||
# Xdebug 2
|
||||
$ echo "xdebug.enable = 1" > config/xdebug.ini
|
||||
echo "xdebug.enable = 1" > config/xdebug.ini
|
||||
# Xdebug 3
|
||||
$ echo "xdebug.mode = debug" > config/xdebug.ini
|
||||
echo "xdebug.mode = debug" > config/xdebug.ini
|
||||
|
||||
# Run container and mount it
|
||||
$ docker run -d \
|
||||
docker run -d -it \
|
||||
-p 127.0.0.1:9000:9000 \
|
||||
-v config:/etc/php-custom.d \
|
||||
-t devilbox/php-fpm:7.2-prod
|
||||
devilbox/php-fpm:7.2-prod
|
||||
```
|
||||
|
||||
#### MySQL connect via 127.0.0.1 (via port-forward)
|
||||
|
||||
Forward MySQL Port from `172.168.0.30` (or any other IP address/hostname) and Port `3306` to the PHP docker on `127.0.0.1:3306`. By this, your PHP files inside the docker can use `127.0.0.1` to connect to a MySQL database.
|
||||
```shell
|
||||
$ docker run -d \
|
||||
docker run -d -it \
|
||||
-p 127.0.0.1:9000:9000 \
|
||||
-e FORWARD_PORTS_TO_LOCALHOST='3306:172.168.0.30:3306' \
|
||||
-t devilbox/php-fpm:7.2-prod
|
||||
devilbox/php-fpm:7.2-prod
|
||||
```
|
||||
|
||||
#### MySQL and Redis connect via 127.0.0.1 (via port-forward)
|
||||
|
||||
Forward MySQL Port from `172.168.0.30:3306` and Redis port from `redis:6379` to the PHP docker on `127.0.0.1:3306` and `127.0.0.1:6379`. By this, your PHP files inside the docker can use `127.0.0.1` to connect to a MySQL or Redis database.
|
||||
```shell
|
||||
$ docker run -d \
|
||||
docker run -d -it \
|
||||
-p 127.0.0.1:9000:9000 \
|
||||
-e FORWARD_PORTS_TO_LOCALHOST='3306:172.168.0.30:3306, 6379:redis:6379' \
|
||||
-t devilbox/php-fpm:7.2-prod
|
||||
devilbox/php-fpm:7.2-prod
|
||||
```
|
||||
|
||||
#### Launch Postfix for mail-catching
|
||||
|
||||
Once you set `$ENABLE_MAIL=2`, all mails sent via any of your PHP applications no matter to which domain, are catched locally into the `devilbox` account. You can also mount the mail directory locally to hook in with mutt and read those mails.
|
||||
```shell
|
||||
$ docker run -d \
|
||||
docker run -d -it \
|
||||
-p 127.0.0.1:9000:9000 \
|
||||
-v /tmp/mail:/var/mail \
|
||||
-e ENABLE_MAIL=2 \
|
||||
-t devilbox/php-fpm:7.2-prod
|
||||
devilbox/php-fpm:7.2-prod
|
||||
```
|
||||
|
||||
#### Webserver and PHP-FPM
|
||||
@@ -410,20 +416,20 @@ $ docker run -d \
|
||||
`~/my-host-www` will be the directory that serves the php files (your document root). Make sure to mount it into both, php and the webserver.
|
||||
```shell
|
||||
# Start PHP-FPM container
|
||||
$ docker run -d \
|
||||
docker run -d -it \
|
||||
-v ~/my-host-www:/var/www/default/htdocs \
|
||||
--name php \
|
||||
-t devilbox/php-fpm:7.2-prod
|
||||
devilbox/php-fpm:7.2-prod
|
||||
|
||||
# Start webserver and link with PHP-FPM
|
||||
$ docker run -d \
|
||||
docker run -d -it \
|
||||
-p 80:80 \
|
||||
-v ~/my-host-www:/var/www/default/htdocs \
|
||||
-e PHP_FPM_ENABLE=1 \
|
||||
-e PHP_FPM_SERVER_ADDR=php \
|
||||
-e PHP_FPM_SERVER_PORT=9000 \
|
||||
--link php \
|
||||
-t devilbox/nginx-mainline
|
||||
devilbox/nginx-mainline
|
||||
```
|
||||
|
||||
#### Create MySQL Backups
|
||||
@@ -434,16 +440,16 @@ The MySQL server could be another Docker container linked to the PHP-FPM contain
|
||||
|
||||
```
|
||||
# Start container
|
||||
$ docker run -d \
|
||||
docker run -d -it \
|
||||
-e MYSQL_BACKUP_USER=root \
|
||||
-e MYSQL_BACKUP_PASS=somepass \
|
||||
-e MYSQL_BACKUP_HOST=mysql \
|
||||
-v ~/backups:/shared/backups \
|
||||
--name php \
|
||||
-t devilbox/php-fpm:7.2-work
|
||||
devilbox/php-fpm:7.2-work
|
||||
|
||||
# Run database dump
|
||||
$ docker exec -it php mysqldump-secure
|
||||
docker exec -it php mysqldump-secure
|
||||
```
|
||||
|
||||
#### Docker Compose reference implementation
|
||||
@@ -559,8 +565,8 @@ In case you seek help, go and visit the community pages.
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="33%" style="width:33%;"><h3><a target="_blank" href="https://devilbox.readthedocs.io">📘 Documentation</a></h3></th>
|
||||
<th width="33%" style="width:33%;"><h3><a target="_blank" href="https://gitter.im/devilbox/Lobby">🗪 Chat</a></h3></th>
|
||||
<th width="33%" style="width:33%;"><h3><a target="_blank" href="https://devilbox.discourse.group">🗫 Forum</a></h3></th>
|
||||
<th width="33%" style="width:33%;"><h3><a target="_blank" href="https://discord.gg/2wP3V6kBj4">🎮 Discord</a></h3></th>
|
||||
<th width="33%" style="width:33%;"><h3><a target="_blank" href="https://devilbox.discourse.group">🗪 Forum</a></h3></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="vertical-align: middle; text-align: center;">
|
||||
@@ -571,8 +577,8 @@ In case you seek help, go and visit the community pages.
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a target="_blank" href="https://gitter.im/devilbox/Lobby">
|
||||
<img title="Chat on Gitter" name="Chat on Gitter" src="https://raw.githubusercontent.com/cytopia/icons/master/400x400/gitter.png" />
|
||||
<a target="_blank" href="https://discord.gg/2wP3V6kBj4">
|
||||
<img title="Chat on Discord" name="Chat on Discord" src="https://raw.githubusercontent.com/cytopia/icons/master/400x400/discord.png" />
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
@@ -583,7 +589,7 @@ In case you seek help, go and visit the community pages.
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a target="_blank" href="https://devilbox.readthedocs.io">devilbox.readthedocs.io</a></td>
|
||||
<td><a target="_blank" href="https://gitter.im/devilbox/Lobby">gitter.im/devilbox</a></td>
|
||||
<td><a target="_blank" href="https://discord.gg/2wP3V6kBj4">discord/devilbox</a></td>
|
||||
<td><a target="_blank" href="https://devilbox.discourse.group">devilbox.discourse.group</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -593,6 +599,8 @@ In case you seek help, go and visit the community pages.
|
||||
|
||||
<h2><img id="credits" width="20" src="https://github.com/devilbox/artwork/raw/master/submissions_logo/cytopia/01/png/logo_64_trans.png"> Credits</h2>
|
||||
|
||||
Thanks for contributing 🖤
|
||||
|
||||
- **[@mrLexx](https://github.com/mrLexx)**
|
||||
- **[@fibis](https://github.com/fibis)**
|
||||
- **[@llaville](https://github.com/llaville)**
|
||||
|
||||
@@ -416,6 +416,7 @@ Additionally to all of the `slim` tools shown above, the following PHP cli tools
|
||||
| [webpack-cli][lnk_webpack-cli] | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
||||
| [wkhtmltopdf][lnk_wkhtmltopdf] | | | | | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
||||
| [wp-cli][lnk_wp-cli] | | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
||||
| [wscat][lnk_wscat] | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
||||
| [yamllint][lnk_yamllint] | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
||||
| [**yarn**][lnk_**yarn**] | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
||||
| [yq][lnk_yq] | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
||||
@@ -467,6 +468,7 @@ Additionally to all of the `slim` tools shown above, the following PHP cli tools
|
||||
[lnk_webpack-cli]: ../php_tools/webpack-cli
|
||||
[lnk_wkhtmltopdf]: ../php_tools/wkhtmltopdf
|
||||
[lnk_wp-cli]: ../php_tools/wp-cli
|
||||
[lnk_wscat]: ../php_tools/wscat
|
||||
[lnk_yamllint]: ../php_tools/yamllint
|
||||
[lnk_**yarn**]: https://yarnpkg.com/cli/install
|
||||
[lnk_yq]: ../php_tools/yq
|
||||
|
||||
@@ -8,12 +8,12 @@ all:
|
||||
command: |
|
||||
DEB_HOST_ARCH="$( dpkg-architecture --query DEB_HOST_ARCH )" \
|
||||
&& WK_URL="$( \
|
||||
curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/packaging/releases \
|
||||
| awk -F\" "/wkhtmltopdf.*.${OS_RELEASE}_${DEB_HOST_ARCH}\.deb/{print \$(NF-1)}" \
|
||||
curl -sS -k -L --fail 'https://wkhtmltopdf.org/downloads.html' \
|
||||
| awk -F'"' "/wkhtmltopdf.*${OS_RELEASE}_${DEB_HOST_ARCH}\.deb/{print \$(NF-1)}" \
|
||||
| head -1 \
|
||||
)" \
|
||||
&& echo "URL: ${WK_URL}" \
|
||||
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb "${WK_URL}" \
|
||||
&& curl -sS -k -L --fail -o /tmp/wkhtmltopdf.deb "${WK_URL}" \
|
||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||
&& rm -f /tmp/wkhtmltopdf.deb \
|
||||
run_dep:
|
||||
|
||||
@@ -6,7 +6,9 @@ all:
|
||||
type: custom
|
||||
command: curl -sS -L --fail "${WPCLI_URL}" -L -o /usr/local/bin/wp
|
||||
build_dep: []
|
||||
run_dep: []
|
||||
# Fixes: sh: 1: less: not found during 'wp help'
|
||||
# It internally pipes it to less.
|
||||
run_dep: [less]
|
||||
pre: WPCLI_URL="https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar"
|
||||
post: chmod +x /usr/local/bin/wp
|
||||
|
||||
|
||||
8
php_tools/wscat/README.md
Normal file
8
php_tools/wscat/README.md
Normal file
@@ -0,0 +1,8 @@
|
||||
# wscat
|
||||
|
||||
WebSocket cat
|
||||
|
||||
| Platform | Url |
|
||||
|----------|------------------------------------------------------------------|
|
||||
| NPM | https://www.npmjs.com/package/wscat |
|
||||
| GitHub | https://github.com/websockets/wscat |
|
||||
13
php_tools/wscat/install.yml
Normal file
13
php_tools/wscat/install.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
|
||||
check: wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false)
|
||||
|
||||
all:
|
||||
type: npm
|
||||
package: wscat
|
||||
binary: wscat
|
||||
version:
|
||||
build_dep: []
|
||||
run_dep: []
|
||||
pre:
|
||||
post:
|
||||
11
php_tools/wscat/options.yml
Normal file
11
php_tools/wscat/options.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
|
||||
# The name of the module
|
||||
name: wscat
|
||||
|
||||
# Exclude module build/installation for the following PHP versions
|
||||
exclude: []
|
||||
|
||||
# In order for this tool to build/install correctly,
|
||||
# the following tools must have been installed first.
|
||||
depends: []
|
||||
Reference in New Issue
Block a user