-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
24 lines (22 loc) · 1.13 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.PHONY: help
.DEFAULT_GOAL := help
help: ## show help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
build: ## docker-compose build
@echo 'docker-compose build'
@docker-compose build
server: ## docker-compose run --rm --name yaselabo_rails_1 -p 3000:3000 rails
@echo 'docker-compose docker-compose run --rm --name yaselabo_rails_1 -p 3000:3000 rails'
@docker-compose run --rm --name yaselabo_rails_1 -p 3000:3000 rails
delete: ## docker conrainer rm yaselabo_rails_1
@echo 'docker container rm yaselabo_rails_1'
@docker container rm yaselabo_rails_1
console: ## docker exec -it yaselabo_rails_1 /bin/bash
@echo 'docker exec -it yaselabo_rails_1 /bin/bash'
@docker exec -it -e COLUMNS=$COLUMNS -e LINES=$LINES -e TERM=$TERM yaselabo_rails_1 /bin/bash
dbconsole: ## docker exec -it yaselabo_db_1 /bin/bash
@echo 'docker exec -it yaselabo_db_1 /bin/bash'
@docker exec -it yaselabo_db_1 /bin/bash
redisconsole: ## docker exec -it yaselabo_redis_1 /bin/bash
@echo 'docker exec -it yaselabo_redis_1 /bin/bash'
@docker exec -it yaselabo_redis_1 /bin/bash