Skip to content

Commit

Permalink
Update Vagrant config to ubuntu/jammy64
Browse files Browse the repository at this point in the history
This provides Python 3.10, which is the minimum supported version for Django 5.0
  • Loading branch information
gasman committed Aug 7, 2024
1 parent 6e81b08 commit d0293ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Vagrant.configure(2) do |config|

# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "wagtail/buster64"
config.vm.box_version = "~> 1.0"
config.vm.box = "ubuntu/jammy64"
config.vm.box_version = "~> 20220810.0.0"

# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
Expand Down
6 changes: 6 additions & 0 deletions vagrant/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ PYTHON=$VIRTUALENV_DIR/bin/python
PIP=$VIRTUALENV_DIR/bin/pip


# Update APT database
apt-get update -y

apt install -y python3-pip
pip3 install virtualenv

# Virtualenv setup for project
su - $DEV_USER -c "virtualenv --python=python3 $VIRTUALENV_DIR"
# Replace previous line with this if you are using Python 2
Expand Down

0 comments on commit d0293ed

Please sign in to comment.