Skip to content

Commit 68b1419

Browse files
committed
Changed mysql image
1 parent 817a94d commit 68b1419

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ app-composer-install:
2727
docker-compose run --rm php-cli composer install
2828

2929
app-wait-db :
30-
until docker-compose exec -T mysql ping -h"localhost" --silent ; do sleep 1 ; done
30+
while docker-compose exec -T mysql ping -h"localhost" --silent ; do sleep 1 ; done
3131

3232
app-migrations:
3333
docker-compose run --rm php-cli php artisan migrate

docker-compose.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ services:
4343
tty: true
4444
mysql:
4545
container_name: mysql
46-
image: mysql:5.7
46+
build:
47+
context: ./
48+
dockerfile: docker/mysql.docker
4749
volumes:
4850
- mysql:/var/lib/mysql
4951
environment:

docker/mysql.docker

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM mysql:5.7
2+
3+
RUN apt-get update && apt-get install -y iputils-ping

0 commit comments

Comments
 (0)