Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
169 commits
Select commit Hold shift + click to select a range
a3ddf17
Zenith episode two: revenge of the function
shykes Sep 2, 2023
a15050f
core: baseline core schema implementation for envs+checks.
sipsma Aug 17, 2023
0a5fe5e
WIP module+function graphql schemas
sipsma Sep 5, 2023
c1687d4
WIP modules+functions implementation
sipsma Sep 5, 2023
f3f5353
WIP go sdk updates
sipsma Sep 5, 2023
020b33a
base working functions w/ go sdk
sipsma Sep 11, 2023
50063d9
update module test connect usage
vito Sep 11, 2023
260ad33
disable depguard lint
vito Sep 11, 2023
6774bbb
disable unused param linters
vito Sep 11, 2023
4d86a20
fix up lints
vito Sep 11, 2023
c32de1c
support id-able types as inputs; extending core types
sipsma Sep 12, 2023
704ce5c
fix support for chainable types
sipsma Sep 12, 2023
83e3e9a
ignore non-fatal compile errors
sipsma Sep 12, 2023
a4c69d5
flesh out zenith intro instructions, add demo mod
vito Sep 12, 2023
15f9806
bump Go runtime to 1.21
vito Sep 12, 2023
bc791ad
query: fix --progress=plain requirement
vito Sep 12, 2023
2679706
fix sdk/go unit tests
vito Sep 13, 2023
9d3e3b0
codegen: generate querybuilder/ package
vito Sep 12, 2023
d9e154a
mod init: bootstrap Go module
vito Sep 13, 2023
94fe108
support multiple passes for codegen
vito Sep 13, 2023
4d52173
Merge remote-tracking branch 'upstream/main' into zenith-functions
vito Sep 13, 2023
acf45a7
fix post-merge compilation errors
vito Sep 13, 2023
3f4d820
un-break cmd/client-gen
vito Sep 13, 2023
328a7c0
re-bump progrock for ioctl fix
vito Sep 13, 2023
4acf9d0
respect existing .gitattributes
vito Sep 13, 2023
03786b8
update core/integration for input pointer change
vito Sep 13, 2023
f3edc96
codegen: respect existing go.mod
vito Sep 13, 2023
bd66da1
listen: add --allow-cors
vito Sep 13, 2023
7567173
support non-local module dependencies
vito Sep 13, 2023
e86435e
fix TypeDef { kind } resolving to 'null'
vito Sep 13, 2023
90d2670
fix uninterruptible codegen
vito Sep 14, 2023
80370d8
query: unfocus by default
vito Sep 14, 2023
98be269
bump progrock to avoid printing TUI to redirected stderr
vito Sep 14, 2023
0b2926a
use a single strcase package
vito Sep 14, 2023
a8aa8d6
fix module dependencies not loading
vito Sep 14, 2023
76637cd
Module: expose sdk, dependencies, source dir
vito Sep 14, 2023
f0deb95
dagger mod extend -> use
vito Sep 14, 2023
605d3de
fix always getting description of first func
vito Sep 14, 2023
fd03f76
expose dependency configs
vito Sep 14, 2023
6f12382
new module ref format, resolve at use time
vito Sep 14, 2023
ea3da6f
fix uninterruptible package loading
vito Sep 14, 2023
e965bd3
thread ctx through to template packages.Load too
vito Sep 14, 2023
68aa094
fix a couple of rogue filepath.Dirs
vito Sep 14, 2023
45d6bc0
support distinguishing git commit from desired tag
vito Sep 14, 2023
b39ac77
fix -m with git ref
vito Sep 14, 2023
2e4374d
Added example to README
Sep 15, 2023
b4915f2
Fixed indentation in README example
Sep 15, 2023
41c8793
tweak git docs
kpenfound Sep 15, 2023
bd9e508
revise README
vito Sep 18, 2023
3173a4f
Merge remote-tracking branch 'upstream/main' into zenith-functions
vito Sep 18, 2023
e8bbf5c
Zenith README: chaining example
shykes Sep 19, 2023
72469fe
Zenith README: fix errors
shykes Sep 19, 2023
25322e5
fix: dagger mod use should override previous versions
jedevc Sep 19, 2023
73aff3c
non-error returns, void returns, optional ctx
vito Sep 19, 2023
98b9176
bump graphql for explicit scalar error handling
vito Sep 19, 2023
479017a
fix lints
vito Sep 19, 2023
67c3172
skip non-working env tests
vito Sep 19, 2023
4635c10
avoid panic if proxy env not set
vito Sep 19, 2023
fe01cc1
fix services not having ProxyEnv
vito Sep 19, 2023
659ce9f
allow non-ctx first arg
vito Sep 19, 2023
22ff9b4
Merge pull request #123 from jedevc/zenith-functions-fix-module-use
shykes Sep 19, 2023
40ef7cd
sdk/go modules support Opts args
vito Sep 19, 2023
df44133
refactor for gocyclo lint
vito Sep 19, 2023
0cfdf58
add test for custom types
vito Sep 19, 2023
cb02ce0
fix not including functions for custom types
vito Sep 19, 2023
7bdfb40
fix: prevent Directory.Without from failing on missing files
jedevc Sep 20, 2023
eb9f6e0
don't recursively load packages
vito Sep 20, 2023
161ef07
fix: apply ToLowerCamel consistently
jedevc Sep 20, 2023
43fcee1
fix + test using local modules
vito Sep 20, 2023
f9205b4
switch from input types to withFoo pattern
vito Sep 21, 2023
07a7243
Merge remote-tracking branch 'upstream/main' into zenith-functions
vito Sep 22, 2023
e8c4598
Make engine version overrideable
shykes Sep 22, 2023
4a8e7c1
dagger version also prints worker registry address
shykes Sep 22, 2023
f23fe3f
debugging module failure
vito Sep 22, 2023
d2addea
fix references to other objects
vito Sep 22, 2023
890f465
only unmarshal opts that are present
vito Sep 22, 2023
314b7e9
fix passing lists to functions
vito Sep 22, 2023
eb240e3
fix self-referential (chaining) types
vito Sep 22, 2023
a3626c3
un-weird container.Clone
vito Sep 22, 2023
98a9299
fixup remove logs
vito Sep 22, 2023
577e5c9
register multiple objects
vito Sep 22, 2023
360960b
remove overly defensive guard
vito Sep 22, 2023
f0a1e48
fix extending existing types
vito Sep 22, 2023
b7b920b
only stitch module constructor, not all types
vito Sep 22, 2023
19b3109
Add minimal Python support
helderco Sep 22, 2023
ce3f3fe
go codegen: preserve definition order, pretty-print
vito Sep 22, 2023
b3249a1
fix code that can't run anyway, explain why
vito Sep 22, 2023
e8a8d40
roll back debugging code
vito Sep 22, 2023
4a36bbb
Add git to the Python runtime
helderco Sep 22, 2023
a7ce98c
mount dagger CLI to /bin/dagger when nesting
vito Sep 22, 2023
72f4326
goruntime: run dagger mod sync before building
vito Sep 22, 2023
2ed6393
fix setting empty field description
vito Sep 22, 2023
6725ec6
remove now-superfluous mod sync commands
vito Sep 23, 2023
f3d7e19
add TESTFLAGS="-foo -bar ./baz/" engine:testcustom
vito Sep 23, 2023
4559101
test wrapping/unwrapping core types
vito Sep 23, 2023
fd62a83
only generate main.go if it doesn't already exist
vito Sep 24, 2023
60ad9a7
fix a couple of module loading bugs
vito Sep 24, 2023
84184dc
fix lints
vito Sep 24, 2023
4a429af
sdk/nodejs: handle reserve words, regen
vito Sep 24, 2023
7e614a9
pythonruntime: fmt
vito Sep 24, 2023
8701be6
draft some GraphQL API docs
vito Sep 25, 2023
8144efb
regen rust
vito Sep 24, 2023
58ba7fb
regen elixir sdk
vito Sep 24, 2023
0b686fe
sdk/nodejs: allow from and export without _
vito Sep 24, 2023
f687383
regen go, python, nodejs
vito Sep 25, 2023
7e13aa9
regen java
vito Sep 24, 2023
23ef8bf
Abandon black's preview style
helderco Sep 25, 2023
ab3d9e9
add basic test for extending core types
vito Sep 25, 2023
695c0d0
Add support for new scalars JSON, Void, ModuleID, FunctionID, TypeDef…
jcsirot Sep 25, 2023
aa37ed1
refactor + test codegen
vito Sep 22, 2023
0806747
dagger mod init: test and handle more situations
vito Sep 25, 2023
e70b858
move querybuilder back under ./internal/
vito Sep 25, 2023
8478529
go codegen: .gitignore generated files
vito Sep 25, 2023
7a5b453
fix modules_test.go
vito Sep 25, 2023
563027d
refactor codegen order, .gitignore generated files
vito Sep 25, 2023
350913e
fix loading not-generated package
vito Sep 25, 2023
8e0c5b5
move git tests to separate
vito Sep 25, 2023
780a316
clean up and regen modules
vito Sep 25, 2023
ec7212d
HACK: add cache buster
vito Sep 25, 2023
224a426
load non-module package, too
vito Sep 25, 2023
b8a83a9
remove unused func
vito Sep 25, 2023
e1811f5
fix handling of root: .., support outer go.mod
vito Sep 26, 2023
2fdd940
generate base dagger.gen.go if it doesn't exist
vito Sep 26, 2023
be27cb5
fix tricky ordering, yay tests
vito Sep 26, 2023
d07fbb4
disable crippling memoization
shykes Sep 27, 2023
cefc582
module-ize codegen by moving it under sdk/go
vito Sep 26, 2023
e50d4c7
use bootstrapped vito/dagger-sdk-go image
vito Sep 26, 2023
25ae32b
tidy up runtime bootstrapping
vito Sep 27, 2023
89d7c3a
avoid blank line at start of .gitignore
vito Sep 27, 2023
d33d15c
avoid generating bogus go.mod
vito Sep 27, 2023
ccae2ff
Directory.asModule can be given a pre-built runtime
vito Sep 27, 2023
3c29583
sdk/go: add bootstrapping for runtime image
vito Sep 27, 2023
48a62cf
fully decouple dagger CLI from SDK codegen
vito Sep 27, 2023
fffa34b
sdk/go: fix generating empty object stub
vito Sep 27, 2023
1e171ad
sdk/go: build image on linux/amd64 and linux/arm64
vito Sep 28, 2023
f85689a
fix constructing container from ID dropping platform
vito Sep 28, 2023
c5e003a
refactor sdk name => runtime flow, fix backwards compat
vito Sep 28, 2023
a13a3ee
cache internal module calls
vito Sep 28, 2023
b0ae392
silence that pesky version compatibility check
vito Sep 28, 2023
1e198af
fix zero-ing out SDKRuntime when no SDK name set
vito Sep 28, 2023
4cd5f42
show progress during codegen
vito Sep 28, 2023
02dbd7c
add GeneratedCode type so codegen can give VCS hints
vito Sep 28, 2023
f621d66
fix: don't use --vcs flag
vito Sep 29, 2023
9a8a22b
Bust Function runtime cache once per-session.
sipsma Oct 2, 2023
d52eb74
remove dead code
vito Oct 3, 2023
d457143
fix a couple of tests
vito Oct 3, 2023
b9163d1
fix gitignore path already there check
vito Oct 3, 2023
51ccf27
fix up go/nodejs codegen
vito Oct 3, 2023
ac8faa0
fix: consistent errors for non-existent module directory
jedevc Oct 9, 2023
f1e680d
fix: dagger mod init should require sdk and name args
jedevc Oct 9, 2023
2301d32
Add `dagger call` command
helderco Oct 9, 2023
5db764e
Small linting fix
helderco Oct 9, 2023
8000d01
backport dagger shell
sipsma Oct 3, 2023
cf56328
chore: dagger shell branch: fix conflicts
grouville Oct 9, 2023
c3ecde9
fix: mount the correct dependency sub-folder
jedevc Oct 10, 2023
8fc39ec
cleanup egregious stuff from dagger shell impl
sipsma Oct 10, 2023
c85633a
Merge remote-tracking branch 'upstream/main' into zenith-functions
sipsma Oct 10, 2023
a47e2cd
fix go sdk lints
sipsma Oct 10, 2023
1e44d0f
appease engine lints
sipsma Oct 10, 2023
49883c9
fix missed engine lint
sipsma Oct 10, 2023
6ec611e
upgrade go+golangci to see if it fixes bizarre lint fail
sipsma Oct 10, 2023
f315ee3
fix gitignore of sdk/go/runtime
sipsma Oct 10, 2023
8a00f68
fix + test using multiple modules
vito Oct 10, 2023
690c6c2
fix go sdk tests
sipsma Oct 10, 2023
4eb8a0c
fix elixer sdk lints
sipsma Oct 10, 2023
9ca5dcf
appease residual lints
sipsma Oct 10, 2023
a857a1e
upgrade sphinx-rtd-theme to see if it fixes read-the-docs build
sipsma Oct 10, 2023
bf18306
use session: prefix for blobsource
sipsma Oct 10, 2023
0a813d1
add explicit requirements.txt for python docs
sipsma Oct 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ __pycache__

# Local environment variables, usually secrets
.env
.envrc
/.envrc

# go workspaces (useful for go linter on VSCode)
go.work
Expand Down
16 changes: 10 additions & 6 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ linters:
disable-all: true
enable:
- bodyclose
- depguard
- dogsled
- dupl
- exportloopref
Expand All @@ -30,17 +29,22 @@ linters:
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- unused
- whitespace

issues:
exclude-rules:
- path: ci
linters:
- unparam
- path: _test\.go
linters:
- dupl
- gosec

linters-settings:
revive:
rules:
# This rule is annoying. Often you want to name the
# parameters for clarity because it conforms to an
# interface.
- name: unused-parameter
severity: warning
disabled: true
1 change: 1 addition & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ python:
install:
- method: pip
path: sdk/python
- requirements: sdk/python/docs/requirements.txt
48 changes: 24 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
## What is Dagger?

Dagger is a programmable CI/CD engine that runs your pipelines in containers.

### Programmable

Develop your CI/CD pipelines as code, in the same programming language as your application.

### Runs your pipelines in containers

Dagger executes your pipelines entirely as [standard OCI containers](https://opencontainers.org/). This has several benefits:

* **Instant local testing**
* **Portability**: the same pipeline can run on your local machine, a CI runner, a dedicated server, or any container hosting service.
* **Superior caching**: every operation is cached by default, and caching works the same everywhere
* **Compatibility** with the Docker ecosystem: if it runs in a container, you can add it to your pipeline.
* **Cross-language instrumentation**: teams can use each other's tools without learning each other's language.

## Who is it for?

Dagger may be a good fit if you are...

* A developer wishing your CI pipelines were code instead of YAML
* Your team's "designated devops person", hoping to replace a pile of artisanal scripts with something more powerful
* A platform engineer writing custom tooling, with the goal of unifying continuous delivery across organizational silos
* A cloud-native developer advocate or solutions engineer, looking to demonstrate a complex integration on short notice
Dagger is a tool that lets you replace your software project's artisanal scripts with a modern API and cross-language scripting engine.

1. Encapsulate all your project's tasks and workflows into simple functions, written in your programming language of choice
2. Dagger packages your functions into a custom GraphQL API
3. Run your functions from the CLI, your language interpreter, or a custom HTTP client
4. Package your functions into a module, to reuse in your next project or share with the community
5. Search the Daggerverse for existing modules, and import them into yours. All Dagger modules can reuse each other's functions - across language.

## Benefits to app teams

* Reduce complexity: even complex builds can be expressed as a few simple functions
* No more "push and pray": everything CI can do, your dev environment can do too
* Use the same language to develop your app and its scripts
* Easy onboarding of new developers: if you can build, test and deploy - they can too.
* Everything is cached by default: expect 2x to 10x speedups
* Parity between dev and CI environments
* Cross-team collaboration: reuse another team's workflows without learning their stack

## Benefits to platform teams

* Reduce CI lock-in. Dagger functions run on all major CI platforms - no proprietary DSL needed.
* Don't be a bottleneck. Let app teams write their own functions. Enable standardization by providing them a library of reusable components.
* Faster CI runs. CI pipelines that are "Daggerized" typically run 2x to 10x faster, thanks to caching and concurrency. This means developers waste less time waiting for CI, and you spend less money on CI compute.
* A viable platform strategy. App teams need flexibility, and you need control. Dagger gives you a way to reconcile the two, in an incremental way that leverages the stack you already have.

## Learn more

Expand Down
4 changes: 4 additions & 0 deletions ci/.envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
DAGGER_SRC_ROOT=$(cd ../ && pwd)
export _EXPERIMENTAL_DAGGER_CLI_BIN=$DAGGER_SRC_ROOT/bin/dagger
export _EXPERIMENTAL_DAGGER_RUNNER_HOST=docker-container://dagger-engine.dev
export PATH=$DAGGER_SRC_ROOT/bin:$PATH
1 change: 1 addition & 0 deletions ci/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/dagger.gen.go linguist-generated=true
4 changes: 4 additions & 0 deletions ci/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

/dagger.gen.go
/internal/
/querybuilder/
Loading