close Warning: Failed to sync with repository "ogBrowser-Git": (1366, "Incorrect string value: '\\xF0\\x9F\\x93\\xA6 I...' for column 'message' at row 1"); repository information may be out of date. Look in the Trac log for more information including mitigation strategies.

source: installer/vagrant/Vagrantfile-ogagent-vbox @ 2489637

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change on this file since 2489637 was a0f197e, checked in by ramon <ramongomez@…>, 10 years ago

#718 #739: Cambiar la MV base para generar OGAgent usando Fedora 23 Cloud, porque la basada en Ubuntu 14.04 no podía incluir todas las DLLs del instalador del egente para Windows.

git-svn-id: https://opengnsys.es/svn/branches/version1.1@4881 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100644
File size: 2.4 KB
Line 
1# Vagrantfile to prepare virtual environment using VirtualBox provider to develop OGAgent.
2
3VAGRANTFILE_API_VERSION = "2"
4# VM provider: Oracle VM VirtualBox.
5ENV['VAGRANT_DEFAULT_PROVIDER'] = "virtualbox"
6# Language.
7LANGUAGE = "es_ES"
8ENV['LC_ALL'] = LANGUAGE + ".UTF-8"
9# Amount of memory VM.
10VMMEM = 4096
11VMCPUS = 4
12# OpenGnsys boot-tools environment provisioning script.
13SCRIPT = <<EOT
14# Set language.
15export LANG="#{LANGUAGE}.UTF-8"
16localedef -v -c -i ${LANG%.*} -f UTF-8 $LANG 2>/dev/null
17localectl set-locale LANG=$LANG
18localectl set-keymap ${LANG%_*}
19localectl set-x11-keymap ${LANG%_*}
20# Update repositories.
21dnf install -y http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
22# Install main dependencies.
23dnf install -y debhelper dpkg-dev pyqt4-devel rpm-build subversion samba-winbind wine.i686 mingw32-wine-gecko wine-mono
24# Install desktop (XFCE) and GUI utils.
25dnf install -y @xfce-desktop-environment firefox eclipse-pydev eclipse-nls-${LANG%_*} VirtualBox-guest kmod-VirtualBox akmod-VirtualBox akmods
26ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
27sed -i '$d' /usr/lib/udev/rules.d/60-vboxguest.rules
28akmods && systemctl restart systemd-modules-load.service
29# Download OGAgent environment installer.
30svn export http://opengnsys.es/svn/branches/version1.1/installer/ogagent-devel-installer.sh /home/vagrant
31# Instructions.
32echo "Manual operations:"
33echo "- Launch desktop: startxfce4 &"
34echo "- Enlarge VM window."
35echo "- To prepare OGAgent environment, execute: ./ogagent-devel-installer.sh"
36echo "- Before modify OGAgent code, configure Eclipse:"
37echo "  - Set Python interpreter on Preferences/PyDev/Interpreters/Python Interpreter."
38echo "  - Create a new PyDev Project located in /home/vagrant/ogagent/src directory."
39EOT
40
41Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
42
43  # OpenGnsys boot-tools environment VM definition.
44  config.vm.define "ogAgent" do |ag|
45    # Specific VirtualBox configuration.
46    ag.vm.provider "virtualbox" do |vb|
47      # VM name, memory and CPUs.
48      vb.name = "ogAgent"
49      vb.memory = VMMEM
50      vb.cpus = VMCPUS
51      vb.gui = true
52    end
53    # VM base and host name.
54    ag.vm.box = "fedora/23-cloud-base"
55    ag.vm.hostname = "ogAgent"
56    # Disable synced folder.
57    ag.vm.synced_folder ".", "/vagrant", disabled: true
58    # Launch provisioning script.
59    ag.vm.provision "shell", inline: SCRIPT
60  end
61
62end
63
Note: See TracBrowser for help on using the repository browser.