Comments (4)
build
now supports a repeatable --exclude
arg
from kubler.
There is indeed an undocumented EXCLUDE env. This will also allow you to quite easily shoot yourself in the foot by skipping images that are required for building other images, though for your case it should be perfectly fine:
$ EXCLUDE=gentoobb/{cadvisor,foo} ./build.sh build gentoobb
Should do the trick, can't remember having ever used it myself though, let me know if it doesn't work. :p
I will leave this open for the upcoming documentation rewrite.
from kubler.
OK great, I thought there might be a proper way I had missed.
I renamed .cadvisor
back to cadvisor
and I tried EXCLUDE=gentoobb/{cadvisor,foo} ./build.sh build gentoobb
and it still tries to build cadvisor, if I just do EXCLUDE=gentoobb/cadvisor ./build.sh build gentoobb
it lists cadvisor but no build is attempted.
I also tried EXCLUDE=(gentoobb/{cadvisor,foo}) ./build.sh build gentoobb
so that EXCLUDE is a BASH Array but it also tries to build cadvisor. I think the array is working fine: -
$ EXCLUDE=(gentoobb/{cadvisor,foo})
$ for x in ${EXCLUDE[@]}; do echo $x; done
gentoobb/cadvisor
gentoobb/foo
My BASH foo isn't the greatest so I don't understand how the code you linked to works. Could it have a bug or am I doing something wrong? So far I've only needed to skip one image and I have a work-around if I need to skip many.
OH I just worked it out, its because IFS=', '
. EXCLUDE=gentoobb/cadvisor,gentoobb/foo ./build.sh build gentoobb
works, skips cadvisor. EXCLUDE=(gentoobb/cadvisor,gentoobb/foo) ./build.sh build gentoobb
doesn't work, it tries to build cadvisor.
I don't think it's a big deal, but maybe the code can be updated so that gentoobb/{foo,bar}
style can be used.
from kubler.
Yea, as I said, I haven't use this since it's implementation. 😛 Took a closer look and braces expansion is sadly a bit special and doesn't work with variables. So EXCLUDE
would have to be implemented as script param instead of env for this to work. build.sh -n build gentoobb/{foo,baz}
does work for example.
from kubler.
Related Issues (20)
- Similar tool binary-gentoo HOT 1
- Kubler 1.0.0 HOT 16
- Upstream bug: users and groups created during install of packages now respect ROOT HOT 7
- Build always fails: PermissionError: [Errno 13] Permission denied and alike HOT 15
- Missing new line in Dockerfile.template renders LABEL to last line HOT 1
- Kubler expects a TTY, `kubler build` broken in CI/CD HOT 2
- kubler build interactive behaviour difference: continues on errors in configure_bob() HOT 1
- Kubler bob-musl builder fails to emerge openssh due to util-linux's su use-flag requiring pam HOT 4
- Kubler Build breaks with docker buildx HOT 5
- Kubler download_portage_snapshot() dl_name $_TODAY timezone difference can have different name to origin
- Patches in acct-user.eclass failing due to recent changes HOT 5
- User eclass patches broken again HOT 2
- flaggie will be removed from the portage tree on 2023-01-24. HOT 5
- Here we go again: user eclasses have been updated again and causing trouble for Kubler HOT 2
- Apptainer/Singularity support? HOT 2
- flaggie-0.99.3 does not support --strict and --destructive-cleanup
- Use Dockerfile ARGs HOT 4
- bob-core Dockerfile template clobbered RUN command
- error when calling app-portage/flaggie HOT 7
- permission thing HOT 16
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 kubler.