예제 #1
0
#!/usr/bin/env python
import sys

from builder_deb import builder as b
b.env['revision'] = 'default'

b.run('Stop any previously running vm.', '%(vm_dir)s/stop-kvm.sh')

b.run('Copy vm', 'rsync %(vm_dir)s/test-preckan.vm %(vm_dir)s/test.vm')

b.run(
    'Start vm',
    '%(vm_dir)s/start-kvm.sh %(vm_eth)s %(vm_qtap)s 512M %(vm_processors)s %(vm_dir)s/test.vm'
)

b.run(
    'Install CKAN',
    'fab -f ~/vm-fabfile.py -H %(vm_user)s@%(vm_ip)s -p %(vm_password)s install_ckan'
)

#b.run('Stop vm',
#      '%(vm_dir)s/stop-kvm.sh')
예제 #2
0
#!/usr/bin/env python
import sys

from builder_deb import builder as b
b.env['revision'] = 'default'

b.run('Stop any previously running vm.',
      '%(vm_dir)s/stop-kvm.sh')

b.run('Copy vm',
      'rsync %(vm_dir)s/test-preckan.vm %(vm_dir)s/test.vm')

b.run('Start vm',
      '%(vm_dir)s/start-kvm.sh %(vm_eth)s %(vm_qtap)s 512M %(vm_processors)s %(vm_dir)s/test.vm')

b.run('Install CKAN',
      'fab -f ~/vm-fabfile.py -H %(vm_user)s@%(vm_ip)s -p %(vm_password)s install_ckan')

#b.run('Stop vm',
#      '%(vm_dir)s/stop-kvm.sh')

예제 #3
0
#!/usr/bin/env python
import sys

from builder_deb import builder as b

b.env['revision'] = 'default'
b.env['instance'] = 'dgu'

b.run('Stop any previously running vm.', '%(vm_dir)s/stop-kvm.sh')

b.run('Copy vm', 'rsync %(base_vm_filepath)s %(vm_dir)s/test.vm')

b.run(
    'Start vm',
    '%(vm_dir)s/start-kvm.sh %(vm_eth)s %(vm_qtap)s 512M %(vm_processors)s %(vm_dir)s/test.vm'
)

b.run(
    'Setup vm',
    'fab -f ~/vm-fabfile.py -H %(vm_user)s@%(vm_ip)s -p %(vm_password)s setup_vm:instance=%(instance)s'
)

#b.run('Copy vm pre-ckan',
#      'rsync %(vm_dir)s/test.vm %(vm_dir)s/test-preckan.vm')

b.run(
    'Install CKAN',
    'fab -f ~/vm-fabfile.py -H %(vm_user)s@%(vm_ip)s -p %(vm_password)s install_ckan:instance=%(instance)s'
)

#b.run('Stop vm',
예제 #4
0
#!/usr/bin/env python
import sys
import os

from builder_deb import builder as b
b.env['revision'] = 'default'

#includedeb = 'cd /var/packages/ubuntu_ckan-test; reprepro includedeb lucid %(build_dir)s/'
#b.run('Deleting existing packages in apt',
#      r'cd /var/packages/ubuntu_ckan-test; reprepro list lucid|sed "s/lucid.*: \(.*\) .*/\1/g" |xargs --no-run-if-empty reprepro remove lucid')

for root, dirs, files in os.walk(b.env['build_dir']):
    for file in files:
        if file.endswith('.deb'):
            deb_filepath = os.path.join(root, file)
            rel_filepath = deb_filepath.replace(b.env['build_dir'], '')
            b.run('%s - include in apt' % rel_filepath,
                  'cd /var/packages/ubuntu_ckan-test; reprepro includedeb lucid %s' % deb_filepath)


예제 #5
0
#!/usr/bin/env python
import sys

from builder_deb import builder as b

b.env["revision"] = "default"
b.env["instance"] = "dgu"

b.run("Stop any previously running vm.", "%(vm_dir)s/stop-kvm.sh")

b.run("Copy vm", "rsync %(base_vm_filepath)s %(vm_dir)s/test.vm")

b.run("Start vm", "%(vm_dir)s/start-kvm.sh %(vm_eth)s %(vm_qtap)s 512M %(vm_processors)s %(vm_dir)s/test.vm")

b.run("Setup vm", "fab -f ~/vm-fabfile.py -H %(vm_user)s@%(vm_ip)s -p %(vm_password)s setup_vm:instance=%(instance)s")

# b.run('Copy vm pre-ckan',
#      'rsync %(vm_dir)s/test.vm %(vm_dir)s/test-preckan.vm')

b.run(
    "Install CKAN",
    "fab -f ~/vm-fabfile.py -H %(vm_user)s@%(vm_ip)s -p %(vm_password)s install_ckan:instance=%(instance)s",
)

# b.run('Stop vm',
#      '%(vm_dir)s/stop-kvm.sh')