-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from uselagoon/lagoon-name-types
- Loading branch information
Showing
14 changed files
with
751 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
146 changes: 146 additions & 0 deletions
146
test-resources/identify-ingress/test16/docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
version: '2.3' | ||
|
||
x-example-image-version: | ||
&example-image-version ${EXAMPLE_IMAGE_VERSION:-4.x} | ||
|
||
x-project: | ||
&project ${PROJECT_NAME:-mysite} | ||
|
||
x-volumes: | ||
&default-volumes | ||
volumes: | ||
- .:/app:${VOLUME_FLAGS:-delegated} ### Local overrides to mount host filesystem. Automatically removed in CI and PROD. | ||
- ./docroot/sites/default/files:/app/docroot/sites/default/files:${VOLUME_FLAGS:-delegated} ### Local overrides to mount host filesystem. Automatically removed in CI and PROD. | ||
|
||
x-environment: | ||
&default-environment | ||
LAGOON_PROJECT: *project | ||
DRUPAL_HASH_SALT: fakehashsaltfakehashsaltfakehashsalt | ||
LAGOON_LOCALDEV_URL: ${LOCALDEV_URL:-http://mysite.docker.amazee.io} | ||
LAGOON_ROUTE: ${LOCALDEV_URL:-http://mysite.docker.amazee.io} | ||
GITHUB_TOKEN: ${GITHUB_TOKEN:-} | ||
EXAMPLE_KEY: ${EXAMPLE_KEY:-} | ||
EXAMPLE_IMAGE_VERSION: ${EXAMPLE_IMAGE_VERSION:-latest} | ||
LAGOON_ENVIRONMENT_TYPE: ${LAGOON_ENVIRONMENT_TYPE:-local} | ||
DRUPAL_REFRESH_SEARCHAPI: ${DRUPAL_REFRESH_SEARCHAPI:-} | ||
EXAMPLE_INGRESS_PSK: ${EXAMPLE_INGRESS_PSK:-} | ||
EXAMPLE_INGRESS_HEADER: ${EXAMPLE_INGRESS_HEADER:-} | ||
EXAMPLE_INGRESS_ENABLED: ${EXAMPLE_INGRESS_ENABLED:-} | ||
REDIS_CACHE_PREFIX: "tide_" | ||
DB_ALIAS: ${DB_ALIAS:-bay.production} | ||
|
||
|
||
services: | ||
|
||
cli: | ||
build: | ||
context: . | ||
dockerfile: .docker/Dockerfile.cli | ||
args: | ||
COMPOSER: ${COMPOSER:-composer.json} | ||
EXAMPLE_IMAGE_VERSION: *example-image-version | ||
image: *project | ||
environment: | ||
<< : *default-environment | ||
<< : *default-volumes | ||
volumes_from: ### Local overrides to mount host SSH keys. Automatically removed in CI. | ||
- container:amazeeio-ssh-agent ### Local overrides to mount host SSH keys. Automatically removed in CI. | ||
labels: | ||
lagoon.type: cli-persistent | ||
lagoon.persistent: /app/docroot/sites/default/files/ | ||
lagoon.persistent.name: nginx-php | ||
lagoon.persistent.size: 5Gi | ||
|
||
nginx: | ||
build: | ||
context: . | ||
dockerfile: .docker/Dockerfile.nginx-drupal | ||
args: | ||
CLI_IMAGE: *project | ||
EXAMPLE_IMAGE_VERSION: *example-image-version | ||
<< : *default-volumes | ||
environment: | ||
<< : *default-environment | ||
depends_on: | ||
- cli | ||
networks: | ||
- amazeeio-network | ||
- default | ||
labels: | ||
lagoon.type: nginx-php-persistent | ||
lagoon.persistent: /app/docroot/sites/default/files/ | ||
lagoon.persistent.size: 5Gi | ||
lagoon.name: nginx-php | ||
expose: | ||
- "8080" | ||
php: | ||
build: | ||
context: . | ||
dockerfile: .docker/Dockerfile.php | ||
args: | ||
CLI_IMAGE: *project | ||
EXAMPLE_IMAGE_VERSION: *example-image-version | ||
environment: | ||
<< : *default-environment | ||
<< : *default-volumes | ||
depends_on: | ||
- cli | ||
labels: | ||
lagoon.type: nginx-php-persistent | ||
lagoon.persistent: /app/docroot/sites/default/files/ | ||
lagoon.persistent.size: 5Gi | ||
lagoon.name: nginx-php | ||
|
||
mariadb: | ||
image: amazeeio/mariadb-drupal | ||
environment: | ||
<< : *default-environment | ||
ports: | ||
- "3306" # Find port on host with `ahoy info` or `docker-compose port mariadb 3306` | ||
labels: | ||
lagoon.type: mariadb-shared | ||
|
||
redis: | ||
image: amazeeio/redis | ||
labels: | ||
lagoon.type: redis | ||
|
||
elasticsearch: | ||
build: | ||
context: . | ||
dockerfile: .docker/Dockerfile.elasticsearch | ||
args: | ||
- ES_TPL=${ES_TPL:-elasticsearch.yml} | ||
environment: | ||
- discovery.type=single-node | ||
labels: | ||
lagoon.type: none | ||
|
||
chrome: | ||
image: selenium/standalone-chrome:3.141.59-oxygen | ||
shm_size: '1gb' | ||
environment: | ||
<< : *default-environment | ||
<< : *default-volumes | ||
depends_on: | ||
- cli | ||
labels: | ||
lagoon.type: none | ||
|
||
clamav: | ||
image: clamav/clamav:${EXAMPLE_IMAGE_VERSION:-4.x} | ||
environment: | ||
<< : *default-environment | ||
ports: | ||
- "3310" | ||
labels: | ||
lagoon.type: none | ||
|
||
|
||
networks: | ||
amazeeio-network: | ||
external: true | ||
|
||
volumes: | ||
app: {} | ||
files: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
docker-compose-yaml: ../test-resources/template-autogenerated/test20/docker-compose.yml | ||
|
||
project: content-example-com | ||
|
||
environments: | ||
production: | ||
cronjobs: | ||
- name: drush cron | ||
schedule: "*/15 * * * *" | ||
command: 'drush cron' | ||
service: cli | ||
|
||
routes: | ||
- nginx-php: | ||
- "content.example.com": | ||
monitoring-path: "/api/v1" | ||
tls-acme: 'false' | ||
insecure: Allow | ||
hsts: max-age=31536000 | ||
master: | ||
cronjobs: | ||
- name: drush cron | ||
schedule: "0 1,4 * * *" | ||
command: 'drush cron' | ||
service: cli | ||
|
||
routes: | ||
- nginx-php: | ||
- "master.content.example.com": | ||
tls-acme: 'false' | ||
insecure: Allow | ||
hsts: max-age=31536000 | ||
develop: | ||
cronjobs: | ||
- name: drush cron | ||
schedule: "0 1,4 * * *" | ||
command: 'drush cron' | ||
service: cli | ||
|
||
routes: | ||
- nginx-php: | ||
- "develop.content.example.com": | ||
tls-acme: 'false' | ||
insecure: Allow | ||
hsts: max-age=31536000 |
45 changes: 45 additions & 0 deletions
45
test-resources/template-autogenerated/test20-results/nginx-php.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
annotations: | ||
fastly.amazee.io/watch: "false" | ||
ingress.kubernetes.io/ssl-redirect: "false" | ||
kubernetes.io/tls-acme: "true" | ||
lagoon.sh/branch: feature/migration | ||
lagoon.sh/version: v2.7.x | ||
nginx.ingress.kubernetes.io/server-snippet: | | ||
add_header X-Robots-Tag "noindex, nofollow"; | ||
nginx.ingress.kubernetes.io/ssl-redirect: "false" | ||
creationTimestamp: null | ||
labels: | ||
app.kubernetes.io/instance: nginx-php | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: autogenerated-ingress | ||
helm.sh/chart: autogenerated-ingress-0.1.0 | ||
lagoon.sh/autogenerated: "true" | ||
lagoon.sh/buildType: branch | ||
lagoon.sh/environment: feature-migration | ||
lagoon.sh/environmentType: development | ||
lagoon.sh/project: content-example-com | ||
lagoon.sh/service: nginx-php | ||
lagoon.sh/service-type: nginx-php-persistent | ||
name: nginx-php | ||
spec: | ||
rules: | ||
- host: nginx-php.feature-migration.content-example-com.example.com | ||
http: | ||
paths: | ||
- backend: | ||
service: | ||
name: nginx-php | ||
port: | ||
name: http | ||
path: / | ||
pathType: Prefix | ||
tls: | ||
- hosts: | ||
- nginx-php.feature-migration.content-example-com.example.com | ||
secretName: nginx-php-tls | ||
status: | ||
loadBalancer: {} |
Oops, something went wrong.