An enhanced WebObs Deployment experience. Using Vagrant and Virtual Machines. The instructions below are for both Linux and Windows
- Install libvirt, virt-manager and qemu
- Install Vagrant: https://www.vagrantup.com/docs/installation/
- Install some Vagrant plugins:
In a command shell execute the commands below to install them
vagrant plugin install vagrant-libvirt vagrant plugin install vagrant-disksize
- Download the latest WebObs release and place it in the same folder as the Vagrantfile.libvirt
- Download the latest MATLAB release and place it in the same folder as the Vagrantfile.libvirt
- Do not remove any files already in the folder
- Download the latest etopo.zip
place it in the same folder as the Vagrantfile
Optional: Pull the Ubuntu image. Execute:
curl https://www.ngdc.noaa.gov/mgg/global/relief/ETOPO1/data/bedrock/grid_registered/binary/etopo1_bed_g_i2.zip -o etopo.zip
sh vagrant box add generic/ubuntu2004 --provider=virtualbox
-
Download both WebObs and MATLAB in the same folder as the Vagrantfile
Edit the vagrant file to reflect the version of WebObs and MATLAB as appropriate.
Do this by changing the values of the WEBOBS and MATLAB variables
Please see the Vagrantfile.libvirt for examples
These variables are on lines 30 and 32 of the Vagrantfile.libvirt
The Vagrantfile.libvirt can be opened in any text editor
-
Run:
VAGRANT_VAGRANTFILE=Vagrantfile.libvirt vagrant up>
-
Start the virtual machine from a command prompt Run:
vagrant up
Then
vagrant ssh
If a password is requested type:
vagrant
This will log you in as the vagrant user
IMPORTANT: Use the "vagrant" username when installing WebObs
Now install WebObs as below
-
While logged in run :
sudo install.sh
This will go through the installation process interactively
After the installallation completes the VM will shutdown
Restart it again with by runing:
vagrant up
You can login to the virtual machine at any time with:
vagrant ssh
While logged in you may logout at any time by executing:
exit
You can also shutdown the virtual machine by executing:
vagrant halt
And remove it completely by running:
vagrant destroy -f
-
Finally, the web server will be available locally on: http://localhost:9977
-
Install VirtualBox
-
Install Vagrant: https://www.vagrantup.com/docs/installation/
Note: On Windows this requires installing Ruby https://www.ruby-lang.org/en/documentation/installation/#rubyinstaller
-
Install some Vagrant plugins: In a command shell execute the commands below to install them
vagrant plugin install vagrant-vbguest vagrant plugin install vagrant-disksize
-
Download the latest WebObs release place it in the same folder as the Vagrantfile
-
Download the latest MATLAB release place it in the same folder as the Vagrantfile
-
Do not remove any files already in the folder
-
Download the latest etopo.zip place it in the same folder as the Vagrantfile
curl https://www.ngdc.noaa.gov/mgg/global/relief/ETOPO1/data/bedrock/grid_registered/binary/etopo1_bed_g_i2.zip -o etopo.zip
Optional: Pull the Ubuntu image. Execute:
sh vagrant box add generic/ubuntu2004 --provider=virtualbox
-
Download both WebObs and MATLAB in the same folder as the Vagrantfile
Edit the vagrant file to reflect the version of WebObs and MATLAB as appropriate
Do this by changing the values of the WEBOBS and MATLAB variables
Please see the Vagrantfile for examples
These variables are on lines 27 and 29 of the Vagrantfile
The Vagrantfile file can be opened in any text editor
-
Run:
vagrant up
-
Start the virtual machine from a command prompt Run:
vagrant up
Then
vagrant ssh
If a password is requested type:
vagrant
This will log you in as the vagrant user
IMPORTANT: Use the "vagrant" username when installing WebObs
Now install WebObs as below
-
While logged in run :
sudo install.sh
This will go through the installation process interactively
After the installallation completes the VM will shutdown
Restart it again with by runing:
vagrant up
You can login to the virtual machine at any time with:
vagrant ssh
While logged in you may logout at any time by executing:
exit
You can also shutdown the virtual machine by executing:
vagrant halt
And remove it completely by running:
vagrant destroy -f
-
Finally, the web server will be available locally on: http://localhost:9977