Prerequisites

Install Docker.

If you are running on a computer with Apple Silicon (using a new “M” processor), - Update macOS to Venture 13 or newer. - Install Apple’s Rosetta emulation by running softwareupdate --install-rosetta. - In Docker Desktop, enable Settings > Features in development > Use Rosetta for x86/amd64 emulation on Apple Silicon.

If you are running Microsoft Windows, - Install WSL. - In a Command or Power Shell window, run wsl --install -d Ubuntu. - In an Ubuntu window, run apt update, then apt install make. - Run exec ssh-agent bash to start your SSH agent.

Checkout this repository into a new working directory.

Run the Container

In a terminal window, change into the working directory and run make up. This initializes your environment by creating the file .env. It then runs docker compose.

When your environment changes, for example if you log out and back in, or if you manually copy your working directory to another platform, run make clean or manually delete the .env file. Then run make up.

Build a Custom Image (WIP)

The container is normally built automatically by a CI process on GitHub Actions. If you need to alter the image, for example if you want to locally test a new library addition, you can do the following:

  1. Checkout the https://github.com/stat20/stat20-docker repository.
  2. Make any changes
  3. Run docker build -t somename:sometag .. If on an alternative hardware platform like Apple’s ARM (modern Apple computers), you can run docker build -t somename:sometag --platform linux/amd64 ..
  4. Create a new file names docker-compose.override.yml with the following contents:
version: "3.8"
services:
  stat20:
    image: somename:sometag