stdlib: added support for local docker socket
Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
@@ -57,6 +57,9 @@ import (
|
||||
[string]: true @dagger(input)
|
||||
}
|
||||
|
||||
// Mount docker socket
|
||||
socket?: dagger.#Stream @dagger(input)
|
||||
|
||||
// Additional packages to install
|
||||
package: {
|
||||
[string]: true | false | string @dagger(input)
|
||||
@@ -213,6 +216,9 @@ import (
|
||||
"/keyPassphrase": secret: ssh.keyPassphrase
|
||||
}
|
||||
}
|
||||
if socket != _|_ {
|
||||
"/var/run/docker.sock": stream: socket
|
||||
}
|
||||
for dest, o in mount {
|
||||
"\(dest)": o
|
||||
}
|
||||
|
Reference in New Issue
Block a user