Andrea Luzzardi

Results 25 issues of Andrea Luzzardi

Similar to `docker exec`, swarmkit should provide a way to execute commands inside a task, mostly for debugging purposes.

area/api
kind/feature

Node is the only resource not created by users. A node has both a name (hostname) and labels (docker engine labels), but we don't want to put them in Spec.Meta...

priority/P3
area/api

Right now, every Job has the same priority and if no candidate node is available the Task stays in `PENDING` state. An alternative would be to provide a priority to...

priority/P2
area/orchestration

I noticed that using `Directory()`, changes outside the specified directory will cache bust: ```go src := c.Host().Workdir().Directory("sdk/python") ``` However, creating doing a `WithDirectory` won't: ```go src := c.Directory().WithDirectory("/", c.Host().Workdir().Directory("sdk/python")) ```...

Because of the optional contents, creating a new file looks something like this: ```go newDir := c.Directory().WithNewDirectory("/foo").WithNewFile("some-file", dagger.DirectoryWithNewFileOpts{ Contents: "some-content", }) ``` By making contents required it would look like...

area/core

Deprecated in favor of `host.directory(path: ".")` Fixes #3828 @vikram-dagger: I updated the docs the best I could, please take a look /cc @kpenfound @jpadams

Temporary hack to manually format the generated code, until we generate formatted code. Without this, every time I call `sdk:all:generate`, I have explicitly to cd into `sdk/nodejs` and run `yarn...

Fixes #3884 Waiting for #3910 to be merged first /cc @vikram-dagger @kpenfound @helderco @dolanor

See #3673 /cc @shykes @helderco @dolanor Behaves like `COPY` in Dockerfile -- workdir is honored.

Test (see the `Relative path`): ```go func TestDirectoryWithNewFile(t *testing.T) { t.Parallel() c, ctx := connect(t) defer c.Close() entries, err := c.Directory().WithNewFile("some-file", dagger.DirectoryWithNewFileOpts{ Contents: "some-content", }).Entries(ctx) require.NoError(t, err) require.Equal(t, []string{"some-file"}, entries)...

area/core