Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Vagrant.configure(2) do |config|
- # The most common configuration options are documented and commented below.
- # For a complete reference, please see the online documentation at
- # https://docs.vagrantup.com.
- # Every Vagrant development environment requires a box. You can search for
- # boxes at https://atlas.hashicorp.com/search.
- #config.vm.box = "debian/jessie64"
- config.vm.box = "rasdaman/debian8"
- # config.vm.provision :shell, path: "bootstrap.sh"
- config.vm.hostname = "VMDebian8Rasdaman"
- # Disable automatic box update checking. If you disable this, then
- # boxes will only be checked for updates when the user runs
- # `vagrant box outdated`. This is not recommended.
- config.vm.box_check_update = false
- # Create a forwarded port mapping which allows access to a specific port
- # within the machine from a port on the host machine. In the example below,
- # accessing "localhost:8080" will access port 80 on the guest machine.
- # config.vm.network "forwarded_port", guest: 80, host: 8080
- # Share an additional folder to the guest VM. The first argument is
- # the path on the host to the actual folder. The second argument is
- # the path on the guest to mount the folder. And the optional third
- # argument is a set of non-required options.
- config.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__exclude: ".git/"
- config.vm.provider "virtualbox" do |vb|
- # # Display the VirtualBox GUI when booting the machine
- # vb.gui = true
- #
- # # Customize the amount of memory on the VM:
- vb.memory = "6000"
- # vb.cpus = 2
- end
- end
- vagrant up
- Bringing machine 'default' up with 'virtualbox' provider...
- ==> default: Box 'rasdaman/debian8' could not be found. Attempting to find and install...
- default: Box Provider: virtualbox
- default: Box Version: >= 0
- ==> default: Loading metadata for box 'rasdaman/debian8'
- default: URL: https://vagrantcloud.com/rasdaman/debian8
- ==> default: Adding box 'rasdaman/debian8' (v0.0.2) for provider: virtualbox
- default: Downloading: https://vagrantcloud.com/rasdaman/boxes/debian8/versions/0.0.2/providers/virtualbox.box
- ==> default: Successfully added box 'rasdaman/debian8' (v0.0.2) for 'virtualbox'!
- ==> default: Importing base box 'rasdaman/debian8'...
- ==> default: Matching MAC address for NAT networking...
- ==> default: Setting the name of the VM: VM_debian8_temp_default_1523864991125_95785
- ==> default: Fixed port collision for 22 => 2222. Now on port 2200.
- ==> default: Clearing any previously set network interfaces...
- ==> default: Preparing network interfaces based on configuration...
- default: Adapter 1: nat
- ==> default: Forwarding ports...
- default: 22 (guest) => 2200 (host) (adapter 1)
- ==> default: Running 'pre-boot' VM customizations...
- ==> default: Booting VM...
- ==> default: Waiting for machine to boot. This may take a few minutes...
- default: SSH address: 127.0.0.1:2200
- default: SSH username: vagrant
- default: SSH auth method: private key
- ==> default: Machine booted and ready!
- ==> default: Checking for guest additions in VM...
- default: No guest additions were detected on the base box for this VM! Guest
- default: additions are required for forwarded ports, shared folders, host only
- default: networking, and more. If SSH fails on this machine, please install
- default: the guest additions and repackage the box to continue.
- default:
- default: This is not an error message; everything may continue to work properly,
- default: in which case you may ignore this message.
- ==> default: Setting hostname...
- ==> default: Rsyncing folder: /home/rasdaman/VAGRANT_VMs/VM_debian8_temp/ => /vagrant
- ==> default: - Exclude: [".vagrant/", ".git/"]
- [rasdaman@localhost VM_debian8_temp]$
- [rasdaman@localhost VM_debian8_temp]$
- [rasdaman@localhost VM_debian8_temp]$
- [rasdaman@localhost VM_debian8_temp]$ vagrant ssh
- The programs included with the Debian GNU/Linux system are free software;
- the exact distribution terms for each program are described in the
- individual files in /usr/share/doc/*/copyright.
- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
- permitted by applicable law.
- You have new mail.
- Last login: Fri Nov 24 11:19:23 2017 from 10.0.2.2
- vagrant@vmdebian8rasdaman:~$ hostname
- vmdebian8rasdaman
- vagrant@vmdebian8rasdaman:~$
- vagrant@vmdebian8rasdaman:~$
- vagrant@vmdebian8rasdaman:~$
- vagrant@vmdebian8rasdaman:~$
- vagrant@vmdebian8rasdaman:~$ git clone http://codereview.rasdaman.org/diffusion/RI/rasdamaninstaller.git
- Cloning into 'rasdamaninstaller'...
- Username for 'http://codereview.rasdaman.org': bphamhuu
- Password for 'http://bphamhuu@codereview.rasdaman.org':
- remote: Counting objects: 2438, done.
- remote: Compressing objects: 100% (2355/2355), done.
- remote: Total 2438 (delta 1564), reused 0 (delta 0)
- Receiving objects: 100% (2438/2438), 389.19 KiB | 0 bytes/s, done.
- Resolving deltas: 100% (1564/1564), done.
- Checking connectivity... done.
- vagrant@vmdebian8rasdaman:~$
- vagrant@vmdebian8rasdaman:~$
- vagrant@vmdebian8rasdaman:~$ cd rasdamaninstaller/
- vagrant@vmdebian8rasdaman:~/rasdamaninstaller$
- vagrant@vmdebian8rasdaman:~/rasdamaninstaller$
- vagrant@vmdebian8rasdaman:~/rasdamaninstaller$ ./pkg_test.sh nightly debian8
- pkg_test.sh: This script has to be executed with root user.
- vagrant@vmdebian8rasdaman:~/rasdamaninstaller$
- vagrant@vmdebian8rasdaman:~/rasdamaninstaller$
- vagrant@vmdebian8rasdaman:~/rasdamaninstaller$ sudo ./pkg_test.sh nightly debian8
- pkg_test.sh: Checking OS...
- pkg_test.sh: Done, detected OS 'jessie'.
- pkg_test.sh: Installing nightly repo...
- pkg_test.sh: Importing GPG public key...
- --2018-04-16 07:52:01-- http://download.rasdaman.org/packages/rasdaman.gpg
- Resolving download.rasdaman.org (download.rasdaman.org)... 212.201.49.173
- Connecting to download.rasdaman.org (download.rasdaman.org)|212.201.49.173|:80... connected.
- HTTP request sent, awaiting response... 200 OK
- Length: 1702 (1.7K)
- Saving to: ‘STDOUT’
- - 100%[=====================>] 1.66K --.-KB/s in 0s
- 2018-04-16 07:52:01 (501 MB/s) - written to stdout [1702/1702]
- OK
- pkg_test.sh: Installing rasdaman from DEB package...
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following packages were automatically installed and are no longer required:
- libgconf2-4 libgnome2-0
- Use 'apt-get autoremove' to remove them.
- The following extra packages will be installed:
- libgdal-java
- The following NEW packages will be installed:
- libgdal-java rasdaman
- 0 upgraded, 2 newly installed, 0 to remove and 114 not upgraded.
- Need to get 152 MB of archives.
- After this operation, 328 MB of additional disk space will be used.
- Get:1 http://download.rasdaman.org/packages/deb/ jessie/nightly rasdaman amd64 9.6.0jessie-26 [152 MB]
- Get:2 http://httpredir.debian.org/debian/ jessie/main libgdal-java amd64 1.10.1+dfsg-8+b3 [318 kB]
- Fetched 152 MB in 48s (3,132 kB/s)
- Selecting previously unselected package libgdal-java.
- (Reading database ... 69613 files and directories currently installed.)
- Preparing to unpack .../libgdal-java_1.10.1+dfsg-8+b3_amd64.deb ...
- Unpacking libgdal-java (1.10.1+dfsg-8+b3) ...
- Selecting previously unselected package rasdaman.
- Preparing to unpack .../rasdaman_9.6.0jessie-26_amd64.deb ...
- Unpacking rasdaman (9.6.0jessie-26) ...
- Setting up libgdal-java (1.10.1+dfsg-8+b3) ...
- Setting up rasdaman (9.6.0jessie-26) ...
- Checking if installer needs to be updated...
- Installer is at latest version.
- Review the installation settings:
- Install path: /opt/rasdaman/
- User: rasdaman
- Database: sqlite, /opt/rasdaman/data/
- Install webapps: True
- Petascopedb url: jdbc:postgresql://localhost:5432/petascopedb
- Petascopedb user: petauser
- Deployment: external
- Webapps path: /var/lib/tomcat7/webapps
- Webapps logs: /var/log/tomcat7
- Insert demos: True
- Run systemtest: False
- Generate package: False
- Validating system...
- System was validated.
- Installing third party dependencies on debian 8.9...
- Installing pip packages ['glob2', 'netcdf', 'grpcio']...
- Pip packages installed successfully.
- Increasing tomcat memory limit to 2GB...
- Existing configuration saved at '/etc/default/tomcat7.2018-04-16_07-53-22.bak'
- Tomcat memory increased succesfully.
- Checking user rasdaman....
- User rasdaman checked successfully.
- Creating directory structure...
- Directory structure created successfully.
- Setting up the PATH environment variable in '/etc/profile.d/rasdaman.sh'...
- The PATH environment variable was set up successfully.
- Third party dependencies installed successfully.
- Retrieving rasdaman...
- Rasdaman retrieved successfully
- Building rasdaman...
- Deploying def.war...
- def.war deployed successfully.
- Deploying rasdaman.war...
- rasdaman.war deployed successfully.
- Rasdaman was built successfully.
- Preparing rasdaman...
- Preparing rasmgr.conf...
- rasmgr.conf prepared successfully.
- Preparing Rasdaman SQLite database...
- Rasdaman SQLite database was prepared.
- Preparing petascope...
- Petascope was prepared.
- Preparing for external server deployment...
- Config updated for external server deployment.
- Updated path of petascope.log to /var/log/tomcat7/petascope.log.
- Updated path of secore.log to /var/log/tomcat7/secore.log.
- Installing service scripts...
- Installed SysV init script at /etc/init.d/rasdaman
- Installed systemd init script at /etc/systemd/system/rasdaman.service
- Service scripts installed successfully.
- Migrating configuration files from deprecated packages...
- No previous configuration files found to migrate.
- Migrating configuration files from previous version...
- No previous configuration files found to migrate.
- Starting rasdaman and external Tomcat...
- Services successfully started.
- Rasdaman prepared successfully.
- Finalizing installation...
- Ingesting rasdaman demo data...
- Rasdaman demo data ingested successfully.
- Ingesting petascope demo data...
- Petascope demo data ingested successfully.
- Installation finalized successfully.
- Testing rasdaman...
- STATUS: SUCCESS
- Rasdaman was tested successfully.
- No packaging requested.
- Rasdaman installed and configured successfully.
- Next steps
- * Make sure that rasql is on the PATH first:
- $ source /etc/profile.d/rasdaman.sh
- * Then try some rasql queries using the rasql CLI, e.g:
- $ rasql -q 'select encode( mr, "png" ) from mr' --out file
- * Try the WCS client in your browser at http://localhost:8080/rasdaman/ows
- More information can be found at http://rasdaman.org. Have fun!
- To add rasdaman to the PATH: source /etc/profile.d/rasdaman.sh
- pkg_test.sh: Done.
- pkg_test.sh: Sourcing /etc/profile.d/rasdaman.sh...
- pkg_test.sh: Updating RASBASE with /opt/rasdaman/bin/update_db.sh...
- update_db.sh: sqlite database to update: /opt/rasdaman/data//RASBASE
- update_db.sh: rasdaman data directory: /opt/rasdaman/data//
- update_db.sh: rasdaman data directory: /opt/rasdaman/data//
- update_db.sh: executing updates:
- update_db.sh: database already up-to-date, nothing to update.
- update_db.sh: done, exiting.
- pkg_test.sh: Restarting service tomcat7...
- pkg_test.sh: ------------------------------------------------------------------------
- pkg_test.sh: Testing installation...
- pkg_test.sh: Testing rasdaman query...
- pkg_test.sh: Inserting rasdaman demo images...
- pkg_test.sh: Testing SECORE request...
- pkg_test.sh: Downloading 'http://localhost:8080/def/' to '/dev/null'...
- pkg_test.sh: Done.
- pkg_test.sh: Testing petascope request...
- pkg_test.sh: Downloading 'http://localhost:8080/rasdaman/ows?service=WCS&request=GetCapabilities&version=2.0.1' to '/dev/null'...
- pkg_test.sh: Done.
- pkg_test.sh: Inserting petascope demo coverages...
- pkg_test.sh: Installation test done.
- pkg_test.sh: ------------------------------------------------------------------------
- Done.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement