-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
76 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
.PHONY: build run run-detach start stop clean | ||
|
||
# build docker image | ||
build: | ||
docker compose build web | ||
cd react && docker compose build | ||
|
||
start: | ||
docker compose up --detach db --remove-orphans | ||
docker compose run web rails db:create db:migrate | ||
docker compose up | ||
|
||
# run docker-compose | ||
run: bundle build start | ||
|
||
bundle: | ||
docker run --rm -v $(PWD):/app -w /app ruby:3.2.2 bundle install | ||
export DOCKER_DEFAULT_PLATFORM=linux/amd64 | ||
|
||
# run docker-compose in detach mode | ||
run-detach: build | ||
docker compose up -d | ||
|
||
# stop docker-compose | ||
stop: | ||
docker compose down | ||
|
||
# clean docker image | ||
clean: | ||
docker rmi mind-and-machine-ruby mind-and-machine-react |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters