Minor fixes.

This commit is contained in:
Preston Lee 2014-10-07 12:15:50 -07:00
parent ff48ba375b
commit 7cb8aeba76
3 changed files with 7 additions and 4 deletions

View File

@ -13,14 +13,14 @@ http://fhirtest.uhn.ca/
Creating your own demo server with Vagrant Creating your own demo server with Vagrant
======== ========
This source code repository includes configuration files to materialize an _entire_ server implementation in a single virtual machine (VM) image from scratch, allowing you to quickly bootstrap your own instance. The server will be completely encapsulated within the created VM image. The process _should_ run on OSX, Linux and Windows, but YMMV. The built-in settings support creation of a *VirtualBox*-based image on Ubuntu Linux, though with tuning the base image you should be able to create images suitable for other hypervisors and cloud-based IaaS providers such as VMware and Amazon Web Services (AWS), respectively. This source code repository includes configuration files to materialize an _entire_ server implementation off all project build artifacts in a single virtual machine (VM) image from scratch, allowing you to quickly bootstrap your own local copy of the project. The server will be completely encapsulated within the created VM image. The process _should_ run on OSX, Linux and Windows, but YMMV. The built-in settings support creation of a *VirtualBox*-based image on Ubuntu Linux, though with tuning of the base image you should be able to create images suitable for other hypervisors and cloud-based IaaS providers such as VMware and Amazon Web Services (AWS), respectively.
Dependencies Dependencies
---- ----
Prior to running, please ensure you have all .war files built, and the following installed and functioning propertly. Prior to running, please ensure you have all .war files built, and the following installed and functioning propertly.
* All normal Java development dependencies. (SDK and Maven, specifically.) * All normal Java development dependencies. (Java SDK and Maven 3, specifically.)
* VirtualBox * VirtualBox
* Vagrant * Vagrant

7
vagrant/Vagrantfile vendored
View File

@ -100,12 +100,15 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
Dir.glob('../**/target/*.war').each do |f| Dir.glob('../**/target/*.war').each do |f|
FileUtils.cp(f, 'build') FileUtils.cp(f, 'build')
end end
# Deploy any/all built .war files.
# puts "Deploying any/all built .war files.""
config.vm.provision 'shell', inline: 'cp /build/*.war /var/lib/tomcat7/webapps' config.vm.provision 'shell', inline: 'cp /build/*.war /var/lib/tomcat7/webapps'
# Set MySQL to start automatically at boot, and fire it up. # puts "Setting MySQL to start automatically at boot, and (re)starting the daemon."
config.vm.provision 'shell', inline: 'update-rc.d mysql defaults' config.vm.provision 'shell', inline: 'update-rc.d mysql defaults'
config.vm.provision 'shell', inline: 'service mysql restart' config.vm.provision 'shell', inline: 'service mysql restart'
# puts "The VM network interfaces are configured as follows..."
config.vm.provision 'shell', inline: 'ifconfig'
end end

View File