Skip to content

Commit f8ac802

Browse files
publish 'wordpress' harness
1 parent 035eaa5 commit f8ac802

186 files changed

Lines changed: 7170 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

LICENSE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2020, Inviqa
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
blackfire:
2+
image: {{ @('services.blackfire.image') }}
3+
labels:
4+
# deprecated, a later workspace release will disable by default
5+
- traefik.enable=false
6+
environment: {{ to_nice_yaml(deep_merge([
7+
@('services.blackfire.environment'),
8+
@('services.blackfire.environment_dynamic'),
9+
@('services.blackfire.environment_secrets')
10+
]), 2, 6) | raw }}
11+
networks:
12+
- private
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
chrome:
2+
{% if host_architecture() == 'amd64' %}
3+
image: yukinying/chrome-headless-browser:latest
4+
command: ["--no-sandbox", "--disable-gpu", "--headless", "--disable-dev-shm-usage", "--remote-debugging-address=0.0.0.0", "--remote-debugging-port=9222", "--user-data-dir=/data"]
5+
{% else %}
6+
image: quay.io/inviqa_images/chromium:latest
7+
{% endif %}
8+
labels:
9+
# deprecated, a later workspace release will disable by default
10+
- traefik.enable=false
11+
networks:
12+
- private
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{% set syncvolume = false %}
2+
{% if @('host.os') == 'darwin' and bool(@('mutagen')) %}
3+
{% set syncvolume = true %}
4+
{% endif %}
5+
6+
console:
7+
build:
8+
context: ./
9+
dockerfile: .my127ws/docker/image/console/Dockerfile
10+
{% if @('app.build') == 'dynamic' %}
11+
entrypoint: [/entrypoint.dynamic.sh]
12+
command: [sleep, infinity]
13+
volumes:
14+
- {{ (syncvolume) ? @('workspace.name') ~ '-sync:/app:nocopy' : ('./:/app' ~ @('docker.compose.host_volume_options')) }}
15+
- ./.my127ws/application:/home/build/application
16+
- ./.my127ws/docker/image/console/root/lib/task:/lib/task
17+
- ./.my127ws:/.my127ws
18+
{% else %}
19+
image: {{ @('services.console.image') }}
20+
{% endif %}
21+
labels:
22+
# deprecated, a later workspace release will disable by default
23+
- traefik.enable=false
24+
environment: {{ to_nice_yaml(deep_merge([
25+
@('services.php-base.environment'),
26+
@('services.php-base.environment_dynamic'),
27+
@('services.console.environment'),
28+
@('services.console.environment_dynamic'),
29+
@('services.php-base.environment_secrets'),
30+
@('services.console.environment_secrets')
31+
]), 2, 6) | raw }}
32+
networks:
33+
- private
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
cron:
2+
build:
3+
context: ./
4+
dockerfile: .my127ws/docker/image/cron/Dockerfile
5+
{% if @('app.build') == 'dynamic' %}
6+
volumes:
7+
- {{ (syncvolume) ? @('workspace.name') ~ '-sync:/app:nocopy' : ('./:/app' ~ @('docker.compose.host_volume_options')) }}
8+
- ./.my127ws/application:/home/build/application
9+
{% else %}
10+
image: {{ @('services.cron.image') }}
11+
{% endif %}
12+
environment: {{ to_nice_yaml(deep_merge([
13+
@('services.php-base.environment'),
14+
@('services.php-base.environment_dynamic'),
15+
@('services.cron.environment'),
16+
@('services.cron.environment_dynamic'),
17+
@('services.php-base.environment_secrets'),
18+
@('services.cron.environment_secrets')
19+
]), 2, 6) | raw }}
20+
networks:
21+
- private
22+
labels:
23+
# deprecated, a later workspace release will disable by default
24+
- traefik.enable=false
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
elasticsearch:
2+
image: {{ @('services.elasticsearch.image') }}
3+
labels:
4+
# deprecated, a later workspace release will disable by default
5+
- traefik.enable=false
6+
environment:
7+
ES_JAVA_OPTS: -Xms512m -Xmx512m
8+
discovery.type: single-node
9+
networks:
10+
- private
11+
{% if @('app.build') != 'static' and @('docker.port_forward.enabled') %}
12+
ports:
13+
- "127.0.0.1:0:9200"
14+
- "127.0.0.1:0:9300"
15+
{% endif %}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
lighthouse:
2+
build: .my127ws/docker/image/lighthouse
3+
entrypoint: "/usr/bin/dumb-init --"
4+
command: "/bin/true"
5+
environment:
6+
TARGET_URL: "{{ @('lighthouse.target.url') | raw }}"
7+
OUTPUT_RESULTS: "${OUTPUT_RESULTS:-}"
8+
{% if @('app.build') == 'dynamic' %}
9+
volumes:
10+
- .my127ws/docker/image/lighthouse/root/app:/app
11+
{% endif %}
12+
networks:
13+
- private
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
memcached:
2+
image: {{ @('services.memcached.image') }}
3+
labels:
4+
# deprecated, a later workspace release will disable by default
5+
- traefik.enable=false
6+
networks:
7+
- private
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
mongodb:
2+
image: {{ @('services.mongodb.image') }}
3+
environment: {{ to_nice_yaml(deep_merge([
4+
@('services.mongodb.environment'),
5+
@('services.mongodb.environment_dynamic'),
6+
@('services.mongodb.environment_secrets')
7+
]), 2, 6) | raw }}
8+
labels:
9+
# deprecated, a later workspace release will disable by default
10+
- traefik.enable=false
11+
networks:
12+
- private
13+
expose:
14+
- 27017
15+
volumes:
16+
- /data/db
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{% set command = @('services.mysql.options')
2+
| filter(v => v is not empty)
3+
| map((value, var) => '--' ~ var ~ '=' ~ value)
4+
| reduce((carry, v) => carry|merge([v]), []) %}
5+
mysql:
6+
image: {{ @('services.mysql.image') }}
7+
labels:
8+
# deprecated, a later workspace release will disable by default
9+
- traefik.enable=false
10+
command: {{ to_nice_yaml(command, 2, 6) }}
11+
environment: {{ to_nice_yaml(deep_merge([
12+
@('services.mysql.environment'),
13+
@('services.mysql.environment_dynamic'),
14+
@('services.mysql.environment_secrets')
15+
]), 2, 6) | raw }}
16+
networks:
17+
- private
18+
{% if @('app.build') != 'static' and @('docker.port_forward.enabled') %}
19+
ports:
20+
- "127.0.0.1:{{ @('database.port_forward') ? @('database.port_forward') : '0' }}:3306"
21+
{% endif %}

0 commit comments

Comments
 (0)