#Hi ๐
1 messages ยท Page 1 of 1 (latest)
For context my goal is to have a shareable set of tools, all running inside containers, to perform all tasks we need to develop Go softwares: building, testing, linting, generating files, etc.
Currently Iโm doing it with a lot of custom stuff in make + bake + huge Dockerfile (like 40+ stages)
I did a small layer on top of dagger: https://github.com/eunomie/dague
It can be seen as:
- a set of
magetargets - a lib of
daggerbased tasks - an opinionated lib on top of dagger (as an example itโs possible to do
c.Container().From(BuildImage).Exec(apkAdd("build-base")).Exec(goInstall("golang.org/x/vuln/cmd/govulncheck@latestโ, "mvdan.cc/gofumpt@latest")))
The README is very basic, but Iโm trying it on top of one of thedocker scancli plugin to see whatโs possible for real (link in the readme to the test branch I've made)
I like the idea of an opinionated library on top of dagger! apkAdd and goInstall are awesome. Looking forward to seeing more!
Yes, that's basically one motivation behind these language specific SDK.
Extensions will push the idea further, but already having a bunch of generic operations on top of dagger is great! Thanks for sharing
(btw, are you CrEv on linuxfr?)
Yeah, that's me ๐
I improved a bit the different helpers. Some of them can be seen here: https://github.com/eunomie/dague#helpers-on-top-of-dagger
I added an AptInstall that includes by default the update and the cleaning.
And that makes me wondering if there's a plan to exec multiple commands at once. A bit like apt-get update && apt-get install ... in one single layer