mirror of
https://github.com/opdavies/build-configs.git
synced 2025-03-13 05:26:56 +00:00
Update snapshots
This commit is contained in:
parent
3d573975cd
commit
bfe0117e5e
|
@ -7,6 +7,12 @@ export COMPOSE_PROFILES=web,php,database
|
|||
|
||||
export DOCKER_WEB_VOLUME=.:/app
|
||||
|
||||
export DRUSH_OPTIONS_URI="https://${COMPOSE_PROJECT_NAME}.docker.localhost"
|
||||
|
||||
export MYSQL_DATABASE=app
|
||||
export MYSQL_PASSWORD=app
|
||||
export MYSQL_USER=app
|
||||
|
||||
export DB_NAME="$MYSQL_DATABASE"
|
||||
export DB_PASSWORD="$MYSQL_PASSWORD"
|
||||
export DB_USER="$MYSQL_USER"
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
.editorconfig
|
||||
.env
|
||||
.gitattributes
|
||||
.phpunit.result.cache
|
||||
vendor/
|
||||
web/.csslintrc
|
||||
web/.eslintignore
|
||||
|
@ -39,8 +40,3 @@ web/web.config
|
|||
.env
|
||||
docker-compose.override.yaml
|
||||
|
||||
|
||||
/bin/
|
||||
/libraries/
|
||||
/web/profiles/contrib/
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ RUN apt-get update -yqq \
|
|||
|
||||
RUN docker-php-ext-configure gd --with-jpeg
|
||||
|
||||
RUN docker-php-ext-install bcmath gd pdo_mysql zip
|
||||
RUN docker-php-ext-install bcmath gd opcache pdo_mysql zip
|
||||
|
||||
COPY --chown=app:app phpunit.xml* ./
|
||||
|
||||
|
|
|
@ -18,9 +18,9 @@ function ci:test {
|
|||
|
||||
docker compose version
|
||||
|
||||
docker network create traefik_proxy
|
||||
docker network create traefik_proxy || true
|
||||
|
||||
cp --no-clobber .env.example .env
|
||||
cp --no-clobber .env.example .env || true
|
||||
|
||||
docker compose build --progress plain
|
||||
|
||||
|
@ -38,18 +38,29 @@ function cmd {
|
|||
}
|
||||
|
||||
|
||||
# Execute any Composer command.
|
||||
function composer {
|
||||
_exec php composer "${@}"
|
||||
}
|
||||
|
||||
# Connect to the database.
|
||||
function db {
|
||||
[[ -f ".env" ]] && source .env
|
||||
|
||||
docker compose exec database mysql -u"$DB_USER" -p"$DB_PASSWORD" "$DB_NAME"
|
||||
}
|
||||
|
||||
# Execute any Drush command.
|
||||
function drush {
|
||||
_exec php drush "${@}"
|
||||
}
|
||||
|
||||
# Disable Git hooks.
|
||||
function git-hooks:off {
|
||||
git config --unset core.hooksPath
|
||||
}
|
||||
|
||||
# Enable Git hooks.
|
||||
function git-hooks:on {
|
||||
git config core.hooksPath .githooks
|
||||
}
|
||||
|
@ -68,12 +79,14 @@ function install {
|
|||
drush site:install -y "${@}"
|
||||
}
|
||||
|
||||
# Lint the Dockerfile.
|
||||
function lint:dockerfile {
|
||||
docker container run --rm -i \
|
||||
hadolint/hadolint hadolint --ignore DL3008 --ignore DL3059 -t style "${@}" - < Dockerfile
|
||||
hadolint/hadolint hadolint --ignore DL3008 --ignore DL3022 --ignore DL3059 -t style "${@}" - < Dockerfile
|
||||
}
|
||||
|
||||
|
||||
# Start the project.
|
||||
function start {
|
||||
cp -v --no-clobber .env.example .env || true
|
||||
|
||||
|
@ -103,7 +116,7 @@ function _run {
|
|||
--entrypoint "${command}" \
|
||||
--no-deps \
|
||||
--rm \
|
||||
"${TTY}" \
|
||||
${TTY} \
|
||||
"${service}" "${@}"
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
# Do not edit this file. It is automatically generated by https://www.oliverdavies.uk/build-configs.
|
||||
|
||||
server {
|
||||
server_name _;
|
||||
|
||||
root /app/web;
|
||||
|
||||
location / {
|
||||
try_files $uri /index.php?$query_string;
|
||||
}
|
||||
|
||||
location ~ \.php(/|$) {
|
||||
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
|
||||
try_files $fastcgi_script_name =404;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param QUERY_STRING $query_string;
|
||||
fastcgi_intercept_errors on;
|
||||
fastcgi_pass php:9000;
|
||||
}
|
||||
}
|
|
@ -7,6 +7,12 @@ export COMPOSE_PROFILES=web,php,database
|
|||
|
||||
export DOCKER_WEB_VOLUME=.:/app
|
||||
|
||||
export DRUSH_OPTIONS_URI="https://${COMPOSE_PROJECT_NAME}.docker.localhost"
|
||||
|
||||
export MYSQL_DATABASE=app
|
||||
export MYSQL_PASSWORD=app
|
||||
export MYSQL_USER=app
|
||||
|
||||
export DB_NAME="$MYSQL_DATABASE"
|
||||
export DB_PASSWORD="$MYSQL_PASSWORD"
|
||||
export DB_USER="$MYSQL_USER"
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
.editorconfig
|
||||
.env
|
||||
.gitattributes
|
||||
.phpunit.result.cache
|
||||
vendor/
|
||||
web/.csslintrc
|
||||
web/.eslintignore
|
||||
|
@ -39,5 +40,3 @@ web/web.config
|
|||
.env
|
||||
docker-compose.override.yaml
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ RUN apt-get update -yqq \
|
|||
|
||||
RUN docker-php-ext-configure gd --with-jpeg
|
||||
|
||||
RUN docker-php-ext-install gd pdo_mysql zip
|
||||
RUN docker-php-ext-install gd opcache pdo_mysql zip
|
||||
|
||||
COPY --chown=app:app phpunit.xml* ./
|
||||
|
||||
|
|
|
@ -18,9 +18,9 @@ function ci:test {
|
|||
|
||||
docker compose version
|
||||
|
||||
docker network create traefik_proxy
|
||||
docker network create traefik_proxy || true
|
||||
|
||||
cp --no-clobber .env.example .env
|
||||
cp --no-clobber .env.example .env || true
|
||||
|
||||
docker compose build --progress plain
|
||||
|
||||
|
@ -38,18 +38,29 @@ function cmd {
|
|||
}
|
||||
|
||||
|
||||
# Execute any Composer command.
|
||||
function composer {
|
||||
_exec php composer "${@}"
|
||||
}
|
||||
|
||||
# Connect to the database.
|
||||
function db {
|
||||
[[ -f ".env" ]] && source .env
|
||||
|
||||
docker compose exec database mysql -u"$DB_USER" -p"$DB_PASSWORD" "$DB_NAME"
|
||||
}
|
||||
|
||||
# Execute any Drush command.
|
||||
function drush {
|
||||
_exec php drush "${@}"
|
||||
}
|
||||
|
||||
# Disable Git hooks.
|
||||
function git-hooks:off {
|
||||
git config --unset core.hooksPath
|
||||
}
|
||||
|
||||
# Enable Git hooks.
|
||||
function git-hooks:on {
|
||||
git config core.hooksPath .githooks
|
||||
}
|
||||
|
@ -68,12 +79,14 @@ function install {
|
|||
drush site:install -y "${@}"
|
||||
}
|
||||
|
||||
# Lint the Dockerfile.
|
||||
function lint:dockerfile {
|
||||
docker container run --rm -i \
|
||||
hadolint/hadolint hadolint --ignore DL3008 --ignore DL3059 -t style "${@}" - < Dockerfile
|
||||
hadolint/hadolint hadolint --ignore DL3008 --ignore DL3022 --ignore DL3059 -t style "${@}" - < Dockerfile
|
||||
}
|
||||
|
||||
|
||||
# Start the project.
|
||||
function start {
|
||||
cp -v --no-clobber .env.example .env || true
|
||||
|
||||
|
@ -103,7 +116,7 @@ function _run {
|
|||
--entrypoint "${command}" \
|
||||
--no-deps \
|
||||
--rm \
|
||||
"${TTY}" \
|
||||
${TTY} \
|
||||
"${service}" "${@}"
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
# Do not edit this file. It is automatically generated by https://www.oliverdavies.uk/build-configs.
|
||||
|
||||
server {
|
||||
server_name _;
|
||||
|
||||
root /app/web;
|
||||
|
||||
location / {
|
||||
try_files $uri /index.php?$query_string;
|
||||
}
|
||||
|
||||
location ~ \.php(/|$) {
|
||||
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
|
||||
try_files $fastcgi_script_name =404;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param QUERY_STRING $query_string;
|
||||
fastcgi_intercept_errors on;
|
||||
fastcgi_pass php:9000;
|
||||
}
|
||||
}
|
|
@ -7,6 +7,12 @@ export COMPOSE_PROFILES=web,php,database
|
|||
|
||||
export DOCKER_WEB_VOLUME=.:/app
|
||||
|
||||
export DRUSH_OPTIONS_URI="https://${COMPOSE_PROJECT_NAME}.docker.localhost"
|
||||
|
||||
export MYSQL_DATABASE=app
|
||||
export MYSQL_PASSWORD=app
|
||||
export MYSQL_USER=app
|
||||
|
||||
export DB_NAME="$MYSQL_DATABASE"
|
||||
export DB_PASSWORD="$MYSQL_PASSWORD"
|
||||
export DB_USER="$MYSQL_USER"
|
||||
|
|
3
tests/snapshots/output/drupal/.gitignore
vendored
3
tests/snapshots/output/drupal/.gitignore
vendored
|
@ -3,6 +3,7 @@
|
|||
.editorconfig
|
||||
.env
|
||||
.gitattributes
|
||||
.phpunit.result.cache
|
||||
vendor/
|
||||
web/.csslintrc
|
||||
web/.eslintignore
|
||||
|
@ -39,5 +40,3 @@ web/web.config
|
|||
.env
|
||||
docker-compose.override.yaml
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ RUN apt-get update -yqq \
|
|||
|
||||
RUN docker-php-ext-configure gd --with-jpeg
|
||||
|
||||
RUN docker-php-ext-install gd pdo_mysql zip
|
||||
RUN docker-php-ext-install gd opcache pdo_mysql zip
|
||||
|
||||
COPY --chown=app:app phpunit.xml* ./
|
||||
|
||||
|
|
|
@ -18,9 +18,9 @@ function ci:test {
|
|||
|
||||
docker compose version
|
||||
|
||||
docker network create traefik_proxy
|
||||
docker network create traefik_proxy || true
|
||||
|
||||
cp --no-clobber .env.example .env
|
||||
cp --no-clobber .env.example .env || true
|
||||
|
||||
docker compose build --progress plain
|
||||
|
||||
|
@ -39,22 +39,34 @@ function cmd {
|
|||
docker compose exec php "${@}"
|
||||
}
|
||||
|
||||
# Run coding standards checks.
|
||||
function coding-standards {
|
||||
cmd phpcs "${@}"
|
||||
}
|
||||
|
||||
# Execute any Composer command.
|
||||
function composer {
|
||||
_exec php composer "${@}"
|
||||
}
|
||||
|
||||
# Connect to the database.
|
||||
function db {
|
||||
[[ -f ".env" ]] && source .env
|
||||
|
||||
docker compose exec database mysql -u"$DB_USER" -p"$DB_PASSWORD" "$DB_NAME"
|
||||
}
|
||||
|
||||
# Execute any Drush command.
|
||||
function drush {
|
||||
_exec php drush "${@}"
|
||||
}
|
||||
|
||||
# Disable Git hooks.
|
||||
function git-hooks:off {
|
||||
git config --unset core.hooksPath
|
||||
}
|
||||
|
||||
# Enable Git hooks.
|
||||
function git-hooks:on {
|
||||
git config core.hooksPath .githooks
|
||||
}
|
||||
|
@ -73,16 +85,19 @@ function install {
|
|||
drush site:install -y "${@}"
|
||||
}
|
||||
|
||||
# Lint the Dockerfile.
|
||||
function lint:dockerfile {
|
||||
docker container run --rm -i \
|
||||
hadolint/hadolint hadolint --ignore DL3008 --ignore DL3059 -t style "${@}" - < Dockerfile
|
||||
hadolint/hadolint hadolint --ignore DL3008 --ignore DL3022 --ignore DL3059 -t style "${@}" - < Dockerfile
|
||||
}
|
||||
|
||||
# Run code quality checks.
|
||||
function quality {
|
||||
coding-standards
|
||||
static-analysis
|
||||
}
|
||||
|
||||
# Start the project.
|
||||
function start {
|
||||
cp -v --no-clobber .env.example .env || true
|
||||
|
||||
|
@ -121,7 +136,7 @@ function _run {
|
|||
--entrypoint "${command}" \
|
||||
--no-deps \
|
||||
--rm \
|
||||
"${TTY}" \
|
||||
${TTY} \
|
||||
"${service}" "${@}"
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
# Do not edit this file. It is automatically generated by https://www.oliverdavies.uk/build-configs.
|
||||
|
||||
server {
|
||||
server_name _;
|
||||
|
||||
root /app/web;
|
||||
|
||||
location / {
|
||||
try_files $uri /index.php?$query_string;
|
||||
}
|
||||
|
||||
location ~ \.php(/|$) {
|
||||
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
|
||||
try_files $fastcgi_script_name =404;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param QUERY_STRING $query_string;
|
||||
fastcgi_intercept_errors on;
|
||||
fastcgi_pass php:9000;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue