Repository navigation
Description
This issue is a collaboration point and place to discuss the porting of dagger 0.2 CUE-based plans to run in cloak/dagger v0.3.
This issue currently is only tracking the work to allow [email protected] dagger.#Plans to be run using cloak. A future cloak CUE SDK has been discussed, but not specced out yet. As such, the running of other cloak extensions within CUE is not tracked by this issue.
It will contain a list of various pieces that need to be ported to cloak, including a list of what has/hasn't been implemented in cloak and any current compatibility issues.
It currently includes some analysis of differences between Europa and the original core API. This will be updated to reflect the latest API design: https://github.com/dagger/dagger/tree/cloak/core/schema
Some open questions
- Are we aiming for 100% compatibility with 0.2
dagger.#Planby launch?
Other concerns/things to think about
- Logging system changes
- Module system
- Secrets management is not in a good spot currently (creating new Secrets securely isn't currently possible in v0.3+).
Major blockers
dagger.io/dagger port to dagger v0.3
dagger.io/dagger/plan.cue
#Plan
| Europa | Dagger v0.3 status | dagger-cue status |
Notes |
|---|---|---|---|
client.filesystem.read |
✅✅✅✅ | ✅✅✅✅ | |
client.filesystem.write |
✅✅✅✅ | ✅✅✅✅ | |
client.network |
✅✅✅❌ | ❌❌❌❌ | This should be unblocked by recent releases. Unsure about npipe support. |
client.env |
✅✅✅✅ | ✅✅✅✅ | |
client.commands |
✅✅✅✅ | ✅✅✅✅ | Missing secrets creation API |
dagger.io/dagger/types.cue
dagger.#FS
dagger.#Secret
dagger.#Socket
dagger.io/dagger/values.cue
dagger.io/dagger/core to port to cloak
| Europa | Dagger v0.3 status | dagger-cue status |
Notes |
|---|---|---|---|
#Exec |
✅✅✅🚧 | ✅✅🚧🚧 | Currently missing socket mounts, always: true, and hosts config |
#Source |
✅✅✅✅ | ✅✅✅✅ | |
#Mkdir |
✅✅🚧❓ | ✅✅🚧🚧 | Missing permissions and parents: false |
#ReadFile |
✅✅✅✅ | ✅✅✅✅ | |
#WriteFile |
✅✅✅🚧 | ✅✅✅🚧 | Missing permissions |
#Copy |
✅✅✅✅ | ✅✅✅✅ | Doesn't have include + exclude filtering |
#Rm |
✅✅🚧🚧 | ✅✅❌❌ | Still missing some functionality around wildcards |
#Merge |
❌❌❌❌ | ❌❌❌❌ | |
#Diff |
✅✅✅✅ | ✅✅✅✅ | |
#Subdir |
✅✅✅✅ | ❓❓❓❓ | This just uses #Copy under the covers, so probably don't need a v0.3 equivalent |
#GitPull |
✅✅🚧🚧 | ✅✅🚧🚧 | Missing keepGitDir, and auth |
#HTTPFetch |
✅🚧🚧🚧 | ✅🚧🚧🚧 | Missing checksum, permissions, uid, and gid |
#Push |
✅🚧🚧🚧 | ✅🚧🚧🚧 | Missing ImageConfig, auth, and digest |
#Pull |
✅🚧🚧🚧 | ✅🚧🚧🚧 | Missing auth, and digest, partial implementation of ImageConfig |
#Dockerfile |
✅🚧❌❌ | ✅❌❌❌ | Partial implementation |
#Export |
✅✅❌❌ | ✅🚧❌❌ | Probably need to implement this myself... |
#DecodeSecret |
✅✅✅✅ | ✅✅✅✅ | Needs the ability to create new secrets |
#NewSecret |
✅✅✅✅ | ✅✅✅✅ | Needs the ability to create new secrets |
#TrimSecret |
✅✅✅✅ | ✅✅✅✅ | Needs the ability to create new secrets |
#Start |
❌❌❌❌ | ❌❌❌❌ | Services aren't in dagger v0.3 yet |
#Stop |
❌❌❌❌ | ❌❌❌❌ | Services aren't in dagger v0.3 yet |
#SendSignal |
❌❌❌❌ | ❌❌❌❌ | Services aren't in dagger v0.3 yet |
Activity
[-]`dagger-classic` - Port to `cloak`[/-][+]`dagger/cue` - Port to `cloak`[/+]mircubed commentedon Sep 29, 2022
@vikram-dagger I am adding the docs label as a reminder since the table will most likely turn into a doc that the users can review. There is no action needed from you side since Joel is still working on this.
[-]`dagger/cue` - Port to `cloak`[/-][+]`dagger-classic` - Port to `cloak`[/+]mircubed commentedon Oct 6, 2022
@jlongtine Can we make a more detailed issue around which parts of this user story can be done by the 0.3.0alpha1 release?
After discussing with @samalba @shykes , we need the following for alpha, so I am just trying to determine which issues of this overall story need to be completed to achieve the goal below:
" we need a cue story, especially for the preview. We don’t need the full compat, just something that bridges cue 0.2 to 0.3, otherwise it’ll confuse a lot of people. I expect a docs page somewhere that gives a simple cue example that works in 0.3."
Alvise88 commentedon Oct 10, 2022
I prefer to have a Cue SDK and understand how to translate an europa plan rather than having to use a disposable layer
jlongtine commentedon Oct 19, 2022
@Alvise88 You'll probably be interested in this discussion: #3432
jpadams commentedon Oct 20, 2022
@aluzzardi is socket support planned for cloak? (like
dagger.#Socket)[-]`dagger-classic` - Port to `cloak`[/-][+]Port CUE SDK to Dagger Engine 0.3[/+]shykes commentedon Oct 20, 2022
@jlongtine I took the liberty of editing this issue's title to match the newly defined terminology :)
jlongtine commentedon Oct 20, 2022
Awesome!
shykes commentedon Dec 18, 2023
The project to port the Dagger CUE SDK to Dagger Engine 0.3 is officially canceled.
We really tried... But in the end there were too many technical obstacles, and not enough community interest. Thank you @jlongtine for your valiant effort, and to @morlay for carrying the torch with Project Wagon.
We will post an announcement later today on our blog, with more details.