Skip to content

Commit

Permalink
Configure VM with GHCUp and checked out repository
Browse files Browse the repository at this point in the history
  • Loading branch information
abailly-iohk committed Mar 17, 2023
1 parent e4849c0 commit cdf3ad0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vm/dojo.tf
Expand Up @@ -3,7 +3,7 @@ resource "google_compute_disk" "dojo-vm-image" {
type = "pd-ssd"
zone = "europe-west1-b"
size = 200
image = "iog-hydra-1663305161"
image = "iog-hydra-1637229888"
labels = {
environment = "dev"
}
Expand Down
6 changes: 5 additions & 1 deletion vm/scripts/configure.sh
Expand Up @@ -5,10 +5,11 @@
set -e

# clone dotfiles from github
git clone https://github.com/abailly-iohk/dotfiles ~/dotfiles
[[ -d ~/dotfiles ]] || git clone https://github.com/abailly-iohk/dotfiles ~/dotfiles
[[ -L ~/.emacs ]] || ln -s ~/dotfiles/.emacs ~/.emacs
[[ -L ~/.tmux.conf ]] || ln -s ~/dotfiles/.tmux.conf ~/.tmux.conf
[[ -L ~/.git-completion.sh ]] || ln -s ~/dotfiles/bash-completion.sh ~/.git-completion.sh
[[ -d ~/coding-dojo ]] || git clone https://github.com/abailly-iohk/coding-dojo ~/coding-dojo

cat > ~/.gitconfig <<EOF
[user]
Expand Down Expand Up @@ -62,3 +63,6 @@ EOF

# Workaround from https://github.com/NixOS/nixpkgs/issues/163374#issuecomment-1074389802
env NIX_PATH="REPEAT=/dev/null" nix-env --upgrade

# install latest GHCup
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh

0 comments on commit cdf3ad0

Please sign in to comment.