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 COMPOSE_PROJECT_NAME=docker-example-drupal-localgov
|
||||
|
|
@ -5,6 +7,6 @@ export COMPOSE_PROFILES=web,php,database
|
|||
|
||||
export DOCKER_WEB_VOLUME=.:/app
|
||||
|
||||
export MYSQL_DATABASE=app
|
||||
export MYSQL_PASSWORD=app
|
||||
export MYSQL_USER=app
|
||||
export MYSQL_DATABASE=drupal
|
||||
export MYSQL_PASSWORD=drupal
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
COPY --chown=app:app phpunit.xml* ./
|
||||
|
||||
COPY --chown=app:app assets assets
|
||||
|
||||
|
||||
USER app
|
||||
|
||||
RUN composer validate --strict
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# Do not edit this file. It is automatically generated by 'build-configs'.
|
||||
|
||||
x-app: &default-app
|
||||
volumes:
|
||||
- "${DOCKER_WEB_VOLUME:-./web:/app/web}"
|
||||
|
|
@ -32,12 +34,14 @@ services:
|
|||
`${COMPOSE_PROJECT_NAME}.localhost`,
|
||||
)"
|
||||
profiles: [web]
|
||||
|
||||
|
||||
php:
|
||||
<<: *default-app
|
||||
build:
|
||||
context: .
|
||||
target: build
|
||||
volumes:
|
||||
- .:/app
|
||||
depends_on:
|
||||
- database
|
||||
profiles: [php]
|
||||
|
|
|
|||
16
justfile
16
justfile
|
|
@ -1,19 +1,19 @@
|
|||
# Do not edit this file. It is automatically generated by 'build-configs'.
|
||||
|
||||
default:
|
||||
@just --list
|
||||
|
||||
composer *args:
|
||||
just _exec php composer {{ args }}
|
||||
|
||||
phpunit *args:
|
||||
just _run --rm php phpunit {{ args }}
|
||||
|
||||
alias test := phpunit
|
||||
|
||||
drush *args:
|
||||
just _exec php drush {{ args }}
|
||||
|
||||
install *args:
|
||||
just _exec php drush site:install -y {{ args }}
|
||||
|
||||
|
||||
|
||||
|
||||
_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"?>
|
||||
<ruleset name="docker-example-drupal-localgov coding standards">
|
||||
<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:
|
||||
level: max
|
||||
paths:
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<!-- Do not edit this file. It is automatically generated by 'build-configs'. -->
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<phpunit
|
||||
beStrictAboutChangesToGlobalState="true"
|
||||
beStrictAboutOutputDuringTests="true"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Do not edit this file. It is automatically generated by 'build-configs'.
|
||||
|
||||
[[ -f composer.json && ! -d vendor ]] && composer install
|
||||
|
||||
eval "$@"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# Do not edit this file. It is automatically generated by 'build-configs'.
|
||||
|
||||
server {
|
||||
server_name _;
|
||||
|
||||
|
|
|
|||
Reference in a new issue