Skip to content

Port CUE SDK to Dagger Engine 0.3 #3121

Closed as not planned
Closed as not planned

Description

@jlongtine

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

  1. Are we aiming for 100% compatibility with 0.2 dagger.#Plan by launch?

Other concerns/things to think about

  1. Logging system changes
  2. Module system
  3. 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

  1. changed the title [-]`dagger-classic` - Port to `cloak`[/-] [+]`dagger/cue` - Port to `cloak`[/+] on Sep 16, 2022
  2. self-assigned this
    on Sep 27, 2022
  3. added
    area/documentation
    on Sep 28, 2022
  4. mircubed commented on Sep 29, 2022

    @mircubed
    Contributor

    @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.

  5. changed the title [-]`dagger/cue` - Port to `cloak`[/-] [+]`dagger-classic` - Port to `cloak`[/+] on Sep 29, 2022
  6. added this to the Cloak preview milestone on Oct 6, 2022
  7. mircubed commented on Oct 6, 2022

    @mircubed
    Contributor

    @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."

  8. Alvise88 commented on Oct 10, 2022

    @Alvise88
    Contributor

    I prefer to have a Cue SDK and understand how to translate an europa plan rather than having to use a disposable layer

  9. jlongtine commented on Oct 19, 2022

    @jlongtine
    ContributorAuthor

    I prefer to have a Cue SDK and understand how to translate an europa plan rather than having to use a disposable layer

    @Alvise88 You'll probably be interested in this discussion: #3432

  10. jpadams commented on Oct 20, 2022

    @jpadams
    Contributor

    @aluzzardi is socket support planned for cloak? (like dagger.#Socket)

  11. changed the title [-]`dagger-classic` - Port to `cloak`[/-] [+]Port CUE SDK to Dagger Engine 0.3[/+] on Oct 20, 2022
  12. shykes commented on Oct 20, 2022

    @shykes
    Contributor

    @jlongtine I took the liberty of editing this issue's title to match the newly defined terminology :)

  13. jlongtine commented on Oct 20, 2022

    @jlongtine
    ContributorAuthor

    @jlongtine I took the liberty of editing this issue's title to match the newly defined terminology :)

    Awesome!

  14. added
    area/engine
    and removed on Dec 5, 2022
  15. added and removed
    area/engine
    on Dec 6, 2022
  16. shykes commented on Dec 18, 2023

    @shykes
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/documentation

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions