Hi, I’m just trying to kick the tyres with machines. And I cannot seem to get a simple job / script to show stdout in the logs, which makes me wonder if I’m even running it.
When I had a simple node -p 'console.log('hi')' it looked like the machine started → stopped fine but I never saw any stdout in the logs.
I tried a simple Dockerfile
FROM debian:wheezy
ENTRYPOINT ["/bin/sh", "-c"]
And then I try machine run:
fly machine run <image> --id <machine> -a <app> 'ls -la /'
And I just get:
Waiting on firecracker VM...
I know I am doing something very obviously wrong, but please help
My app has an empty services block, because it is just meant to be a job (e.g. download some files and zip them up, put them on a bucket). Would that affect health checks or something?
Ok so machine list shows stopped - which is great. And when I go check the logs in the dash I can see the ls worked. So somewhere between my original command and that simple example is the issue, I’ll go bisect…
Ok got this working, I used the curl API before so I must have done something weird, but here is a simple reduced working example for anyone else who needs it: