-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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: Build and publish docker images #47
Conversation
@6ixfalls Thanks for this! So, to your "all in one" point. At the end of the day, we want this to be absolutely as easy as possible for folks to get up and running. The fewer steps the better. Does going the "all in one" route affect that one way or the other? |
How I see this is that images can be published individually for each app, for example, |
@6ixfalls Gotcha. And what's the least-complicated at this moment from a speed-and-ease-of-development perspective? Or rather, what has the lowest chance of problems for developers wanting to work on this? |
To be fair, most of the work in this PR is only for the GitHub Action which does the building, and the Docker images themselves are just from the original repository. In my opinion, the way maybe-finance is structured isn't ideal as it takes quite a bit of time to understand how everything is laid out, built, and deployed, but this is likely the best solution for now as it simply utilizes the existing code structure. |
There also is a bit of work still needed for this PR before it should be merged, namely the frontend Docker image, which I'm working on now, as well as planning for how maybe-finance is released, following semver, another versioning scheme, etc - but that could very well be done at a future date. |
Sounds good. Would you mind converting to Draft until its ready for review/merge? |
@Shpigford, the client app doesn't successfully build with some dependency issues (some dependencies aren't included in the dist package.json, e.g. |
Signed-off-by: Six <[email protected]>
Signed-off-by: Six <[email protected]>
Signed-off-by: Six <[email protected]>
Signed-off-by: Six <[email protected]>
Signed-off-by: Six <[email protected]>
This is looking good, thanks for taking this on! Just some merge conflicts that need to be taken care of. Also, anything that needs to be updated to account for the move to pnpm that was just implemented? |
A few npm commands need to be moved to pnpm, but it should be the same. |
Signed-off-by: Six <[email protected]>
Signed-off-by: Six <[email protected]>
No Docker images are published for either the server or worker apps, although Dockerfiles are present in the repository. In the current state, this PR contains a GitHub Actions workflow to build and publish the images for the server and worker apps, as well as modify the Dockerfiles in those apps to have a correct startup command. More work is required for a Docker deployment in production, as the client application is missing a Dockerfile, but that can be either addressed in another pull request or integrated into this one - unless it's planned to create an "all in one" image which runs both the client, server, and workers, and properly reverse proxies requests to the correct backend.
To-do