Compare commits

..
Author SHA1 Message Date
marc efa378fe8f Merge branch 'php7.4' into marc
Docker / build (push) Canceled after 0s
2022-09-16 19:31:29 +02:00
marc 7e8e7112da Merge branch 'php7.4' into marc 2022-09-16 19:16:45 +02:00
marc 290c7e9803 Merge php7.4 2022-09-16 19:11:51 +02:00
marc b64f7bfbd1 Merge github-action 2022-09-16 19:11:23 +02:00
4 changed files with 6 additions and 54 deletions
+2 -19
View File
@@ -1,4 +1,4 @@
name: Docker build test
name: Docker
on:
push:
@@ -13,7 +13,7 @@ on:
pull_request:
jobs:
build-back:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@@ -29,20 +29,3 @@ 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,8 +1,6 @@
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"
+2 -9
View File
@@ -20,22 +20,15 @@ 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:
+2 -24
View File
@@ -1,25 +1,14 @@
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
@@ -36,15 +25,4 @@ services:
- mysql
depends_on:
- mysql
front:
container_name: numeris_front
build:
context: ./front
dockerfile: Dockerfile
ports:
- 4200:4200
links:
- back
depends_on:
- back
container_name: numeris_back