In this section we're going to take a closer look at Golem's primary execution environment - the virtual machine runtime.
This runtime allows provider nodes to run Docker-like images defined by Golem app developers.
Before we focus on specifics of the VM runtime let's first establish what we mean by "runtime" in Golem's context.
The first step is building a Docker image our VM will be based on. Usually this is achieved by defining a
Dockerfilewhich describes what kind of a machine we need along with some custom configuration.
To learn more about creating such an image take a look here:
Golem's VM runtime does not use Docker images directly. Instead, it uses
.gvmifiles - a format developed internally to greatly reduce image size compared to Docker.
Converting a Docker image to
.gvmiis described here:
When developing a Golem application it's important to test the final
.gvmiimage rather than it's base Docker image. This is because there are some important differences between the two which may affect the application code.
To learn about running Golem VM images locally using
ya-runtime-dbgtake a look here:
Once an image is ready to be used within the Golem network it needs to be uploaded to a publicly available location (eg. on Golem image repository) so that it can be downloaded by provider nodes.
The below section covers image uploading and how to refer to this image in requestor agent code:
In case of issues or uncertainties around the Golem VM runtime or image development - make sure to take a look at this dedicated FAQ section: