Comments (5)
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.
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.
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.
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.
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)
- Confusing dashboard button aspect HOT 5
- Docker image v2.2.3 is missing
- Error "Cannot find hash of last commit on branch" HOT 18
- PR approved pending publication in NPM HOT 1
- caprover deploy: Cannot find hash of last commit on branch "master" caused by git as root error HOT 12
- GitLab CI/CD Issue HOT 2
- Error: manifest for node:18.00-alpine not found HOT 2
- stuck/hangs when deploying HOT 1
- -t option is used with tarFile and appToken HOT 1
- Something bad happened during authentication HOT 1
- captain-definition file is not a valid JSON! HOT 6
- Fetching build logs when using app access token HOT 2
- Caprover backup using CLI HOT 2
- How to see users in localMachine and change ip? HOT 1
- Is it possible to use --caproverUrl without domain ? HOT 1
- Git error messages are hidden when getting error on a branch
- Error: self signed certificate (Local network) HOT 1
- Title: Issue with Constant.ts file not reflecting environment variable override in built Constants.js HOT 1
- Add environment variables via deploy
- updateConfigAndSave missing some methods
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caprover-cli.