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)
- Table Headers are different case in Dark Mode compared to Light Mode
- The task log is not displayed HOT 1
- Unable to run tasks with become=true [ Privilege output closed while waiting for password prompt ] HOT 2
- fatal: unable to look up [email protected]:repo-name (port 9418) (Name does not resolve) HOT 1
- Bad Key Store behavior, permissions denied when use become
- v2.9.70 Database Migration Error HOT 2
- Increase Width Of PopUp when Click On RUN
- Support Additional Types of Input Boxes at Popup before RUN
- Not possible to set working directory for a template task HOT 1
- How to add Modules?
- Edit Task Templates Disappear/Gone
- Playbook error
- Template which should run all 2 minutes is stuck in waiting since updating to 2.9.75 HOT 4
- Installing packags through requirements.txt are not on the path HOT 7
- how to use ansible built-in variables HOT 1
- Could I use UTF-8 as default character set for MySQL or others? HOT 2
- [Feature Request] A button to download for tasks outputs
- [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
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.