#Hello, a question about Dagger - is

1 messages · Page 1 of 1 (latest)

woeful glen
#

You can do all of that work in a Dagger container (sandboxed from the host) and then export the manifest file.

Here's a mock example in Dagger Shell. Same can be done in any SDK.

dagger -M <- to enter Dagger Shell with no module, just core API

# Create a new container with a file in it
ctr=$(container | from alpine | with-new-file manifest.txt "IMPORTANT STUFF")

# Get the file object out of the container
$ctr | file manifest.txt

# Get the file and display contents
$ctr | file manifest.txt | contents

# Get the file and export to your /tmp
$ctr | file manifest.txt | export /tmp/manifest.txt