Comments (8)
@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.
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.
@basudip yea I totally get it. Ill drop a wireframe here tomorrow morning to gather some more thoughts before building it out.
from ctk.
Love it - might be nice to be able to set them at an admin/global level too?
from ctk.
@ravensorb yea thats the idea. "Project level", "Global level".
from ctk.
@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.
from ctk.
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.
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)
- Empty environment variables create invalid compose file HOT 2
- Service objects with same name HOT 5
- Require a different method to set a specific Tag/Version HOT 1
- Feature Request: User accounts HOT 9
- Feature request: Presets/templates HOT 2
- External Image Configuration Support HOT 1
- Make visual connections more obvious.
- Enhancement: Cursor change on hover HOT 1
- Visual network connections. HOT 1
- Edit compose files live HOT 6
- Timeline of Opening sourcing HOT 6
- Feature request : Conversion From docker run/create to compose and vice versa
- Feature Request: "Shared" or reusable variables HOT 2
- Devices.
- Network not imported properly while changing compose version.
- restart: no service param value should be string HOT 1
- Feature request: support additional capabilities
- Feature Request: dockerhub link
- Feature Request: Commonly used environment variables
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 ctk.