cue fmt
Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
parent
c422512155
commit
7601433729
@ -7,22 +7,20 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
engine.#Plan & {
|
engine.#Plan & {
|
||||||
// should fail
|
// should fail
|
||||||
context: services: dockerSocket: {}
|
context: services: dockerSocket: {}
|
||||||
|
|
||||||
actions: {
|
actions: test: #up: [
|
||||||
test: #up: [
|
op.#Load & {
|
||||||
op.#Load & {
|
from: alpine.#Image & {
|
||||||
from: alpine.#Image & {
|
package: "docker-cli": true
|
||||||
package: "docker-cli": true
|
}
|
||||||
}
|
},
|
||||||
},
|
|
||||||
|
|
||||||
op.#Exec & {
|
op.#Exec & {
|
||||||
always: true
|
always: true
|
||||||
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
||||||
args: ["docker", "info"]
|
args: ["docker", "info"]
|
||||||
}
|
},
|
||||||
]
|
]
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -7,22 +7,20 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
engine.#Plan & {
|
engine.#Plan & {
|
||||||
// should succeed
|
// should succeed
|
||||||
context: services: dockerSocket: unix: string
|
context: services: dockerSocket: unix: string
|
||||||
|
|
||||||
actions: {
|
actions: test: #up: [
|
||||||
test: #up: [
|
op.#Load & {
|
||||||
op.#Load & {
|
from: alpine.#Image & {
|
||||||
from: alpine.#Image & {
|
package: "docker-cli": true
|
||||||
package: "docker-cli": true
|
}
|
||||||
}
|
},
|
||||||
},
|
|
||||||
|
|
||||||
op.#Exec & {
|
op.#Exec & {
|
||||||
always: true
|
always: true
|
||||||
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
||||||
args: ["docker", "info"]
|
args: ["docker", "info"]
|
||||||
}
|
},
|
||||||
]
|
]
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -7,22 +7,20 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
engine.#Plan & {
|
engine.#Plan & {
|
||||||
// should fail because of misspelled key
|
// should fail because of misspelled key
|
||||||
context: services: dockerSocket: unx: "/var/run/docker.soc"
|
context: services: dockerSocket: unx: "/var/run/docker.soc"
|
||||||
|
|
||||||
actions: {
|
actions: test: #up: [
|
||||||
test: #up: [
|
op.#Load & {
|
||||||
op.#Load & {
|
from: alpine.#Image & {
|
||||||
from: alpine.#Image & {
|
package: "docker-cli": true
|
||||||
package: "docker-cli": true
|
}
|
||||||
}
|
},
|
||||||
},
|
|
||||||
|
|
||||||
op.#Exec & {
|
op.#Exec & {
|
||||||
always: true
|
always: true
|
||||||
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
||||||
args: ["docker", "info"]
|
args: ["docker", "info"]
|
||||||
}
|
},
|
||||||
]
|
]
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -7,22 +7,20 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
engine.#Plan & {
|
engine.#Plan & {
|
||||||
// should fail because of misspelled value
|
// should fail because of misspelled value
|
||||||
context: services: dockerSocket: unix: "/var/run/docker.soc"
|
context: services: dockerSocket: unix: "/var/run/docker.soc"
|
||||||
|
|
||||||
actions: {
|
actions: test: #up: [
|
||||||
test: #up: [
|
op.#Load & {
|
||||||
op.#Load & {
|
from: alpine.#Image & {
|
||||||
from: alpine.#Image & {
|
package: "docker-cli": true
|
||||||
package: "docker-cli": true
|
}
|
||||||
}
|
},
|
||||||
},
|
|
||||||
|
|
||||||
op.#Exec & {
|
op.#Exec & {
|
||||||
always: true
|
always: true
|
||||||
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
||||||
args: ["docker", "info"]
|
args: ["docker", "info"]
|
||||||
}
|
},
|
||||||
]
|
]
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -7,22 +7,20 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
engine.#Plan & {
|
engine.#Plan & {
|
||||||
// should succeed
|
// should succeed
|
||||||
context: services: dockerSocket: unix: "/var/run/docker.sock"
|
context: services: dockerSocket: unix: "/var/run/docker.sock"
|
||||||
|
|
||||||
actions: {
|
actions: test: #up: [
|
||||||
test: #up: [
|
op.#Load & {
|
||||||
op.#Load & {
|
from: alpine.#Image & {
|
||||||
from: alpine.#Image & {
|
package: "docker-cli": true
|
||||||
package: "docker-cli": true
|
}
|
||||||
}
|
},
|
||||||
},
|
|
||||||
|
|
||||||
op.#Exec & {
|
op.#Exec & {
|
||||||
always: true
|
always: true
|
||||||
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
||||||
args: ["docker", "info"]
|
args: ["docker", "info"]
|
||||||
}
|
},
|
||||||
]
|
]
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user