pyhello — VM rootfs download

☹

Sorry, a system error occurred.

upload from the guest failed (curl exit 22): curl: (22) The requested URL returned error: 502

PlanPublishBuildExportDone

Dockerfile (heyo-ready)

Rewritten by the rules. Download

FROM python:3.12-slim
# heyo: socat streams the app's stdout/stderr out of the VM
USER root
RUN apt-get update && apt-get install -y --no-install-recommends socat && rm -rf /var/lib/apt/lists/*
WORKDIR /srv
RUN echo "<h1>hello from fireup</h1>" > index.html
EXPOSE 8000
CMD ["python", "-m", "http.server", "8000"]
Port
8000
Start
cd /srv && setsid nohup sh -c 'python -m http.server 8000' </dev/null &

Agent Notes

installed socat in the final stage. derived start_command from ENTRYPOINT/CMD (a VM never runs them).

  • installed socat in the final stage
  • derived start_command from ENTRYPOINT/CMD (a VM never runs them)

Original

FROM python:3.12-slim
WORKDIR /srv
RUN echo "<h1>hello from fireup</h1>" > index.html
EXPOSE 8000
CMD ["python", "-m", "http.server", "8000"]

Log

fireup ▸ new vm rootfs download job
rules ▸ 2 change(s): installed socat in the final stage; derived start_command from ENTRYPOINT/CMD (a VM never runs them)
agent ▸ no ANTHROPIC_API_KEY; using the rule-based rewrite
store ▸ fireup/pyhello-recipe:ae992b74 → bd470503d976
app-lb ▸ deployment pyhello-export-ae992b74 registered
app-lb ▸ build job-bb97b66aa35f started
build ▸ fireup/pyhello-export:ae992b74 resolves to 94a9cd0282e738f023a267bd3a5869604e6c2fcd111d01ce6bed1368226599ce at https://admin.us5.heyo.work/namespaces/fireup/artifacts (Dockerfile 222267ae19e3, 546 B)
build ▸ fetching 546 B from https://admin.us5.heyo.work/namespaces/fireup/artifacts/blobs/222267ae19e3d9b058d777d14fc612b3bfa4a94c0572c3ff7c0fb6ee5ce75653
build ▸ this recipe has no build context
build ▸ the Dockerfile never mentions /init.sh, so app-lb adds its standard guest init (it starts nothing; the deployment's start_command starts the app)
build ▸ $ heyvm mvm build -f /var/lib/app-lb/builds/pyhello-export-ae992b74/.recipe/Dockerfile.app-lb -c /var/lib/app-lb/builds/pyhello-export-ae992b74/.recipe/context -n pyhello-export-ae992b74-94a9cd0282e7 --local-only
build ▸ Checking prerequisites...
build ▸   Docker: OK
build ▸   mke2fs: OK
build ▸   Running as root, fakeroot not needed
build ▸ Building Docker image from /var/lib/app-lb/builds/pyhello-export-ae992b74/.recipe/Dockerfile.app-lb...
build ▸   Docker build complete: heyvm-rootfs-pyhello-export-ae992b74-94a9cd0282e7:latest
build ▸ Exporting container filesystem...
build ▸   Exported 121.3 MB tar archive
build ▸ Creating ext4 rootfs image (210 MB)...
build ▸   Created rootfs.ext4 (210.0 MB)
build ▸ Cleanup: removing Docker container and image...
build ▸ Build complete: /tmp/.tmpVcNHl4/rootfs.ext4 (210.0 MB)
build ▸ Saved local image at /var/lib/heyvm/images/firecracker/images/firecracker/pyhello-export-ae992b74-94a9cd0282e7.ext4
build ▸ Create a sandbox with: heyvm create --backend firecracker --image pyhello-export-ae992b74-94a9cd0282e7
build ▸ uploading /var/lib/heyvm/images/firecracker/images/firecracker/pyhello-export-ae992b74-94a9cd0282e7.ext4 (220200960 bytes) to the daemon
build ▸ installed as /var/lib/heyvm/images/firecracker/pyhello-export-ae992b74-94a9cd0282e7.ext4 on the daemon
build ▸ vm.image (daemon default) -> pyhello-export-ae992b74-94a9cd0282e7; pool recycling
app-lb ▸ built image pyhello-export-ae992b74-94a9cd0282e7
export ▸ booting a VM from the built image
export ▸ hashing 210 MB in the guest
export ▸ sha256:d38e648d7771
export ▸ guest is uploading 210 MB
error ▸ upload from the guest failed (curl exit 22): curl: (22) The requested URL returned error: 502