This repo hold the Dockerfile
s of our Coder images that will be used in an airtight environment.
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.
- 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
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 thanwin-rar
- Layers to be uploaded to github
Each Dockerfile
was:
- Built using
docker build -t <image-name> -f <path-to-Dockerfile> .
with connection to thewww
- Saved locally using
docker save -o <image-name>.tar <image-name>:latest
- Split into
100MB
chunks using7zip
- Extracted using
7zip
- Loaded into a sterile
Docker Desktop
instance usingdocker load -i <image-name>.tar
- Executed using
docker run <image-name>:latest
for checking in the binary executables of the framework (golang
as an example) is not corrupted