Comments (5)
I'm not familiar with AWS CDK or ECS, specifically, but Docker supports an env_file
attribute using docker run --env-file ...
or by adding the attribute to a Docker Compose file.
It looks like you can pass a list of files to environmentFiles
in an ECS task definition: "This parameter maps to the --env-file option to docker run."
from anything-llm.
Yes @timothycarambat you hit it right on the head. Apologies if not entirely clear on my end @ethyoo.
Based on @timothycarambat & @ethyoo's discussion would it be worth reframing the goal of this issue towards separating environment variables/files (defined as those that must be set at time of deployment and remain constant throughout a deployment) from application configuration variables/files (defined as those set or changed during application usage).
In other words, what if we move all of the configurations that are either set during the initial setup walkthrough screens or when users make changes to admin settings away from writing to the .env
file and into a configuration file inside of /app/storage
?
Slightly echoing what @timothycarambat mentioned earlier is that I think the core problem I am trying to solve for here is that anythingllm is writing back to that .env file which is creates a more difficult situation to try to build around.
from anything-llm.
@ethyoo I think that CLI arg only specifies a file for which docker to load ENVs from, which in general would work, but the issue would be persistence since the system does write back changes in ENV params from the app back to a file - which i believe if the primary ask. The changes are written, but the changes are then destroyed when the ephemeral container storage is killed.
from anything-llm.
I think that goes back to best practices for persistent storage and choosing storage options for Amazon ECS tasks.
from anything-llm.
Among other places where the ENV is loaded we can start with modifications here:
from anything-llm.
Related Issues (20)
- [UI/UX]: Slow loading times after adding large documents HOT 2
- [BUG]: Max Context Snippets setting does not apply
- [BUG]: The Language Hindi is not fully supported as garbled text displayed in the output HOT 1
- [BUG]: Bing API web search not working HOT 1
- [BUG]: Copy buttons have no effect HOT 1
- [FEAT]: Modify default user role to allow doc upload HOT 2
- [FEAT]: allow users to have different levels of permissions for different workspaces HOT 1
- [FEAT]: Add Bookmarks to PDF Metadata in PDFLoader HOT 1
- [FEAT]: Flowise APi HOT 10
- [BUG]: Docker Compose Install - Error HOT 2
- [FEAT]: Fine-Grained Access controls HOT 2
- [BUG]: Agent session close immediately after invoking HOT 5
- [BUG]: Ollama call failed with status code 500: llama runner process has terminated: exit status 0xc0000135 | Windows HOT 8
- [BUG]: chat-widget override my style on website (docker compose fedore 40) HOT 1
- [FEAT]: Chat with Github Repo HOT 2
- [FEAT]: Allow users to define an include pattern for the Github Data Connector
- [FEAT]: Creating build for desktop without using docker HOT 1
- [BUG]: Linux Desktop App - Ollama local - Could not respond to message error regardless of LLM Preferences successful setup HOT 3
- [BUG]: Agent can't find active connection to MySQL database HOT 2
- [BUG]: Query vector must have non-zero length 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 anything-llm.