def install(alsi=None):
    if not alsi:
        from assemblyline.al.install import SiteInstaller
        alsi = SiteInstaller()

    alsi.pip_install_all(["elasticsearch==2.3.0"])

    alsi.sudo_install_file('assemblyline/al/install/etc/init/metricsd.conf',
                           '/etc/init/metricsd.conf')

    if not os.path.exists('/etc/init.d/metricsd'):
        alsi.runcmd('sudo ln -s /lib/init/upstart-job /etc/init.d/metricsd')
Esempio n. 2
0
    alsi.fetch_package(r'python/pywin/' + pycrypto, local_path)
    alsi.runcmd(local_path)

# Install boostrap packages
try:
    # noinspection PyUnresolvedReferences
    import psutil
except ImportError:
    psutil_pkg = 'psutil-2.1.0.win32-py2.7.exe'
    local_path = os.path.join(support_dir, psutil_pkg)
    alsi.fetch_package(r'python/pywin/' + psutil_pkg, local_path)
    alsi.runcmd(local_path)

alsi.pip_install_all([
    'chardet>=2.2,<3.0',
    'redis>=2.10,<3.0',
    'netifaces>=0.10',
    'apscheduler>=2.1.2,<3.0',
])

alsi.pip_install_all(['cffi==1.4.1', 'enum34', 'pyasn1', 'google-apputils'])

alsi.pip_install_all([
    'boto3==1.4.4', 'botocore==1.5.62', 'setuptools==24.0.2', 'cryptography',
    'riak-pb', 'pyOpenSSL', 'six==1.9.0', 'pycparser', 'riak>=2.2',
    'paramiko==2.0.1', 'pysftp==0.2.9'
])

# Install core deps pip packages
alsi.pip_install_all([
    'easydict',
    'pytz',