Comments (6)
Fair point, and shouldn't be too hard..
It will probably be done at the same time as the UI upgrade (feature/ui-work branch).
from semaphore.
👍
from semaphore.
IMO, this is only partly done. The default values for the environment variables only come into play in the presence of the config json file you are trying to remove. Default env vars should be present in the Dockerfile as an indicator for users who wish to override them.
For example
ENV REDIS_HOST 127.0.0.1
ENV REDIS_PORT 6379
from semaphore.
@bibby Check out https://github.com/ansible-semaphore/semaphore/blob/master/lib/config.js#L7
The program is runnable w/o configuration files.
from semaphore.
The line you have linked tests for the absence of environment variables. The defaults are then loaded from the configuration file. So in that way, no, it cannot run w/o config files.
Using ENV
in the dockerfile with a default value means the required value is never absent, being either a user defined value or the predefined default.
from semaphore.
- Tries to load configuration file
- If not present, tests for some required env variables. If they're not present, the program cannot run
- Load default configuration
- (line 17-21) Overrides configuration from environment
from semaphore.
Related Issues (20)
- Snap package's internal ansible never upgrades. HOT 1
- Problem: ansible-semaphore-9.5.0 2.10 - bad boolean environment value '0
- Feature: Allow specifying differenct Credentials for Inventory Git Repos
- Feature: Please add a way to import an external RootCA for LDAPS for Docker
- Question: Why ssh: [email protected]: Permission denied . can't change to another user to run bash script? HOT 1
- Question: How do I access Key Store Keys in a playbook?
- Feature: export function for task logs
- Problem: After Update to 2.10.7 no templates run with Error Message HOT 4
- Problem: Inventory not cloning HOT 3
- Cron is Broken - v2.10.7-6bcf476-1718821016 HOT 1
- Feature: Placement of STOP BUTTON
- Problem: Failed to install inventory: parsing private key: ssh: no key found HOT 4
- Problem: Task Templates no longer working after update HOT 3
- Page "Task Templates" takes forever to load. HOT 4
- Problem: RERUN is not working when using an inventory from a git repo HOT 2
- Question: why bash script run default user root. can change to another user to run bash scripts? HOT 1
- Problem: Runner does not handle error if it cannot write its config_file
- Feature: Ansible Vault on UI
- Dynamic inventory ansible playbook cannot get hosts value HOT 2
- Problem: Unable to acces new Schedule page. HOT 4
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 semaphore.