Docs: move draft articles to "guides"
Signed-off-by: Solomon Hykes <solomon@dagger.io>
This commit is contained in:
15
docs/plans/docker-cli-run/local.cue
Normal file
15
docs/plans/docker-cli-run/local.cue
Normal file
@@ -0,0 +1,15 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"dagger.io/dagger"
|
||||
"universe.dagger.io/docker/cli"
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
client: network: "unix:///var/run/docker.sock": connect: dagger.#Socket
|
||||
|
||||
actions: run: cli.#Run & {
|
||||
host: client.network."unix:///var/run/docker.sock".connect
|
||||
command: name: "info"
|
||||
}
|
||||
}
|
22
docs/plans/docker-cli-run/ssh.cue
Normal file
22
docs/plans/docker-cli-run/ssh.cue
Normal file
@@ -0,0 +1,22 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"dagger.io/dagger"
|
||||
"universe.dagger.io/docker/cli"
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
client: filesystem: {
|
||||
"~/.ssh/id_rsa": read: contents: dagger.#Secret
|
||||
"~/.ssh/known_hosts": read: contents: dagger.#Secret
|
||||
}
|
||||
|
||||
actions: run: cli.#Run & {
|
||||
host: "ssh://root@93.184.216.34"
|
||||
ssh: {
|
||||
key: client.filesystem."~/.ssh/id_rsa".read.contents
|
||||
knownHosts: client.filesystem."~/.ssh/known_hosts".read.contents
|
||||
}
|
||||
command: name: "info"
|
||||
}
|
||||
}
|
20
docs/plans/docker-cli-run/tcp.cue
Normal file
20
docs/plans/docker-cli-run/tcp.cue
Normal file
@@ -0,0 +1,20 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"dagger.io/dagger"
|
||||
"universe.dagger.io/docker/cli"
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
// Directory with certificates. Needs the following files:
|
||||
// - ca.pem --> (Certificate authority that signed the registry certificate)
|
||||
// - cert.pem --> (Client certificate)
|
||||
// - key.pem --> (Client private key)
|
||||
client: filesystem: "./certs": read: contents: dagger.#FS
|
||||
|
||||
actions: run: cli.#Run & {
|
||||
host: "tcp://93.184.216.34:2376"
|
||||
certs: client.filesystem."./certs".read.contents
|
||||
command: name: "info"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user