Created
August 14, 2022 11:32
-
-
Save steshaw/5ab78c0d2699ed52fcb7a0c608583ca3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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