GithubHelp home page GithubHelp logo

fribeau / one-click-apps Goto Github PK

View Code? Open in Web Editor NEW

This project forked from caprover/one-click-apps

0.0 0.0 0.0 3.16 MB

Repo for CapRover One Click Apps (https://github.com/caprover/caprover)

License: Apache License 2.0

JavaScript 61.49% Shell 38.51%

one-click-apps's Introduction

Repo for CapRover One Click Apps

Process:

  • Find/create a docker-compose file for the one click app
  • Convert yaml file to json
  • Copy the content into the one-click app structure. See this for the reference: wordpress.json
  • Variables are prefixed with $$cap
  • Variables can be anywhere in the JSON and they will be replaced by what user enters
  • There are 2 special variables called $$cap_appname and $$cap_root_domain which exist for all oneclick apps. If your app needs environment variables with the URL value of the app, you can use $$cap_appname.$$cap_root_domain which resolves to something like myappname.rootdomain.com
  • Each custom variable must have id, label. They may also have defaultValue, validRegex, description. (NB: fields are not required. If validRegex is not set, the field can be set as empty and ignored by the user.)
  • Other than image, environment, ports, volumes, depends_on, other parameters are currently being ignored by CapRover. Make sure they are not crucial.
  • Instead of image property in a service, you can use dockerfileLines which is an array of strings.
  • Some webapps, use a non-standard HTTP port. For example, Adminer's Docker image uses port 8080. In this case, add containerHttpPort to the service. See adminer.json for example.
  • Add the icon as a png file to the logos directory.

Test your One Click Apps

After creating your One-Click app json, like this, you need to test it before creating a Pull Request. Here is how you test it:

  • Login to your CapRover dashboard
  • Go to apps and click on One-Click Apps/Databases
  • Select >> TEMPLATE << at the bottom of the dropdown list
  • Copy and paste your JSON into the text area, and click NEXT.
  • Enter values and make sure it's working as expected.

one-click-apps's People

Contributors

githubsaturn avatar stefancruz avatar liquiditguy avatar mertd avatar gregavrbancic avatar prabirshrestha avatar belcboo avatar iamrommel avatar fribeau avatar featherbear avatar bgervan avatar valoricde avatar solomon23 avatar webbanditten avatar neatorobito avatar maartensiersema avatar felipe-augusto avatar entiacmt avatar klickers avatar plosson avatar shyim avatar sojan-official avatar thjendk avatar tiloio avatar tlwt avatar tim-hub avatar r-t-k avatar chriz001 avatar comontes avatar jibe-b avatar

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.