MightyMoud / sidekick

Bare metal to production ready in mins; your own fly server on your VPS.
https://www.sidekickdeploy.com
GNU General Public License v3.0
2.76k stars 47 forks source link

Allow github repos instead of docker registry #12

Closed zackees closed 5 days ago

zackees commented 1 week ago

My orgs infrastructure is 100% dockerfile driven on github repos. We redeploy on git pushes.

It would be nice if a user could put in a repo url to get an image built. The whole redeploy on Git push may be out of scope.

MightyMoud commented 1 week ago

In Sidekick now, the images are built locally on your machine. No CICD integration is done.

It would be nice if a user could put in a repo url to get an image built.

Do you mean that we clone the repo, build locally and then use the resulting image? or do you mean build on CICD from that repo then use the image?

zackees commented 1 week ago

Clone the repo locally then build.

This is how Render.com and DigitalOcean do it. It's awesome as long as you pin your deps. Which was easy with npm and now also with python via uv.

It allows us to just hit the repo again and again during dev without a gig payload to transfer.

We are hitting it with micro commits and seeing if it breaks and when.

MightyMoud commented 1 week ago

So if you mean clone the repo locally on your laptop, then I think that would be on the dev himself to do that. Then run sidekick launch there.

I think Render.com would clone the repo to your VPS or basically to your server. Coolify also does the same thing.

I believe your source code doesn't belong to your Prod machine; only a docker image is needed. It's far simpler to build on your laptop, or CICD maybe, then push images there.

Also forgot to mention, I moving Sidekick away from needing a docker registry. Just export docker image and move that over to VPS over wire. Working on that today

zackees commented 1 week ago

I mean that the service watches github for repo changes, then rebuilds when there's a change.

So setting a service is as easy as putting in a github url.

MightyMoud commented 6 days ago

@zackees I see what you mean now. I think that would be beyond the current scope of Sidekick. Happy to consider it again maybe before V1 release

MightyMoud commented 5 days ago

Closing this as it's not planned atm