Skip to content
This repository has been archived by the owner on Oct 24, 2018. It is now read-only.

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
The makefile returns an error because of the docker exec command. Similar errors at docker/compose#3379
  • Loading branch information
Ovski4 committed Jan 3, 2017
1 parent 10ca263 commit a9bd77f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@ mysql_container_name = acme-app-mysql
.PHONY: pac bash composer-add-github-token composer-update mysql-export mysql-import command

pac:
docker exec -it $(php_container_name) php app/console $(cmd)
docker exec -it $(php_container_name) bash -c "php app/console $(cmd); exit $$?"

bash:
docker exec -it $(php_container_name) bash

composer-add-github-token:
docker exec -it $(php_container_name) composer config --global github-oauth.github.com $(token)
docker exec -t $(php_container_name) bash -c "composer config --global github-oauth.github.com $(token); exit $$?"

composer-update:
docker exec -it $(php_container_name) composer update
docker exec -it $(php_container_name) bash -c "composer update; exit $$?"

mysql-export:
docker exec -i $(mysql_container_name) bash -c "mysqldump -p'app' -u app app" > $(path)
docker exec -t $(mysql_container_name) bash -c "mysqldump -p'app' -u app app" > $(path)

mysql-import:
docker exec -i $(mysql_container_name) bash -c "mysql -p'app' -u app app" < $(path)
docker exec -t $(mysql_container_name) bash -c "mysql -p'app' -u app app" < $(path)

command:
docker exec -it $(php_container_name) $(cmd)
docker exec -it $(php_container_name) bash -c "$(cmd); exit $$?"

default: pac

0 comments on commit a9bd77f

Please sign in to comment.