Comments (2)
- Put the installed collections into the build context, and only
ADD
them in the Containerfile, so that results ofansible-galaxy collection install
will not give different outcomes from one build to the next
TBH I kinda thought this was way it was going to go down but I do see point of then Containerfile is not very portable, has to go w/ whole context dir.
from ansible-builder.
Yes, but I worry that it over-simplifies the problem.
The initial implementation I'm working on is likely to knowingly violate the idea here, just to have a work-in-progress that we can make some testing progress with.
If we use ADD to solve these, then it makes more sense to package the collection tar.gz
files in the build context, as opposed to the fully installed file structure of the collections. I filed ansible/ansible#70429 as I was trying to define the limitations of that. It's not a home-run, it might work in some cases, but not all.
It's also not necessary wrong to have a Containerfile that pulls in new versions. It can be desirable to use the up-to-date versions, and produce images on the fly. What if you wanted to put the build context into your project source? You should either want ansible-builder
to pin everything, or not pin anything. You just don't want a mix of the two.
If you want everything un-pinned... then the best solution is to take all of the logic and put it into the Containerfile. In that case, maybe the Containerfile installs ansible-builder and then calls an ansible-builder command. Instead of writing a Containerfile, this command will just run the instructions directly.
That would look a whole lot like adding a flag to the collection install command, like ansible-galaxy collection install -r requirements.yml --system-deps
.
from ansible-builder.
Related Issues (20)
- [question] what makes ansible-builder v3 takes so long as compared to ansible-builder v1 ? HOT 5
- find/use git, it is required to continue with installing HOT 3
- rockylinux 9 base image: no dnf? 🤔 HOT 3
- unable to build awx-ee image fails on galaxy requirements HOT 5
- Update link to EE getting started guide HOT 3
- EE fails when using debian or ubuntu base image HOT 1
- Pluggable abstraction of base image interactions and support scripts HOT 1
- unexpected error when getting available versions of collection... community.general HOT 6
- Support recent versions of setuptools HOT 1
- Error when building an EE without requirements.yml HOT 1
- requirements-parser breaks on 3.12+ default venvs HOT 2
- ansible-builder version 3 has broken compatibility with schema version 1 HOT 1
- Modifying ssh config of EE HOT 1
- Adding Galaxy requirements from private Git instance HOT 1
- Container Policy Fails on Schema Version 3
- Concerning mutil arch builds HOT 1
- v3 prepend_builder adds command after "pip install" HOT 1
- ERROR! Unexpected Exception, this is probably a bug: '/api/v3/plugin/ansible/content/published/collections/index/community/general/versions/' HOT 9
- Equivalent to podman build --pull? HOT 2
- Add support for pip specifier syntax like `pywinrm[credssp]==0.4.3` HOT 2
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 ansible-builder.