-
Notifications
You must be signed in to change notification settings - Fork 797
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
Deploy docker images to caprover? #360
Comments
It's already possible! Here are two methods that you can use: 1) Use git webhooks:
2) Use CapRover APIThis is more complex, and unless you have solid reasons that you cannot use method 1, you shouldn't use this method.
PRIVATE REGISTRIES?If I meant to write a step by step tutorial blog for this using CircleCI or Travis, but I'd rather spend my time adding new features.I really appreciate it if you could write a blog post if you get around doing this. I can link it (or add it) to the docs and add your name as the original author. I am sure it helps a lot of people. |
Thanks for your in depth explanation. I’ll try to put something together this week. Maybe we could add the ‘build’ command to caprover-cli? It could be easier for the end user and easier to maintain in the case of a change in the API. So by pushing to the repository I assume the app will redeploy with the ‘latest’ tag right? And I suppose when rolling back a version it use directly the image id? |
Can you please clarify in details what you expect the "build" command to do?
Try avoid using the "latest" tag. This was an oversight from Docker engineers in the beginning and can cause many hard to debug problems. Tag your image with explicit strings, either version such as Captain uses specific tag that you define in your image name, for example
|
After some thought it doesn’t fit well with the build command. I would like a command to upgrade directly the image( under the hood it call the enpoint with the correct payload) but as a end user I could see something like: ´caprover login -h https://captain.root.domain.com -p password’ Yeah I thought latest was more like an internal tag that means the latest build image. |
I like this! I'll make some changes to syntax to match the convention of the current CLI format. Since stateless deploys (no login required) are already implemented, instead of LOGIN and UPGRADE, I'll create this:
But other than that it is a great suggestion. Can you please create an issue for this suggestion here: |
Yeah that's perfect! Thank you I'll create the issue |
An additional comment. I think a section will be useful for copy paste public docker images. Example. I copy this Because commonly dockerfiles stuck but docker images are stable. |
does anyone know the docker hub URL to pull the image using caprover, I want to pull my private repository using caprover cluster? |
you can use |
Hi,
I don't know if it could be possible in the future, but I would like to deploy directly the images I build via CI servers. The integration with Caprover for CD part of the process would be a perfect fit.
Maybe it could work by setting hooks in the registry?
Here is some of the advantage I can see:
Thanks for your time, I plan to move most of my apps to Caprover.
The text was updated successfully, but these errors were encountered: