Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add dev docker setup #608

Merged
merged 1 commit into from
Dec 5, 2021
Merged

feat: Add dev docker setup #608

merged 1 commit into from
Dec 5, 2021

Conversation

mr-karan
Copy link
Collaborator

@mr-karan mr-karan commented Dec 1, 2021

Closes #562

  • Created a dev/ folder with all the dev-docker specific files.
  • The dev-docker setup is in such a way that the local app folder is mounted inside the container. This trick helps us to not do a docker build everytime there's a change in frontend/backend code.
  • For frontend changes, since vue is automatically watching for changes, the live changes are seen in real time.
  • For backend changes, since the Go app needs to be compiled, simply quit the current running setup and run make dev-docker again. That will run make run again, which would have new changes.
  • There's a make init-dev-docker to run the DB Migrations for first time install.

These instructions are also inside dev/README.md.

P.S. I'd to create a new make target (run-backend-docker), simply because I don't know a better way of passing a different config file (dev/config.toml) to the go run argument in the existing run target. Hope the small amount of copy-paste is fine here.

image

@knadh knadh merged commit e9dded7 into knadh:master Dec 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docker-Compose-dev.yml
2 participants