#Container state

1 messages ยท Page 1 of 1 (latest)

red jewel
#

I'm building a container using

        test_container = (
            dag.container()
            .build(context=source, dockerfile=await dockerfile.name())  

Then passing it to

 code_exec_result: CodeSolution = await check_code_execution(
                    test_container=test_container,
                    reporter=self.plugin,
                    code_solution=code_solution,
                    config=self.config,
                )

To then add a file to it like so

   contents = f"{code_solution.modules[0].imports}\n{code_solution.modules[0].code}"
    print(yellow(f"Writing source content: \n{contents}\n\n"))
    return (
        await test_container.with_new_file(f"/tests/{path}", contents)
        .with_exec(["bash", "-c", command])
        .sync()
    )

The file is nowhere to be found. Why?

spare talon
spare talon
#

Hey @red jewel just checking if you're good here ๐Ÿ™

red jewel
red jewel
spare talon
#

we managed to figure it out ๐Ÿš€

spare talon
#

hey @red jewel ! good luck with your Dagger presentation today, your'e gonna kill it! Let us know how it goes.

break a ๐Ÿฆต !