Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cta: docker API #149

Merged
merged 7 commits into from
Aug 1, 2023
Merged

cta: docker API #149

merged 7 commits into from
Aug 1, 2023

Conversation

royra
Copy link
Collaborator

@royra royra commented Jul 31, 2023

  • passthrough API to docker on port 3001
  • websocket impl for exec and logs

@royra royra requested a review from Yshayy July 31, 2023 08:30
@royra royra force-pushed the cta-docker-proxy branch 2 times, most recently from 4c4c088 to 30ecfb0 Compare July 31, 2023 08:57
@royra royra changed the title cta: web-server->api-server cta: docker API Jul 31, 2023
Copy link
Contributor

@Yshayy Yshayy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, added few notes

import Dockerode from 'dockerode'
import fetch from 'node-fetch'
import { inspect, promisify } from 'node:util'
import waitForExpect from 'wait-for-expect'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait-for-expect seems to be not maintained.
Might worth using alternative or just copying the implementation. (it's a single file)

packages/compose-tunnel-agent/src/docker-proxy/index.ts Outdated Show resolved Hide resolved
tunnel-server/src/ssh-server.ts Show resolved Hide resolved
@royra royra merged commit 9fbb7f5 into main Aug 1, 2023
7 of 8 checks passed
@royra royra deleted the cta-docker-proxy branch August 1, 2023 14:57
@royra royra restored the cta-docker-proxy branch August 1, 2023 15:18
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.

2 participants