HuntersKeepers
HuntersKeepers copied to clipboard
Bash startup script
Describe the Feature
Is your feature request related to a problem? Please describe. I want a magical push-button dev setup. I have been informed that docker is not the best option for this. Docker doesn't have an inherent ordering so it has trouble with things like node_modules which are rerun rarely. Maybe we can standardize our environment with Docker, and eliminate versioning + permission issues, and then use a setup script to run the commands in the correct order.
Additional context We have WINDOWS USERS (like @ChaelCodes ). Windows can now run bash scripts or we can containerize the script itself in Docker.
Describe the Technical Implementation of the Solution
Solution Add a bin/setup.sh script or a MAKEFILE that does the following:
docker-compose run --rm web yarn install --check-files
docker-compose run --rm web rails db:test:prepare db:prepare
docker-compose up --build -d
References Any references to materials or help articles that may help in implementing this issue.
Hey, the simple .sh(as below) file should do the job here. Could you please share what would be the blocker in this case? Thanks!
#!/bin/bash
docker-compose run --rm web yarn install --check-files
docker-compose run --rm web rails db:test:prepare db:prepare
docker-compose up --build -d