Update snapshots
This commit is contained in:
parent
3d573975cd
commit
bfe0117e5e
15 changed files with 143 additions and 24 deletions
|
@ -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}" "${@}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue