Skip to content

Lab images of the organisation

Where: Menu → Manage → Lab images. The page is there only once the platform switched own lab images on for your organisation; until then it says so.

Lab images are what your organisation’s lab sessions run in. The platform has its own (Python, JavaScript, PHP and more), and with this page your organisation makes its own: a copy of one of the platform’s with what your courses need added, or a Dockerfile of its own. An image is only a description (a Dockerfile, a few small files and a smoke test, at most 1 MB). Your organisation’s own lab nodes build it themselves: an image never goes on a node of the shared pool, and the platform keeps no built copy.

  1. New image: give it a Key (a–z, 0–9 and -, it names the image on your nodes and can’t be changed) and a Name.
  2. Start from: a copy of one of the platform’s images, or a Dockerfile of my own with its Dockerfile and its Smoke test: a shell line the node runs in the new image without network, as nobody; exit 0 means the image works. Empty means no test.
  3. Make the image. It goes on no node until you choose one.

Open the image in the list and choose New version. You see the files of the version it is based on: change them, Add a file, Remove one, and change the smoke test. Save as new version keeps it beside the versions before, which never change. Files that aren’t text stay as they are.

Each of your organisation’s lab nodes has a choice: the version it is to have, or — not on this node. The node builds the version you choose, tests it under gVisor without network and only then runs it; the version it ran before keeps running until then, and through a failed build. Its state shows next to it:

  • waiting: the node builds it at its next look;
  • building: it builds now;
  • runs: the version you chose works on the node;
  • build failed: Last build shows why; the version before keeps running. A failed build isn’t tried again by itself: Build again tries it once more (also to take in a base image’s security fixes);
  • being dropped: you took it off the node; the node deletes it once no session uses it.

a newer version is there means the node has an older version than the newest you saved. Choose the newer one for it when you want it there.

Archive an image you no longer want: it gets no new versions and goes on no node. Take it off its nodes first. Take out of the archive brings it back as it was.