Update build configuration files
This commit is contained in:
parent
9a96363ff7
commit
9aec0bbff8
27
.githooks/prepare-commit-msg
Executable file
27
.githooks/prepare-commit-msg
Executable file
|
@ -0,0 +1,27 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Do not edit this file. It is automatically generated by https://www.oliverdavies.uk/build-configs.
|
||||||
|
|
||||||
|
# Load the issue ID from an `.issue-id` file within the project and replace the
|
||||||
|
# `ISSUE_ID` placeholder within a Git commit message.
|
||||||
|
#
|
||||||
|
# For example, running `echo "OD-123" > .issue-id` will add `Refs: OD-123` to
|
||||||
|
# the commit message.
|
||||||
|
#
|
||||||
|
# This also works with multiple issue IDs in the same string, e.g.
|
||||||
|
# "OD-123 OD-456", or IDs on multiple lines.
|
||||||
|
|
||||||
|
set -o errexit
|
||||||
|
set -o nounset
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
PROJECT_DIR=$(git rev-parse --show-toplevel)
|
||||||
|
ISSUE_FILE="$PROJECT_DIR/.issue-id"
|
||||||
|
|
||||||
|
if [ -f "${ISSUE_FILE}" ]; then
|
||||||
|
ISSUE_IDS=$(cat "${ISSUE_FILE}" | tr '\n' ',' | tr ' ' ',' | sed 's/,$//' | sed 's/,/, /g')
|
||||||
|
|
||||||
|
if [ -n "${ISSUE_IDS}" ]; then
|
||||||
|
sed -i.bak "s/# Refs:/Refs: $ISSUE_IDS/" "$1"
|
||||||
|
fi
|
||||||
|
fi
|
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -3,6 +3,7 @@
|
||||||
.editorconfig
|
.editorconfig
|
||||||
.env
|
.env
|
||||||
.gitattributes
|
.gitattributes
|
||||||
|
.phpunit.result.cache
|
||||||
vendor/
|
vendor/
|
||||||
web/.csslintrc
|
web/.csslintrc
|
||||||
web/.eslintignore
|
web/.eslintignore
|
||||||
|
@ -39,7 +40,3 @@ web/web.config
|
||||||
.env
|
.env
|
||||||
docker-compose.override.yaml
|
docker-compose.override.yaml
|
||||||
|
|
||||||
|
|
||||||
!/phpstan.neon
|
|
||||||
!/tests/Architecture/**
|
|
||||||
|
|
||||||
|
|
|
@ -3,12 +3,14 @@
|
||||||
x-proxy: &default-proxy
|
x-proxy: &default-proxy
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
- web
|
- proxy
|
||||||
labels:
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
- "traefik.docker.network=traefik_proxy"
|
- "traefik.docker.network=traefik_proxy"
|
||||||
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host(
|
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host(
|
||||||
`${COMPOSE_PROJECT_NAME}.localhost`,
|
`${COMPOSE_PROJECT_NAME}.docker.localhost`,
|
||||||
)"
|
)"
|
||||||
|
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.tls=true"
|
||||||
|
|
||||||
x-app: &default-app
|
x-app: &default-app
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -24,7 +26,7 @@ x-app: &default-app
|
||||||
cpus: "${DOCKER_MYSQL_CPUS:-0}"
|
cpus: "${DOCKER_MYSQL_CPUS:-0}"
|
||||||
memory: "${DOCKER_MYSQL_MEMORY:-0}"
|
memory: "${DOCKER_MYSQL_MEMORY:-0}"
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enabled=false"
|
- "traefik.enable=false"
|
||||||
tty: true
|
tty: true
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
@ -55,7 +57,7 @@ services:
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enabled=false"
|
- "traefik.enable=false"
|
||||||
environment:
|
environment:
|
||||||
MYSQL_RANDOM_ROOT_PASSWORD: true
|
MYSQL_RANDOM_ROOT_PASSWORD: true
|
||||||
profiles: [database]
|
profiles: [database]
|
||||||
|
@ -64,6 +66,6 @@ volumes:
|
||||||
db-data: {}
|
db-data: {}
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
web:
|
proxy:
|
||||||
external: true
|
external: true
|
||||||
name: traefik_proxy
|
name: traefik_proxy
|
||||||
|
|
Loading…
Reference in a new issue