Skip to content

Instantly share code, notes, and snippets.

@steshaw
Created August 14, 2022 11:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steshaw/5ab78c0d2699ed52fcb7a0c608583ca3 to your computer and use it in GitHub Desktop.
Save steshaw/5ab78c0d2699ed52fcb7a0c608583ca3 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -euo pipefail
base_image='registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb10'
tag='9e4c540d9e4972a36291dfdf81f079f37d748890'
image="${base_image}:${tag}"
docker run -it --rm \
--volume /nix:/nix \
--volume "$HOME:$HOME" \
--env "HOME=$HOME" \
--workdir="$HOME" \
--env "USER=$USER" \
--env BUILD_FLAVOUR=validate \
--env BIN_DIST_NAME=tmp \
"${image}" \
bash --login
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment