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/pkg/universe.dagger.io/python/test/data/helloworld.py
Adam Smith 80d73bc5cb
universe: python: Update to 0.2
Update some API references that had fallen out of use.

Notably this no longer ran, since docker.#Run now asks for an "input" not an "image," alpine.#Image became alpine.#Build and you have to reference its output.

Remove a FIXME -- now copies the inline script to the container as a file rather than executing it with python -c.

Add tests

Signed-off-by: Adam Smith <adamsmith@nottheeconomist.com>
2022-04-07 11:42:03 -07:00

2 lines
61 B
Python

with open('out.txt', 'w') as f:
f.write("Hello, world\n")