-
Notifications
You must be signed in to change notification settings - Fork 78
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
cta: docker API #149
Conversation
royra
commented
Jul 31, 2023
- passthrough API to docker on port 3001
- websocket impl for exec and logs
4c4c088
to
30ecfb0
Compare
There was a problem hiding this 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' |
There was a problem hiding this comment.
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/ws/handlers/exec.ts
Outdated
Show resolved
Hide resolved
packages/compose-tunnel-agent/src/docker-proxy/ws/handlers/logs.ts
Outdated
Show resolved
Hide resolved
- passthrough API to docker on port 3001 - websocket impl for exec and logs