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)
- [Feature Request] Repository branch as Task's run Variable HOT 2
- Problem: DNS traffic times out over Tailscale HOT 2
- Problem: Edit and Copy of a task doesn't use task name HOT 1
- Docs: Invalid download link in 'Installation' section HOT 1
- Problem: ModuleNotFoundError: No module named 'ansible' HOT 1
- Problem: Not possible to edit task template after restoring project HOT 3
- Problem: Fails to find the playbook in the cloned repository HOT 2
- Problem: Config profile could not be found. I need help using semaphore ui and AWS profiles from the ~/.aws/credentials. HOT 7
- Feature: Playbook to update requirements.yml HOT 4
- Problem: Task numbers count backwards from max int HOT 1
- Feature: private survey variables, or don't store the value of a variable HOT 5
- Problem: Non-compliant Role Paths Result in Role Not Found Error HOT 4
- Question: Could I define Inventory as variables. HOT 1
- Problem: Retry and delay task are not displayed correctly
- Question: Clarification of Task option 'Allow CLI args in Task'
- Problem: Alerts for Deploy task shows Build Task ID instead of Build Version HOT 1
- Problem: Triggering task when monitoring git repo broken in v2.9.75
- Problem: cert_file issue with get_url and python 3.12 HOT 5
- Problem: Semaphore checking out wrong git repo when trying to run a playbook HOT 1
- Problem: Boltdb host in config file is not loaded HOT 3
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.