Skip to content

Images (for deploying as DevContainers via Coder) we built (and split into 100MB layers) to be used in an airtight environment.

Notifications You must be signed in to change notification settings

firefly-out/coder-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coder Images

This repo hold the Dockerfiles of our Coder images that will be used in an airtight environment.

Images

Golang

Node

Python

Dotnet

Archiving Issues

An issue ocurred when the first image arrived to the airtight environment. The golang executables were broken, printing a memory map and showing clear signs that the CLI is dead.

Possible Causes

  • VM we archived the .tar file is not stable
  • The VM has an old win-rar version installed while the PC in the airtight environment has the latest version of 7zip

Solution

The following steps were chosen to provide a working solution:

  • Building the images on a reliable PC
  • Archiving using 7zip as its proved more reliable than win-rar
  • Layers to be uploaded to github

Image Life Cycle

Each Dockerfile was:

  1. Built using docker build -t <image-name> -f <path-to-Dockerfile> . with connection to the www
  2. Saved locally using docker save -o <image-name>.tar <image-name>:latest
  3. Split into 100MB chunks using 7zip
  4. Extracted using 7zip
  5. Loaded into a sterile Docker Desktop instance using docker load -i <image-name>.tar
  6. Executed using docker run <image-name>:latest for checking in the binary executables of the framework (golang as an example) is not corrupted

About

Images (for deploying as DevContainers via Coder) we built (and split into 100MB layers) to be used in an airtight environment.

Topics

Resources

Stars

Watchers

Forks