build: update configuration files
This commit is contained in:
parent
6d6bf27d6f
commit
e885ed948a
10 changed files with 33 additions and 13 deletions
2
.dockerignore
Normal file
2
.dockerignore
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
/.github
|
||||||
|
/README.md
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Do not edit this file. It is automatically generated by 'build-configs'.
|
||||||
|
|
||||||
export DOCKER_UID=1000
|
export DOCKER_UID=1000
|
||||||
|
|
||||||
export COMPOSE_PROJECT_NAME=docker-example-drupal-localgov
|
export COMPOSE_PROJECT_NAME=docker-example-drupal-localgov
|
||||||
|
|
@ -5,6 +7,6 @@ export COMPOSE_PROFILES=web,php,database
|
||||||
|
|
||||||
export DOCKER_WEB_VOLUME=.:/app
|
export DOCKER_WEB_VOLUME=.:/app
|
||||||
|
|
||||||
export MYSQL_DATABASE=app
|
export MYSQL_DATABASE=drupal
|
||||||
export MYSQL_PASSWORD=app
|
export MYSQL_PASSWORD=drupal
|
||||||
export MYSQL_USER=app
|
export MYSQL_USER=drupal
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Do not edit this file. It is automatically generated by 'build-configs'.
|
||||||
|
|
||||||
FROM php:8.1-fpm-bullseye AS base
|
FROM php:8.1-fpm-bullseye AS base
|
||||||
|
|
||||||
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
|
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
|
||||||
|
|
@ -29,8 +31,11 @@ RUN apt-get update -yqq \
|
||||||
|
|
||||||
RUN docker-php-ext-install gd pdo_mysql zip
|
RUN docker-php-ext-install gd pdo_mysql zip
|
||||||
|
|
||||||
|
COPY --chown=app:app phpunit.xml* ./
|
||||||
|
|
||||||
COPY --chown=app:app assets assets
|
COPY --chown=app:app assets assets
|
||||||
|
|
||||||
|
|
||||||
USER app
|
USER app
|
||||||
|
|
||||||
RUN composer validate --strict
|
RUN composer validate --strict
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Do not edit this file. It is automatically generated by 'build-configs'.
|
||||||
|
|
||||||
x-app: &default-app
|
x-app: &default-app
|
||||||
volumes:
|
volumes:
|
||||||
- "${DOCKER_WEB_VOLUME:-./web:/app/web}"
|
- "${DOCKER_WEB_VOLUME:-./web:/app/web}"
|
||||||
|
|
@ -32,12 +34,14 @@ services:
|
||||||
`${COMPOSE_PROJECT_NAME}.localhost`,
|
`${COMPOSE_PROJECT_NAME}.localhost`,
|
||||||
)"
|
)"
|
||||||
profiles: [web]
|
profiles: [web]
|
||||||
|
|
||||||
php:
|
php:
|
||||||
<<: *default-app
|
<<: *default-app
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
target: build
|
target: build
|
||||||
|
volumes:
|
||||||
|
- .:/app
|
||||||
depends_on:
|
depends_on:
|
||||||
- database
|
- database
|
||||||
profiles: [php]
|
profiles: [php]
|
||||||
|
|
|
||||||
16
justfile
16
justfile
|
|
@ -1,19 +1,19 @@
|
||||||
|
# Do not edit this file. It is automatically generated by 'build-configs'.
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@just --list
|
@just --list
|
||||||
|
|
||||||
composer *args:
|
composer *args:
|
||||||
just _exec php composer {{ args }}
|
just _exec php composer {{ args }}
|
||||||
|
|
||||||
phpunit *args:
|
|
||||||
just _run --rm php phpunit {{ args }}
|
|
||||||
|
|
||||||
alias test := phpunit
|
|
||||||
|
|
||||||
drush *args:
|
drush *args:
|
||||||
just _exec php drush {{ args }}
|
just _exec php drush {{ args }}
|
||||||
|
|
||||||
|
install *args:
|
||||||
|
just _exec php drush site:install -y {{ args }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_exec +args:
|
_exec +args:
|
||||||
docker compose exec {{ args }}
|
docker compose exec {{ args }}
|
||||||
|
|
||||||
_run +args:
|
|
||||||
docker compose run {{ args }}
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by 'build-configs'. -->
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<ruleset name="docker-example-drupal-localgov coding standards">
|
<ruleset name="docker-example-drupal-localgov coding standards">
|
||||||
<description>PHPCS configuration file for docker-example-drupal-localgov.</description>
|
<description>PHPCS configuration file for docker-example-drupal-localgov.</description>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Do not edit this file. It is automatically generated by 'build-configs'.
|
||||||
|
|
||||||
parameters:
|
parameters:
|
||||||
level: max
|
level: max
|
||||||
paths:
|
paths:
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by 'build-configs'. -->
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
<phpunit
|
<phpunit
|
||||||
beStrictAboutChangesToGlobalState="true"
|
beStrictAboutChangesToGlobalState="true"
|
||||||
beStrictAboutOutputDuringTests="true"
|
beStrictAboutOutputDuringTests="true"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Do not edit this file. It is automatically generated by 'build-configs'.
|
||||||
|
|
||||||
[[ -f composer.json && ! -d vendor ]] && composer install
|
[[ -f composer.json && ! -d vendor ]] && composer install
|
||||||
|
|
||||||
eval "$@"
|
eval "$@"
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Do not edit this file. It is automatically generated by 'build-configs'.
|
||||||
|
|
||||||
server {
|
server {
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue