Compare commits

..
Author SHA1 Message Date
marc f1ffa56be5 Merge branch 'docker-compose' into php7.4+github-action+docker-compose
Docker build test / build-back (push) Canceled after 0s
Docker build test / build-front (push) Canceled after 0s
2022-09-19 10:32:15 +02:00
marc 5e3dfec004 phpmyadmin might come in handy 2022-09-19 10:32:09 +02:00
marc ba17666dbf Merge branch 'docker-compose' into php7.4+github-action+docker-compose 2022-09-19 10:28:16 +02:00
marc b834f1d27b fix names 2022-09-19 10:27:59 +02:00
marc bb74543041 Merge branch 'docker-compose' into php7.4+github-action+docker-compose 2022-09-17 17:51:48 +02:00
marc 3a374a10bc front too 2022-09-17 17:51:40 +02:00
marc f5fa47b0af Merge branch 'docker-compose' into php7.4+github-action+docker-compose 2022-09-16 19:54:34 +02:00
marc 0378a0a224 front too 2022-09-16 19:54:08 +02:00
marc eb1738c549 Merge branch 'github-action' into php7.4+github-action 2022-09-16 19:48:15 +02:00
marc d4804bd214 touch .env 2022-09-16 19:47:47 +02:00
marc 5ff785add9 Merge branch 'github-action' into php7.4+github-action 2022-09-16 19:46:30 +02:00
marc 897880c9f0 run every week to test the image resilience over external package changes 2022-09-16 19:44:37 +02:00
marc be946356ae build back and front 2022-09-16 19:37:09 +02:00
marc fea17b735c docker build test 2022-09-16 19:33:58 +02:00
marc 3301654cb7 fake .env 2022-09-16 19:09:32 +02:00
marc a98a4ca05a master only 2022-09-16 19:08:03 +02:00
marc b317fd82b3 Merge branch 'docker-compose' into github-action 2022-09-16 19:07:13 +02:00
marc 3b18e4dd36 2 github actions 2022-09-16 18:59:09 +02:00
4 changed files with 54 additions and 6 deletions
+19 -2
View File
@@ -1,4 +1,4 @@
name: Docker
name: Docker build test
on:
push:
@@ -13,7 +13,7 @@ on:
pull_request:
jobs:
build:
build-back:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@@ -29,3 +29,20 @@ jobs:
- name: Build
run: docker-compose -f docker-compose.production.yml build back
build-front:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Fake env file
run: touch .env
- name: Build
run: docker-compose -f docker-compose.production.yml build front
+2
View File
@@ -1,6 +1,8 @@
name: Docker
on:
schedule:
- cron: "0 4 * * 0" # run every sunday at 4 am to test if the image builds correctly given that changes of debian or compose packages can break the image
push:
branches:
- "master"
+9 -2
View File
@@ -20,15 +20,22 @@ services:
- mysql:/var/lib/mysql
back:
restart: unless-stopped
build:
context: ./back
dockerfile: Dockerfile
env_file:
- .env
links:
- mysql
depends_on:
- mysql
front:
build:
context: ./front
dockerfile: Dockerfile
depends_on:
- back
entrypoint: ng s --host 0.0.0.0
volumes:
mysql:
+24 -2
View File
@@ -1,14 +1,25 @@
version: '3'
services:
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
container_name: numeris_phpmyadmin
ports:
- 3000:80
links:
- mysql:db
depends_on:
- mysql
mysql:
image: mysql:5.7
container_name: numeris_mysql
environment:
MYSQL_DATABASE: 'numeris_testing'
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
container_name: numeris_mysql
back:
container_name: numeris_back
build:
context: ./back
dockerfile: Dockerfile
@@ -25,4 +36,15 @@ services:
- mysql
depends_on:
- mysql
container_name: numeris_back
front:
container_name: numeris_front
build:
context: ./front
dockerfile: Dockerfile
ports:
- 4200:4200
links:
- back
depends_on:
- back