Skip to content

New stdlib for Europa release - #1117

Merged
shykes merged 1 commit into
dagger:mainfrom
shykes:llb2
Dec 13, 2021
Merged

shykes merged 1 commit into
dagger:mainfrom
shykes:llb2

Conversation

@shykes

@shykes shykes commented Nov 9, 2021 •

Copy link
Copy Markdown
Contributor

The Europa release introduces a completely new set of CUE packages. This PR merges the latest version of these packages into a europa/ staging directory, so that their development can continue in parallel to engine implementation. This will facilitate collaboration between Go engine implementers, and CUE package implementers, and help avoid “split brain” situation where discrepancies and conflicts remain unnoticed and unnoticed for too long.

Note the addition of a detailed README for the new packages.

@shykes

shykes commented Nov 12, 2021

Copy link
Copy Markdown
Contributor Author

Updated with first pass at native container API: stdlib/dagger/container

@netlify

netlify Bot commented Nov 13, 2021 •

Copy link
Copy Markdown

✔️ Deploy Preview for devel-docs-dagger-io ready!

🔨 Explore the source changes: 59dd8581439c182a7a859a87cd05489f2182fa95

🔍 Inspect the deploy log: https://app.netlify.com/sites/devel-docs-dagger-io/deploys/61b3b6255098ab0008e54706

😎 Browse the preview: https://deploy-preview-1117--devel-docs-dagger-io.netlify.app

@shykes shykes changed the title [WIP] llb2: clean redesign of Cue API for buildkit [draft] New standard API Nov 13, 2021
@shykes shykes changed the title [draft] New standard API [draft] New stdlib Nov 13, 2021
@shykes shykes changed the title [draft] New stdlib [draft] New stdlib for Europa release Nov 13, 2021
@shykes

shykes commented Nov 16, 2021

Copy link
Copy Markdown
Contributor Author

Improved PR documentation:

  • Cleaner structure
  • Detailed status
  • Links to interesting files
  • Table to compare Stdlib and Universe

@shykes

shykes commented Nov 16, 2021

Copy link
Copy Markdown
Contributor Author

Added TODOLIST item: resolve registry auth special case (cc @aluzzardi )

@shykes

shykes commented Nov 19, 2021 •

Copy link
Copy Markdown
Contributor Author
  • Merged llb2/oci back into llb2 (simpler)
  • Start work to make this PR mergeable early:
    • Move new stdlib and universe to a europa/ directory
    • Clean up git history
  • Adapt llb2 hidden fields based on @aluzzardi suggestions

@shykes

shykes commented Nov 23, 2021

Copy link
Copy Markdown
Contributor Author

Pushed improvements after community call.

  • Removed container.#Image.fs.layers. #Image is now a simple receptable, with no custom build logic`
  • Temporarily call directly to llb2 to assemble images by copying files. Need to find a higher-level API for this that is Cue-friendly.
  • First pass at a netlify package
  • container.#Command can export files; used in netlify

@shykes

shykes commented Nov 23, 2021

Copy link
Copy Markdown
Contributor Author

Renamed container.#Command to container.#Run

@shykes

shykes commented Nov 25, 2021

Copy link
Copy Markdown
Contributor Author

New container.#Build API.

  • Convenience for less verbose builds
  • Supports custom build logic
  • Leverages CUE natively for composition
  • Native compatibility with Dockerfiles

See use in:

  • universe/alpine
  • universe/nginx
  • universe/examples/todoapp/dev

cc @jlongtine @aluzzardi @grouville @helderco

@shykes

shykes commented Dec 2, 2021

Copy link
Copy Markdown
Contributor Author
  • Moved dagger.io/llb2 to dagger.io/dagger/engine. Same content, different name (cc @samalba @aluzzardi )

@shykes

shykes commented Dec 2, 2021

Copy link
Copy Markdown
Contributor Author

Most common feedback so far is that there are too many container APIs. In attempt to address this, I am simplifying the API:

  • Low-level container operations: dagger.io/dagger/engine like all other low-level operations
  • High-level container API: universe.dagger.io/docker. When people think containers, they think Docker. By moving our primary container implementation to the docker package, we meet developers where they are.

I am keeping this in a separate commit, so it is easy to revert if people hate it.

cc @gerhard @helderco @grouville

@shykes

shykes commented Dec 2, 2021

Copy link
Copy Markdown
Contributor Author

Rebased on CI infrastructure fix by @samalba, to get tests passing.

@shykes

shykes commented Dec 6, 2021

Copy link
Copy Markdown
Contributor Author

Simplified docker build API, got it closer to working.

Comment thread europa/universe/docker/docker.cue Resolved
Comment thread europa/universe/docker/docker.cue Resolved
Comment thread europa/stdlib/dagger/engine/stream.cue Resolved
Comment thread europa/stdlib/dagger/engine/image.cue Resolved
Comment thread europa/stdlib/dagger/engine/image.cue Resolved
Comment thread europa/stdlib/dagger/plan.cue Resolved
@shykes shykes changed the title [draft] New stdlib for Europa release New stdlib for Europa release Dec 10, 2021
@shykes
shykes requested a review from samalba December 11, 2021 00:57
This was referenced Dec 13, 2021
Comment thread europa/stdlib/dagger/engine/exec.cue Resolved
@shykes
shykes merged commit e7f1649 into dagger:main Dec 13, 2021
@shykes
shykes deleted the llb2 branch December 13, 2021 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants