Advertisement
Guest User

Untitled

a guest
Apr 16th, 2018
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.72 KB | None | 0 0
  1. Vagrant.configure(2) do |config|
  2. # The most common configuration options are documented and commented below.
  3. # For a complete reference, please see the online documentation at
  4. # https://docs.vagrantup.com.
  5.  
  6. # Every Vagrant development environment requires a box. You can search for
  7. # boxes at https://atlas.hashicorp.com/search.
  8. #config.vm.box = "debian/jessie64"
  9. config.vm.box = "rasdaman/debian8"
  10. # config.vm.provision :shell, path: "bootstrap.sh"
  11. config.vm.hostname = "VMDebian8Rasdaman"
  12.  
  13. # Disable automatic box update checking. If you disable this, then
  14. # boxes will only be checked for updates when the user runs
  15. # `vagrant box outdated`. This is not recommended.
  16. config.vm.box_check_update = false
  17.  
  18. # Create a forwarded port mapping which allows access to a specific port
  19. # within the machine from a port on the host machine. In the example below,
  20. # accessing "localhost:8080" will access port 80 on the guest machine.
  21. # config.vm.network "forwarded_port", guest: 80, host: 8080
  22.  
  23. # Share an additional folder to the guest VM. The first argument is
  24. # the path on the host to the actual folder. The second argument is
  25. # the path on the guest to mount the folder. And the optional third
  26. # argument is a set of non-required options.
  27. config.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__exclude: ".git/"
  28.  
  29. config.vm.provider "virtualbox" do |vb|
  30. # # Display the VirtualBox GUI when booting the machine
  31. # vb.gui = true
  32. #
  33. # # Customize the amount of memory on the VM:
  34. vb.memory = "6000"
  35. # vb.cpus = 2
  36. end
  37. end
  38.  
  39.  
  40. vagrant up
  41. Bringing machine 'default' up with 'virtualbox' provider...
  42. ==> default: Box 'rasdaman/debian8' could not be found. Attempting to find and install...
  43. default: Box Provider: virtualbox
  44. default: Box Version: >= 0
  45. ==> default: Loading metadata for box 'rasdaman/debian8'
  46. default: URL: https://vagrantcloud.com/rasdaman/debian8
  47. ==> default: Adding box 'rasdaman/debian8' (v0.0.2) for provider: virtualbox
  48. default: Downloading: https://vagrantcloud.com/rasdaman/boxes/debian8/versions/0.0.2/providers/virtualbox.box
  49. ==> default: Successfully added box 'rasdaman/debian8' (v0.0.2) for 'virtualbox'!
  50. ==> default: Importing base box 'rasdaman/debian8'...
  51. ==> default: Matching MAC address for NAT networking...
  52. ==> default: Setting the name of the VM: VM_debian8_temp_default_1523864991125_95785
  53. ==> default: Fixed port collision for 22 => 2222. Now on port 2200.
  54. ==> default: Clearing any previously set network interfaces...
  55. ==> default: Preparing network interfaces based on configuration...
  56. default: Adapter 1: nat
  57. ==> default: Forwarding ports...
  58. default: 22 (guest) => 2200 (host) (adapter 1)
  59. ==> default: Running 'pre-boot' VM customizations...
  60. ==> default: Booting VM...
  61. ==> default: Waiting for machine to boot. This may take a few minutes...
  62. default: SSH address: 127.0.0.1:2200
  63. default: SSH username: vagrant
  64. default: SSH auth method: private key
  65. ==> default: Machine booted and ready!
  66. ==> default: Checking for guest additions in VM...
  67. default: No guest additions were detected on the base box for this VM! Guest
  68. default: additions are required for forwarded ports, shared folders, host only
  69. default: networking, and more. If SSH fails on this machine, please install
  70. default: the guest additions and repackage the box to continue.
  71. default:
  72. default: This is not an error message; everything may continue to work properly,
  73. default: in which case you may ignore this message.
  74. ==> default: Setting hostname...
  75. ==> default: Rsyncing folder: /home/rasdaman/VAGRANT_VMs/VM_debian8_temp/ => /vagrant
  76. ==> default: - Exclude: [".vagrant/", ".git/"]
  77. [rasdaman@localhost VM_debian8_temp]$
  78. [rasdaman@localhost VM_debian8_temp]$
  79. [rasdaman@localhost VM_debian8_temp]$
  80. [rasdaman@localhost VM_debian8_temp]$ vagrant ssh
  81.  
  82. The programs included with the Debian GNU/Linux system are free software;
  83. the exact distribution terms for each program are described in the
  84. individual files in /usr/share/doc/*/copyright.
  85.  
  86. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
  87. permitted by applicable law.
  88. You have new mail.
  89. Last login: Fri Nov 24 11:19:23 2017 from 10.0.2.2
  90. vagrant@vmdebian8rasdaman:~$ hostname
  91. vmdebian8rasdaman
  92. vagrant@vmdebian8rasdaman:~$
  93. vagrant@vmdebian8rasdaman:~$
  94. vagrant@vmdebian8rasdaman:~$
  95. vagrant@vmdebian8rasdaman:~$
  96. vagrant@vmdebian8rasdaman:~$ git clone http://codereview.rasdaman.org/diffusion/RI/rasdamaninstaller.git
  97. Cloning into 'rasdamaninstaller'...
  98. Username for 'http://codereview.rasdaman.org': bphamhuu
  99. Password for 'http://bphamhuu@codereview.rasdaman.org':
  100. remote: Counting objects: 2438, done.
  101. remote: Compressing objects: 100% (2355/2355), done.
  102. remote: Total 2438 (delta 1564), reused 0 (delta 0)
  103. Receiving objects: 100% (2438/2438), 389.19 KiB | 0 bytes/s, done.
  104. Resolving deltas: 100% (1564/1564), done.
  105. Checking connectivity... done.
  106. vagrant@vmdebian8rasdaman:~$
  107. vagrant@vmdebian8rasdaman:~$
  108. vagrant@vmdebian8rasdaman:~$ cd rasdamaninstaller/
  109. vagrant@vmdebian8rasdaman:~/rasdamaninstaller$
  110. vagrant@vmdebian8rasdaman:~/rasdamaninstaller$
  111. vagrant@vmdebian8rasdaman:~/rasdamaninstaller$ ./pkg_test.sh nightly debian8
  112. pkg_test.sh: This script has to be executed with root user.
  113. vagrant@vmdebian8rasdaman:~/rasdamaninstaller$
  114. vagrant@vmdebian8rasdaman:~/rasdamaninstaller$
  115. vagrant@vmdebian8rasdaman:~/rasdamaninstaller$ sudo ./pkg_test.sh nightly debian8
  116. pkg_test.sh: Checking OS...
  117. pkg_test.sh: Done, detected OS 'jessie'.
  118. pkg_test.sh: Installing nightly repo...
  119. pkg_test.sh: Importing GPG public key...
  120. --2018-04-16 07:52:01-- http://download.rasdaman.org/packages/rasdaman.gpg
  121. Resolving download.rasdaman.org (download.rasdaman.org)... 212.201.49.173
  122. Connecting to download.rasdaman.org (download.rasdaman.org)|212.201.49.173|:80... connected.
  123. HTTP request sent, awaiting response... 200 OK
  124. Length: 1702 (1.7K)
  125. Saving to: ‘STDOUT’
  126.  
  127. - 100%[=====================>] 1.66K --.-KB/s in 0s
  128.  
  129. 2018-04-16 07:52:01 (501 MB/s) - written to stdout [1702/1702]
  130.  
  131. OK
  132. pkg_test.sh: Installing rasdaman from DEB package...
  133. Reading package lists... Done
  134. Building dependency tree
  135. Reading state information... Done
  136. The following packages were automatically installed and are no longer required:
  137. libgconf2-4 libgnome2-0
  138. Use 'apt-get autoremove' to remove them.
  139. The following extra packages will be installed:
  140. libgdal-java
  141. The following NEW packages will be installed:
  142. libgdal-java rasdaman
  143. 0 upgraded, 2 newly installed, 0 to remove and 114 not upgraded.
  144. Need to get 152 MB of archives.
  145. After this operation, 328 MB of additional disk space will be used.
  146. Get:1 http://download.rasdaman.org/packages/deb/ jessie/nightly rasdaman amd64 9.6.0jessie-26 [152 MB]
  147. Get:2 http://httpredir.debian.org/debian/ jessie/main libgdal-java amd64 1.10.1+dfsg-8+b3 [318 kB]
  148. Fetched 152 MB in 48s (3,132 kB/s)
  149. Selecting previously unselected package libgdal-java.
  150. (Reading database ... 69613 files and directories currently installed.)
  151. Preparing to unpack .../libgdal-java_1.10.1+dfsg-8+b3_amd64.deb ...
  152. Unpacking libgdal-java (1.10.1+dfsg-8+b3) ...
  153. Selecting previously unselected package rasdaman.
  154. Preparing to unpack .../rasdaman_9.6.0jessie-26_amd64.deb ...
  155. Unpacking rasdaman (9.6.0jessie-26) ...
  156. Setting up libgdal-java (1.10.1+dfsg-8+b3) ...
  157. Setting up rasdaman (9.6.0jessie-26) ...
  158. Checking if installer needs to be updated...
  159. Installer is at latest version.
  160.  
  161. Review the installation settings:
  162.  
  163. Install path: /opt/rasdaman/
  164. User: rasdaman
  165. Database: sqlite, /opt/rasdaman/data/
  166. Install webapps: True
  167. Petascopedb url: jdbc:postgresql://localhost:5432/petascopedb
  168. Petascopedb user: petauser
  169. Deployment: external
  170. Webapps path: /var/lib/tomcat7/webapps
  171. Webapps logs: /var/log/tomcat7
  172. Insert demos: True
  173. Run systemtest: False
  174. Generate package: False
  175. Validating system...
  176. System was validated.
  177. Installing third party dependencies on debian 8.9...
  178. Installing pip packages ['glob2', 'netcdf', 'grpcio']...
  179. Pip packages installed successfully.
  180. Increasing tomcat memory limit to 2GB...
  181. Existing configuration saved at '/etc/default/tomcat7.2018-04-16_07-53-22.bak'
  182. Tomcat memory increased succesfully.
  183. Checking user rasdaman....
  184. User rasdaman checked successfully.
  185. Creating directory structure...
  186. Directory structure created successfully.
  187. Setting up the PATH environment variable in '/etc/profile.d/rasdaman.sh'...
  188. The PATH environment variable was set up successfully.
  189. Third party dependencies installed successfully.
  190. Retrieving rasdaman...
  191. Rasdaman retrieved successfully
  192. Building rasdaman...
  193. Deploying def.war...
  194. def.war deployed successfully.
  195. Deploying rasdaman.war...
  196. rasdaman.war deployed successfully.
  197. Rasdaman was built successfully.
  198. Preparing rasdaman...
  199. Preparing rasmgr.conf...
  200. rasmgr.conf prepared successfully.
  201. Preparing Rasdaman SQLite database...
  202. Rasdaman SQLite database was prepared.
  203. Preparing petascope...
  204. Petascope was prepared.
  205. Preparing for external server deployment...
  206. Config updated for external server deployment.
  207. Updated path of petascope.log to /var/log/tomcat7/petascope.log.
  208. Updated path of secore.log to /var/log/tomcat7/secore.log.
  209. Installing service scripts...
  210. Installed SysV init script at /etc/init.d/rasdaman
  211. Installed systemd init script at /etc/systemd/system/rasdaman.service
  212. Service scripts installed successfully.
  213. Migrating configuration files from deprecated packages...
  214. No previous configuration files found to migrate.
  215. Migrating configuration files from previous version...
  216. No previous configuration files found to migrate.
  217. Starting rasdaman and external Tomcat...
  218. Services successfully started.
  219. Rasdaman prepared successfully.
  220. Finalizing installation...
  221. Ingesting rasdaman demo data...
  222. Rasdaman demo data ingested successfully.
  223. Ingesting petascope demo data...
  224. Petascope demo data ingested successfully.
  225. Installation finalized successfully.
  226. Testing rasdaman...
  227. STATUS: SUCCESS
  228. Rasdaman was tested successfully.
  229. No packaging requested.
  230. Rasdaman installed and configured successfully.
  231. Next steps
  232. * Make sure that rasql is on the PATH first:
  233. $ source /etc/profile.d/rasdaman.sh
  234. * Then try some rasql queries using the rasql CLI, e.g:
  235. $ rasql -q 'select encode( mr, "png" ) from mr' --out file
  236. * Try the WCS client in your browser at http://localhost:8080/rasdaman/ows
  237.  
  238.  
  239. More information can be found at http://rasdaman.org. Have fun!
  240. To add rasdaman to the PATH: source /etc/profile.d/rasdaman.sh
  241. pkg_test.sh: Done.
  242. pkg_test.sh: Sourcing /etc/profile.d/rasdaman.sh...
  243. pkg_test.sh: Updating RASBASE with /opt/rasdaman/bin/update_db.sh...
  244. update_db.sh: sqlite database to update: /opt/rasdaman/data//RASBASE
  245. update_db.sh: rasdaman data directory: /opt/rasdaman/data//
  246. update_db.sh: rasdaman data directory: /opt/rasdaman/data//
  247.  
  248. update_db.sh: executing updates:
  249. update_db.sh: database already up-to-date, nothing to update.
  250.  
  251. update_db.sh: done, exiting.
  252. pkg_test.sh: Restarting service tomcat7...
  253. pkg_test.sh: ------------------------------------------------------------------------
  254. pkg_test.sh: Testing installation...
  255.  
  256. pkg_test.sh: Testing rasdaman query...
  257. pkg_test.sh: Inserting rasdaman demo images...
  258. pkg_test.sh: Testing SECORE request...
  259. pkg_test.sh: Downloading 'http://localhost:8080/def/' to '/dev/null'...
  260. pkg_test.sh: Done.
  261. pkg_test.sh: Testing petascope request...
  262. pkg_test.sh: Downloading 'http://localhost:8080/rasdaman/ows?service=WCS&request=GetCapabilities&version=2.0.1' to '/dev/null'...
  263. pkg_test.sh: Done.
  264. pkg_test.sh: Inserting petascope demo coverages...
  265.  
  266. pkg_test.sh: Installation test done.
  267. pkg_test.sh: ------------------------------------------------------------------------
  268. Done.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement