Comments (6)
Integrate support of Viper/Cobra configuration for both client and build packages commands.
Format supported is YAML (or viper supported format):
Example of a configuration for the client:
logging: path: /var/log/luet/luet.log level: "info" general: concurrency: 4 # debug: false # Environment options are usable proxy: http: xxx https: xxxx ftp: xxx cache_repositories:
We should be consistent, and choose between underscore or dashes for naming (cache_repositories
vs system-repositories
). But my question is also, should we allow to define the cache per-repo for the user? or compute automatically the paths based on a root path (which is defined by the user?)
from luet.
The cache_repositories
is intended like an L2 Cache where luet could retrieve packages/layers before use mirrors. I'm not sure that /var/cache/luet/repos
is right here because could be the default path where fetch packages.
The idea is to use for example a directory where retrieve/store fetched files:
$# ls /var/cache/luet/repos/
repo1/pkg1.tar
repo2/pkg2.tar
...
Or in a LAN fetch packages from a node used as local cache mirrors that is integrated in this way:
- Run: luet install pkg1
- luet try to see if pkg1 is already present in local cache
- if not present try to check if pkg is present on cached_repository with high priority
- if pkg is not present try to fetch the package from URL defined inside repository object
- if cached_repository has
rw
mode then try to push the package to cached_repos - luet install fetched package.
The cached repository could be a feature of API Server instances.
from luet.
It seems that viper has an issue on parse structure from configuration files with field with an underscore (probably for the env key replacer):
$ ./luet config
Using config file: /home/geaaru/go/src/github.com/mudler/luet/.luet.yaml
💣 [failed to load configuration: 1 error(s) decoding:
* 'cache_repositories[0]' expected a map, got 'string']🔥
$ cat .luet.yaml
system_repositories:
- name: "xxx"
I will rename system_repositories
in repositories
and cache_repositories
in repetitors
.
from luet.
This implement repositories integration b8f7122
from luet.
Just to trace the implemented configuration file: https://github.com/mudler/luet/blob/develop/contrib/config/luet.yaml
from luet.
repetitors
integration will be defined by a specific issue.
from luet.
Related Issues (20)
- Resolve join images from final images
- Candidate not found HOT 7
- Luet does expect some parameter or it crashes HOT 5
- Error: failed getting package to finalize HOT 1
- Final images metadata
- Build apparently succeeds, always fails at Delta generation step HOT 1
- Multi-arch support for OCI-repo HOT 1
- `luet tree images` returns wrong docker image tags HOT 2
- Support for input variables through OS environment variables and command-line
- Add initializers (analogous to finalizers) HOT 2
- Add package finalize in addition to global finalize HOT 1
- Files disappearing?
- Drop finalization redundancy HOT 2
- Broken links on main docs site
- ✨ Support for unpacking local image - tar files
- Luet 34 was not properly released
- luet install could do with a --cleanup flag
- luet util unpack should support overriding image platform/arch HOT 3
- Provide `marcosnils/bin` as an alternate installation method HOT 1
- Error: package 'meta/users->=0' not found HOT 1
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 luet.