Răsfoiți Sursa

:bug: fix disk size & download link

Jeremy Zheng 3 ani în urmă
părinte
comite
cfd6b3170a
2 a modificat fișierele cu 13 adăugiri și 3 ștergeri
  1. 10 3
      spring/README.md
  2. 3 0
      spring/Vagrantfile

+ 10 - 3
spring/README.md

@@ -1,11 +1,18 @@
 # SPRING
 
 - [Install VirtualBox](https://www.virtualbox.org/wiki/Downloads)
-- [Install Vagrant](https://developer.hashicorp.com/vagrant/docs/vagrantfile)
-- Usage
+- [Install Vagrant](https://developer.hashicorp.com/vagrant/downloads)
+- Usage(**RUN IN the spring FOLDER**)
 
   ```bash
-  vagrant up --provider=virtualbox
+  # start virtual machine
+  VAGRANT_EXPERIMENTAL="disks" vagrant up --provider=virtualbox
+  # list boxes
   vagrant box list
+  # ssh login to the virtual machine
   vagrant ssh
+  # shutdown the virtual machine
+  vagrant halt
+  # show virtualbox machines
+  vagrant status
   ```

+ 3 - 0
spring/Vagrantfile

@@ -10,9 +10,12 @@ Vagrant.configure("2") do |config|
   # For a complete reference, please see the online documentation at
   # https://docs.vagrantup.com.
 
+  config.vm.disk :disk, size: "120GB", primary: true
+
   # Every Vagrant development environment requires a box. You can search for
   # boxes at https://vagrantcloud.com/search.
   config.vm.box = "ubuntu/jammy64"
+  config.vm.box_version = "20221219.0.0"
 
   # Disable automatic box update checking. If you disable this, then
   # boxes will only be checked for updates when the user runs