Demo v2 Sketch#95
Conversation
bfd9bde to
f1d2caa
Compare
|
@shykes @samalba @aluzzardi End of last week we decided to go with workflows being run on the operator host, but didn't discuss in depth what changes there'd be to Basically:
|
|
There are still some issues we are figuring out based on discussion earlier, but I want some of the changes here to not be blocked (i.e. removal of Dockerfile boilerplate), so I merged the commits except for the initial todoapp workflow and the update to the docs related to how workflows are configured. Will leave these as a PR until we get consensus in the next day or two in case anyone has any comments. |
5169339 to
220d40b
Compare
|
Update for today:
Notes (light on details here to save time, mostly just listing these for my own memory for discussion in live meeting tomorrow):
|
| } | ||
| } | ||
| } | ||
| query Workdir() { |
There was a problem hiding this comment.
For later: API design:
- I think we should avoid having a "gRPC-like" API over GraphQL (e.g. imperative procedures like "read" and "write"). The GraphQL "native" way (not that I'm a reference here, just based on the APIs I saw) would probably be a top-level
workdir(optionalThingsSuchAsIncludeExclude: String): Filesystem!forread - As for
write, it should either be a top-level mutation (writeFilesystemToHost(input: AnInputType!)) - Or better yet, (but harder to do),
Filesystemshould have acontents: String(or probablycontents: Stream) and it's a SDK concern to grab the contents and de-serialize to the host (just like buildkit does). So the user query would be{ yarn { build { fs { contents } } }and unpack locally
Given the timeline, it's ok to postpone even having this conversation until after the demo (unless there's some easy changes that get us close to that)
There was a problem hiding this comment.
Didn't address this one as part of this PR, can tackle this as part of API refactoring
|
Pushed a fix for the issue David ran into with TS extensions not building the nodejs sdk correctly (handle both local and remote deps on that seamlessly now). Gonna go automate the go.mod insanity via cloak generate next. |
e562086 to
7f73403
Compare
6936aaa to
b9c5efc
Compare
129c12a to
c4093fe
Compare
Signed-off-by: Erik Sipsma <erik@sipsma.dev>
Signed-off-by: Erik Sipsma <erik@sipsma.dev>
Signed-off-by: Erik Sipsma <erik@sipsma.dev>
e81c859 to
8705d14
Compare
Signed-off-by: Erik Sipsma <erik@sipsma.dev>
Signed-off-by: Erik Sipsma <erik@sipsma.dev>
Signed-off-by: Erik Sipsma <erik@sipsma.dev>
Signed-off-by: Erik Sipsma <erik@sipsma.dev>
Signed-off-by: Erik Sipsma <erik@sipsma.dev>
Signed-off-by: Erik Sipsma <erik@sipsma.dev>
Signed-off-by: Erik Sipsma <erik@sipsma.dev>
Signed-off-by: Erik Sipsma <erik@sipsma.dev>
Signed-off-by: Erik Sipsma <erik@sipsma.dev>
Signed-off-by: Erik Sipsma <erik@sipsma.dev>
Signed-off-by: Erik Sipsma <erik@sipsma.dev>
Signed-off-by: Erik Sipsma <erik@sipsma.dev>
Signed-off-by: Erik Sipsma <erik@sipsma.dev>
8705d14 to
95d299d
Compare
|
Merging as is in order to reduce pain of everyone basing off my branch.
|
| @@ -0,0 +1,20 @@ | |||
| import { GraphQLClient } from "graphql-request"; | |||
There was a problem hiding this comment.
Do we need to commit compiled files?
Working on the features and implementation outline of https://github.com/dagger/cloak/blob/main/demos/v2/demo-v2.md
Demo P1
Anything that can make errors more bearable (truncate filesystem IDs)Demo P2
Pull image config, apply to execopsDeployNetlifyDeployobject (maybe call the typeURLsor something)DeploytoSiteURLs, but the client model codegen somehow decided to then make the struct namedDeployNetlifyDeploySiteURLsrather thanDeployNetlifySiteURLs(???). So made this update but it didn't help much.Filesystemfrom yarn (for nicer chains)Before merge into main
.ssh/known_hostsis overwritten or mounted over in containers (especially when done in every execop)--workdir,-pfiles+types inextension/etc. Think again if there's any short term changes to make to the actual implementation (look at magefile).gitconfigis still a pre-req for now if writing an out-of-tree go extensionMaybe, but probably just create backlog issue