Git Product home page Git Product logo

Comments (8)

corpulent avatar corpulent commented on July 17, 2024

@ravensorb I have been thinking about this. A few users requested a feature similar to what you are asking. It will work this way: a user logs has to log in first, and then they can define a global variable set for a project. This can act as both, a .env file with its contents to be exported, and as variable placeholders to be used in the forms. For example, using {{DB_PASS}} placeholder within the forms, so when the docker-compose.yml is generated with that placeholder, it grabs the value from the global variable set. Let me know what you think of this.

from ctk.

basudip avatar basudip commented on July 17, 2024

not only env variable, but it can be implemented on volume mount also. a fixed set of volume mount like
/media/mount/Docker/
/media/mount/TV/
/media/mount/Movie/
/media/mount/Download/

hope you get the idea.

from ctk.

corpulent avatar corpulent commented on July 17, 2024

@basudip yea I totally get it. Ill drop a wireframe here tomorrow morning to gather some more thoughts before building it out.

from ctk.

ravensorb avatar ravensorb commented on July 17, 2024

Love it - might be nice to be able to set them at an admin/global level too?

from ctk.

corpulent avatar corpulent commented on July 17, 2024

@ravensorb yea thats the idea. "Project level", "Global level".

from ctk.

corpulent avatar corpulent commented on July 17, 2024

@ravensorb @basudip Here is my idea of global and project level variables, let me know what you think. Reading env vars from .env file falls into the recipes work, I need more time to think about this.

Screen Shot 2020-06-24 at 2 38 40 PM

from ctk.

ravensorb avatar ravensorb commented on July 17, 2024

I think this makes a lot of sense. It looks easy to use -- maybe a way to filter by var name could be helpful too incase the list gets large?

Thinking this through "out loud"

  • An admin can come in and add a global variable
  • An admin can leverage a global variable as a token/ref within a template (volume, network, env, etc)
  • A user can add a user variable
  • A user can leverage a global or user variable as a token/ref within a template (volume, network, env, etc)
  • These referenced variables would be "expanded" when the template is generated (env file or compose file)

Sound right (most of the above might be part of you recipe idea)?

from ctk.

basudip avatar basudip commented on July 17, 2024

yes, this makes absolute sense. create a selectable tag/label/icon where user/admin can define what type of variable it will be. like ENV variable or volume path etc.

from ctk.

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.