2015-05-05 19:58:25 -04:00
|
|
|
Vagrant.configure(2) do |config|
|
2022-04-10 23:24:19 -04:00
|
|
|
config.vm.box = 'ubuntu/jammy64'
|
2015-05-05 19:58:25 -04:00
|
|
|
|
2020-01-03 15:20:00 -05:00
|
|
|
config.vm.synced_folder "..", "/dotbot", mount_options: ["ro"]
|
2015-05-05 19:58:25 -04:00
|
|
|
|
|
|
|
# disable default synced folder
|
|
|
|
config.vm.synced_folder ".", "/vagrant", disabled: true
|
2015-10-22 21:46:28 -04:00
|
|
|
|
|
|
|
# install packages
|
|
|
|
config.vm.provision "shell", inline: <<-EOS
|
|
|
|
apt-get -y update
|
|
|
|
apt-get install -y git make build-essential libssl-dev zlib1g-dev \
|
|
|
|
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \
|
|
|
|
libncurses5-dev
|
|
|
|
EOS
|
|
|
|
|
|
|
|
# install pyenv
|
|
|
|
config.vm.provision "shell", privileged: false, inline: <<-EOS
|
|
|
|
rm -rf ~/.pyenv
|
|
|
|
git clone git://github.com/yyuu/pyenv.git ~/.pyenv
|
2021-05-27 11:13:43 -04:00
|
|
|
cat <<-'PYENV' > ~/.bashrc
|
|
|
|
export PYENV_ROOT="$HOME/.pyenv"
|
|
|
|
export PATH="$PYENV_ROOT/bin:$PATH"
|
|
|
|
eval "$(pyenv init --path)"
|
|
|
|
eval "$(pyenv init -)"
|
|
|
|
PYENV
|
2015-10-22 21:46:28 -04:00
|
|
|
EOS
|
2015-05-05 19:58:25 -04:00
|
|
|
end
|