Skip to content

Commit 49fceca

Browse files
author
Marick van Tuil
committed
Make package easier to develop with Docker
1 parent 5f58dd4 commit 49fceca

File tree

7 files changed

+9330
-3
lines changed

7 files changed

+9330
-3
lines changed

.env.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
DB_DRIVER=mysql
2+
DB_HOST=mysql
3+
DB_PORT=3306
4+
5+
CI_CLOUD_TASKS_PROJECT_ID=
6+
CI_CLOUD_TASKS_QUEUE=
7+
CI_CLOUD_TASKS_LOCATION=
8+
CI_CLOUD_TASKS_SERVICE_ACCOUNT_EMAIL=
9+
CI_SERVICE_ACCOUNT_JSON_KEY=

.github/workflows/run-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ jobs:
103103
- name: Execute tests
104104
env:
105105
DB_DRIVER: ${{ matrix.db }}
106+
DB_HOST: 127.0.0.1
106107
CI_CLOUD_TASKS_PROJECT_ID: ${{ secrets.CI_CLOUD_TASKS_PROJECT_ID }}
107108
CI_CLOUD_TASKS_QUEUE: ${{ secrets.CI_CLOUD_TASKS_QUEUE }}
108109
CI_CLOUD_TASKS_LOCATION: ${{ secrets.CI_CLOUD_TASKS_LOCATION }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/vendor/
2-
composer.lock
32
.idea/
43
.phpunit.result.cache
54
.phpunit.cache
5+
.env

app.Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM serversideup/php:8.3-fpm
2+
3+
USER ROOT
4+
RUN install-php-extensions bcmath
5+
6+
USER www-data

0 commit comments

Comments
 (0)