This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/.dagger/env/sandbox/sandbox.cue
Solomon Hykes 3b03c96e28 devenv: use dagger.io/os
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-05-04 11:21:02 -07:00

22 lines
285 B
CUE

package main
import (
"dagger.io/docker"
"dagger.io/os"
)
let ctr = docker.#Container & {
command: "echo 'hello world!' > /etc/motd"
}
motd: (os.#File & {
from: ctr
path: "/etc/motd"
read: format: "string"
}).read.data
etc: (os.#Dir & {
from: ctr
path: "/etc"
}).read.tree