pitrho / rancher-gen Goto Github PK
View Code? Open in Web Editor NEWFile generator that renders templates using Rancher API.
License: MIT License
File generator that renders templates using Rancher API.
License: MIT License
Hi,
nice project. Thank you very much.
Is there a chance, that you could provide an executable file without the need of python installed on the system. For example through PyInstaller?
The background of my question is, that often inside docker containers there is no python installed.
An executable would eleminate the need of installing python inside the container.
Kind Regards
First of all, let me say thanks for this great project, I'm trying to build an auto-configuring Traefik setup with it.
Suppose there are already some containers running and my container with rancher-gen is not the first to start. However, rancher-gen is supposed to generate the configuration file for my reverse proxy in order to route traffic to containers based on the host names of the requests.
It looks like rancher-gen currently does not trigger immediately when it is invoked, but only when Rancher reports some changes. So I would now have to wait for some change in Rancher before any configuration gets generated, which is not really acceptable. I think I need some capability to trigger an initial generation run.
What do you think?
Hi,i don't know how to build this project.Because i will modify some code in my company env.
This is somewhat related to #1 .
Let's say I have a lot of containers for which I need to generate configuration files. It looks like rancher-gen only has knowledge of those containers which actually did change, not all containers in the system. So my template which looks something like
{% for container in containers %}
id {{container['id']}}, name {{container['name']}}, state {{container['state']}}
{% endfor %}
only contains one line for the container which actually changed, instead of all containers (which is what I would have expected). That also means that whenever a container changes, the (single) config file is overridden, and any information about previous containers is lost.
Is this how rancher-gen is supposed to work, or am I missing something?
With docker-gen it's possible to get containers by env var. Is it possible with rancher-gen too?
Not limited to a project / stack service?
Just all containers in a rancher environment by label or env var.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.