소스 검색

Update Vagrant config to ubuntu/jammy64

This provides Python 3.10, which is the minimum supported version for Django 5.0
Matt Westcott 8 달 전
부모
커밋
d0293edc09
2개의 변경된 파일8개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Vagrantfile
  2. 6 0
      vagrant/provision.sh

+ 2 - 2
Vagrantfile

@@ -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

+ 6 - 0
vagrant/provision.sh

@@ -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