Coder Social home page Coder Social logo

automation using CLI about caprover-cli HOT 5 CLOSED

caprover avatar caprover commented on June 9, 2024
automation using CLI

from caprover-cli.

Comments (5)

githubsaturn avatar githubsaturn commented on June 9, 2024 1

So can this be automated via the CLI or some other ways? so far the closest I can get to it is to do this manually, and then download a backup tar and use it. It's actually not a bad solution, but I was wondering if automation via the CLI is a bit more flexible (I can programmatically set things like passwords, names etc).

Not possible yet, but it'll be with this: #12 (comment)

from caprover-cli.

githubsaturn avatar githubsaturn commented on June 9, 2024 1

It's fairly stable. The only major change was in v1.0, over 1 year after the original release. And even that was mostly some path changes, e.g., we changed /app/update, user/app/update or something similar...

from caprover-cli.

githubsaturn avatar githubsaturn commented on June 9, 2024

I'm trying to essentially automate the creation of my CapRover apps using the CLI.

Not supported yet. It will be supported soon via the solution discussed here:
#12 (comment)

So, I'm basically trying to see if I can install one-click-apps or specific docker images to CapRover using only the CLI. This includes things like the environment variables that go into the App Config on the web console, the custom URLs that those apps might have, etc.

One-click apps are a different problem. They are built on the frontend (website code). The steps are:

  • Fetching the template from https://github.com/caprover/one-click-apps
  • Asking user to enter variables and replacing them in the template JSON file
  • For each container, follow these steps: Create, configure, deploy image.

CLI doesn't have support of one-click apps. Having said that, once we have the API raw command support in CLI, it won't be hard to built your own one-click app automation using CLI. I didn't think it's a common use case for one-click apps to have CLI support. May I ask what your use case is?

from caprover-cli.

gingerlime avatar gingerlime commented on June 9, 2024

May I ask what your use case is?

I was using one-click-apps just as an example. I don't actually need them for automation.

But if, let's say for example: I need to setup a Postgresql database (with its own user/password), redis, a web app that connects to the database (need to pass the database connection, user, password etc), and some background workers that also connect to the database, and redis, etc. I want to also configure the web app to respond on a custom domain www.xyz.com etc

So can this be automated via the CLI or some other ways? so far the closest I can get to it is to do this manually, and then download a backup tar and use it. It's actually not a bad solution, but I was wondering if automation via the CLI is a bit more flexible (I can programmatically set things like passwords, names etc).

from caprover-cli.

gingerlime avatar gingerlime commented on June 9, 2024

That sounds good. The main question then is how stable the API is, or how likely endpoints are to change (otherwise, my automation always needs to play catch-up with whatever the state of the API is)

from caprover-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.