Add a CLI container for running composer and phinx while developing.

This commit is contained in:
Dave Smith-Hayes 2024-11-08 12:40:46 -05:00
parent 82735d41fd
commit fc0d816062
3 changed files with 18 additions and 9 deletions

16
app/composer.lock generated
View File

@ -3926,16 +3926,16 @@
}, },
{ {
"name": "twig/twig", "name": "twig/twig",
"version": "v3.14.1", "version": "v3.14.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/twigphp/Twig.git", "url": "https://github.com/twigphp/Twig.git",
"reference": "f405356d20fb43603bcadc8b09bfb676cb04a379" "reference": "0b6f9d8370bb3b7f1ce5313ed8feb0fafd6e399a"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/twigphp/Twig/zipball/f405356d20fb43603bcadc8b09bfb676cb04a379", "url": "https://api.github.com/repos/twigphp/Twig/zipball/0b6f9d8370bb3b7f1ce5313ed8feb0fafd6e399a",
"reference": "f405356d20fb43603bcadc8b09bfb676cb04a379", "reference": "0b6f9d8370bb3b7f1ce5313ed8feb0fafd6e399a",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3989,7 +3989,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/twigphp/Twig/issues", "issues": "https://github.com/twigphp/Twig/issues",
"source": "https://github.com/twigphp/Twig/tree/v3.14.1" "source": "https://github.com/twigphp/Twig/tree/v3.14.2"
}, },
"funding": [ "funding": [
{ {
@ -4001,7 +4001,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2024-11-06T18:17:38+00:00" "time": "2024-11-07T12:36:22+00:00"
}, },
{ {
"name": "vlucas/phpdotenv", "name": "vlucas/phpdotenv",
@ -6242,12 +6242,12 @@
], ],
"aliases": [], "aliases": [],
"minimum-stability": "stable", "minimum-stability": "stable",
"stability-flags": [], "stability-flags": {},
"prefer-stable": false, "prefer-stable": false,
"prefer-lowest": false, "prefer-lowest": false,
"platform": { "platform": {
"ext-pdo": "*" "ext-pdo": "*"
}, },
"platform-dev": [], "platform-dev": {},
"plugin-api-version": "2.6.0" "plugin-api-version": "2.6.0"
} }

View File

@ -26,7 +26,7 @@
</div> </div>
{% endblock %} {% endblock %}
{% block body_js %} {% block bod_js %}
<script type="javascript"> <script type="javascript">
const form = document.getElementById("login-form"); const form = document.getElementById("login-form");
form.addEventListener('submit', function (e) { form.addEventListener('submit', function (e) {

View File

@ -9,6 +9,15 @@ services:
- mariadb - mariadb
links: links:
- mariadb - mariadb
cli:
build:
context: .
dockerfile: 'dev/php/Dockerfile'
volumes:
- './app:/var/www/slovocast'
entrypoint: [ "bash", "-c" ]
profiles:
- noboot
nginx: nginx:
image: nginx:latest image: nginx:latest
volumes: volumes: