Skip to content

services support - #3123

Closed
aluzzardi wants to merge 5 commits into
dagger:mainfrom
aluzzardi:interactive-containers
Closed

aluzzardi wants to merge 5 commits into
dagger:mainfrom
aluzzardi:interactive-containers

Conversation

@aluzzardi

Copy link
Copy Markdown
Contributor

This PR adds support for services, specifically:

  • Creating services (asynchronous containers)
  • Service control (listing, retrieving, stopping, ...)
  • tty streaming over WebSocket with CLI support (cloak attach)
  • Experimental debugger extension

TODO:

  • Improve error handling in the WebSocket handler
  • Remove hardcoded endpoint in cloak attach (e.g. ws://localhost:8080)
  • Find out if there's a well known protocol for tty over ws we could use instead of the homemade one I came up with
  • Add missing arguments in service start (e.g. cache mounts, etc)
  • Change the API to support multiple processes per container
  • Q: should we support regular (non streaming) std{in,out,err}?
    • I think it would make sense to programmatically start one-off containers
  • Tests

Next (out of scope for this PR):

  • Container to container networking
    • e.g. Allow the pipeline to somehow communicate with services
  • Host to container (and container to host?) networking
    • e.g. Allow the end user to access a service through localhost

Signed-off-by: Andrea Luzzardi <[email protected]>
@aluzzardi
aluzzardi force-pushed the interactive-containers branch from 3a060ab to 32e38d0 Compare September 28, 2022 23:16
@netlify

netlify Bot commented Sep 28, 2022 •

Copy link
Copy Markdown

✅ Deploy Preview for cloak-docs ready!

Name Link
🔨 Latest commit c091cd7
🔍 Latest deploy log https://app.netlify.com/sites/cloak-docs/deploys/6334da632c30670008a9c24d
😎 Deploy Preview https://deploy-preview-3123--cloak-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@aluzzardi
aluzzardi force-pushed the interactive-containers branch from 32e38d0 to c091cd7 Compare September 28, 2022 23:36
@aluzzardi

Copy link
Copy Markdown
Contributor Author

Merging as is to avoid maintaining this PR, however this needs a lot of rework before being released:

  • Convert to New Core API
  • Restructure to be multi-process (just like buildkit)
  • Support non-interactive mode (e.g. for launching a db etc, we don't want tty streaming etc)
  • cloak attach is hardcoded to localhost
  • Tests

If we don't get it to before preview, we should disable this.

/cc @sipsma @vito

@aluzzardi
aluzzardi marked this pull request as ready for review September 28, 2022 23:37
@aluzzardi
aluzzardi requested a review from sipsma September 28, 2022 23:37
@github-actions

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions

Copy link
Copy Markdown
Contributor

This PR was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions Bot closed this Nov 21, 2022
@dolanor

dolanor commented Dec 5, 2022

Copy link
Copy Markdown
Contributor

I'm assessing the state of services. For now, this is the latest implementation?

@vito

vito commented Dec 5, 2022

Copy link
Copy Markdown
Contributor

@dolanor I'd wager the latest discussion in #4080 is more relevant at this point, but yeah this is the most recent actually-pushed code for it (besides #4025 which is tangentially related).

@helderco

Copy link
Copy Markdown
Contributor

Lobbying to continue with the debugger in:

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants