Slackbot
02/10/2023, 12:36 AMJeremy Adams
02/10/2023, 5:13 AMAndrew Marine
02/11/2023, 12:02 AMJeremy Adams
02/12/2023, 5:55 PMbuilder
image and prodImage
).
Sticking with the Go SDK example, Itâs super easy to run your pipelines locally as just go run ci.go
(or compile that Go pipeline into a static binary your team can run from npm
or `yarn`or build an internal CLI, or whatever. Itâs just code!).
Then you can run the same thing from CI. Whether itâs CircleCI, GitHub Actions, GitLabCI, or Jenkins (or whatever else) youâd just have your CI run go run ci.go
.
https://docs.dagger.io/768421/go-ci
Caching âjust worksâ when you run locally which makes for a super rapid local dev loop where you can get everything working without dozens of âfix CIâ or âfix typoâ pushes to git/CI with multi-minute wait times per push. Once your pipeline is passing locally, itâs going to run just the same in CI, so you can avoid the âit only works in CIâ or âit only works on my laptopâ problem.
(Fun community video on this topic đ English dub coming soon).
For caching in CI, you can have a build host with a single cache, or with ephemeral CI runners, you can save the cache between runs (e.g. to blob storage). Many users rely on automatic caching locally and then keep it simple and donât cache in CI since theyâre not wasting time on a lot of failures. The observability features will make this decision easier.
The community Discord is super active and both Dagger staff and community members help out.
https://dagger.io/ (Discord link at top)
There are regular community calls with demos showing, for example, how a user has built an internal platform with Dagger.
https://dagger.io/events
https://www.youtube.com/playlist?list=PLyHqb4A5ee1tEgcr7KsNFzQSPN-R3fPs2 (just the demos from Community Calls)
The docs and blog posts are getting better and better đ
https://docs.dagger.io/
https://dagger.io/blog
Hope this helps! Happy to chat any time.Andrew Marine
02/14/2023, 6:59 PM