from osv.modules.filemap import FileMap usr_files = FileMap() usr_files.add('${OSV_BASE}/modules/lua/install/lua_modules/').to('/usr') \ .exclude('lib/luarocks/**') \ .exclude('share/lua/*/luarocks/**')
from osv.modules.filemap import FileMap VERSION = '20140620-3.1' usr_files = FileMap() usr_files.add('${OSV_BASE}/modules/libedit/build/libedit-%s/src/.libs' % VERSION).to('/usr/lib') \ .include('lib*.so.?')
# # Copyright (C) 2016 Waldemar Kozaczuk # # This work is open source software, licensed under the terms of the # BSD license as described in the LICENSE file in the top-level directory. # from osv.modules import api from osv.modules.filemap import FileMap api.require('java-cmd') provides = ['java', 'java8'] usr_files = FileMap() usr_files.add('${OSV_BASE}/apps/openjdk8-zulu-compact3-with-java-beans/install' ).to('/').allow_symlink() usr_files.add('${OSV_BASE}/apps/openjdk8-zulu-compact3-with-java-beans/install/usr/lib/jvm/java') \ .to('/usr/lib/jvm/java') \ .allow_symlink() usr_files.link('/usr/lib/jvm/jre').to('/usr/lib/jvm/java/jre') usr_files.link('/usr/bin/java').to('/usr/lib/jvm/java/jre/bin/java')
from osv.modules import api from osv.modules.filemap import FileMap api.require('java') _jar = '/tests/java/tests.jar' _isolates_jar = '/tests/java/isolates.jar' usr_files = FileMap() usr_files.add('${OSV_BASE}/java/tests/target/runjava-tests.jar').to(_jar) usr_files.add('${OSV_BASE}/java/tests-isolates/target/tests-isolates-jar-with-dependencies.jar').to(_isolates_jar) usr_files.add('${OSV_BASE}/java/tests/target/classes/tests/ClassPutInRoot.class').to('/tests/ClassPutInRoot.class') usr_files.add('${OSV_BASE}/java/tests-jre-extension/target/tests-jre-extension.jar') \ .to('/usr/lib/jvm/java/jre/lib/ext/tests-jre-extension.jar') default = api.run_java(classpath=[_jar, _isolates_jar], args=['-Disolates.jar=' + _isolates_jar, 'org.junit.runner.JUnitCore', 'io.osv.AllTests'])
import os from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api _app = '${OSV_BASE}/apps/httpserver-html5-cli' usr_files = FileMap() usr_files.add(os.path.join(_app, 'osv-html5-terminal/dist')).to('/usr/mgmt/cli') usr_files.add(os.path.join(_app, 'httpserver.conf')).to('/tmp/httpserver.conf') api.require('httpserver-api') # httpserver will run regardless of an explicit command line # passed with "run.py -e". _exe = '/libhttpserver.so' daemon = api.run_on_init(_exe + ' &!') fg = api.run(_exe) fg_ssl = api.run(_exe + ' --ssl') fg_cors = api.run(_exe + ' --access-allow=true') default = daemon
from osv.modules.api import * from osv.modules.filemap import FileMap usr_files = FileMap() usr_files.add('${OSV_BASE}/mgmt/httpserver/httpserver.so').to('/usr/mgmt/httpserver.so') _web_jar = '/usr/mgmt/web-1.0.0.jar' _logging_opts = '-Djava.util.logging.config.file=/usr/mgmt/config/logging.properties' shell = run_java( jvm_args=[_logging_opts], classpath=[ '/usr/mgmt/lib/bcprov-jdk15on-147.jar', '/usr/mgmt/lib/bcpkix-jdk15on-147.jar', _web_jar, ], args=[ '-jar', '/usr/mgmt/crash-1.0.0.jar' ]) web = run_java( jvm_args=[_logging_opts], args=['-jar', _web_jar, 'app', 'prod']) full = [ shell, delayed(web, 3000) ]
from osv.modules.filemap import FileMap import subprocess api.require('java') javac_with_version = subprocess.check_output( ['javac', '-version'], stderr=subprocess.STDOUT).decode('utf-8') usr_files = FileMap() _jar = '/tests/java/tests.jar' if javac_with_version.startswith('javac 1.8'): _isolates_jar = '/tests/java/isolates.jar' usr_files.add( '${OSV_BASE}/modules/java-tests/tests/target/runjava-tests.jar').to( _jar) usr_files.add( '${OSV_BASE}/modules/java-tests/tests-isolates/target/tests-isolates-jar-with-dependencies.jar' ).to(_isolates_jar) usr_files.add( '${OSV_BASE}/modules/java-tests/tests/target/classes/tests/ClassPutInRoot.class' ).to('/tests/ClassPutInRoot.class') usr_files.add('${OSV_BASE}/modules/java-tests/tests-jre-extension/target/tests-jre-extension.jar') \ .to('/usr/lib/jvm/java/jre/lib/ext/tests-jre-extension.jar') usr_files.add('${OSV_BASE}/build/last/modules/java-tests/java_isolated.so' ).to('/java_isolated.so') usr_files.add(
# # Copyright (C) 2014 Cloudius Systems, Ltd. # # This work is open source software, licensed under the terms of the # BSD license as described in the LICENSE file in the top-level directory. # from osv.modules.filemap import FileMap from osv.modules import api import os, os.path provides = ['java'] non_isolated_jvm = True api.require('fonts') api.require('ca-certificates') api.require('libz') api.require('josvsym') usr_files = FileMap() usr_files.add('${OSV_BASE}/apps/openjdk9-ea-java-base/install').to('/').allow_symlink() usr_files.add('${OSV_BASE}/apps/openjdk9-ea-java-base/install/usr/lib/jvm/java') \ .to('/usr/lib/jvm/java') \ .allow_symlink() usr_files.link('/usr/lib/jvm/jre').to('/usr/lib/jvm/java/jre')
import os from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api _module = '${OSV_BASE}/modules/monitoring-agent' usr_files = FileMap() usr_files.add(os.path.join(_module, 'monitoring-agent.so')).to('/usr/mgmt/monitoring-agent.so') usr_files.add(os.path.join(_module, 'cmdline')).to('/init/01-cmdline') default = ""
from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api usr_files = FileMap() usr_files.add('${OSV_BASE}/mgmt/crash/target/dependencies').to('/usr/mgmt/lib') _crash_jar = '/usr/mgmt/crash-1.0.0.jar' _cloudius_jar = '/java/cloudius.jar' _logging_opts = ['-Djava.util.logging.config.file=/usr/mgmt/config/logging.properties'] shell = run_java( classpath=[ _cloudius_jar, _crash_jar, '/usr/mgmt/lib/*' ], args=_logging_opts + [ '-jar', _crash_jar ]) # Some CLI commands depend on httpserver presence _httpserver_module = require('httpserver') httpserver = _httpserver_module.default _osvinit_module = require('osvinit') osvinit = _osvinit_module.default full = [ shell, httpserver,
from osv.modules.filemap import FileMap VERSION = '5.9' usr_files = FileMap() usr_files.add('${OSV_BASE}/modules/ncurses/build/ncurses-%s/lib' % VERSION).to('/usr/lib') \ .include('lib*.so.?') usr_files.add('${OSV_BASE}/modules/ncurses/out/terminfo').to( '/usr/share/terminfo')
import os from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api _module = "${OSV_BASE}/modules/httpserver-jolokia-plugin" usr_files = FileMap() usr_files.add(os.path.join(_module, "jolokia.so")).to("/usr/mgmt/plugins/jolokia.so") usr_files.add(os.path.join(_module, "api-doc/listings/jolokia.json")).to("/usr/mgmt/api/listings/jolokia.json") usr_files.add("${OSV_BASE}/java/jolokia-agent/target/jolokia-agent.jar").to("/usr/mgmt/jolokia-agent.jar")
from osv.modules.filemap import FileMap usr_files = FileMap() usr_files.add('${OSV_BASE}/modules/lua/src/liblua.so').to('/usr/lib/liblua.so') usr_files.add('${OSV_BASE}/modules/lua/out').to('/usr') \ .exclude('bin/*') \ .exclude('etc/*') \ .exclude('lib/luarocks/**') \ .exclude('share/lua/*/luarocks/**')
import os from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api _module = '${OSV_BASE}/modules/httpserver-api' _exe = '/libhttpserver.so' usr_files = FileMap() usr_files.add(os.path.join(_module, 'libhttpserver-api.so')).to(_exe) usr_files.add(os.path.join(_module, 'api-doc')).to('/usr/mgmt/api') api.require('openssl') api.require('libtools') api.require('libyaml') # only require next 3 modules if java (jre) is included in the list of modules api.require_if_other_module_present('josvsym','java') api.require_if_other_module_present('httpserver-jolokia-plugin','java') api.require_if_other_module_present('httpserver-jvm-plugin','java') # httpserver will run regardless of an explicit command line # passed with "run.py -e". daemon = api.run_on_init(_exe + ' &!') fg = api.run(_exe) fg_ssl = api.run(_exe + ' --ssl') default = daemon
import os from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api _app = '${OSV_BASE}/apps/httpserver-html5-cli' usr_files = FileMap() usr_files.add(os.path.join(_app, 'osv-html5-terminal/dist')).to('/usr/mgmt/cli') usr_files.add(os.path.join(_app, 'httpserver.conf')).to('/etc/httpserver.conf') api.require('httpserver-api') # httpserver will run regardless of an explicit command line # passed with "run.py -e". _exe = '/libhttpserver-api.so --config-file=/etc/httpserver.conf' daemon = api.run_on_init(_exe + ' &!') fg = api.run(_exe) fg_ssl = api.run(_exe + ' --ssl') fg_cors = api.run(_exe + ' --access-allow=true') default = daemon
from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api import os, os.path require('lua') require('ncurses') require('libedit') require('httpserver') usr_files = FileMap() usr_files.add('${OSV_BASE}/modules/cli').to('/cli') \ .include('cli.so') \ .include('cli.lua') \ .include('lib/**') \ .include('commands/**') full = api.run('/cli/cli.so') default = full
from osv.modules import api import os, os.path usr_files = FileMap() api.require('fonts') jdkdir = os.path.basename(os.path.expandvars('${jdkbase}')) if not os.path.exists('diskimage/usr/lib/jvm'): os.makedirs('diskimage/usr/lib/jvm') def symlink_force(dest, name): if os.path.lexists(name): os.unlink(name) os.symlink(dest, name) symlink_force('java', 'diskimage/usr/lib/jvm/' + jdkdir) symlink_force('java/jre', 'diskimage/usr/lib/jvm/jre') usr_files.add('${jdkbase}').to('/usr/lib/jvm/java') \ .include('lib/**') \ .include('jre/**') \ .exclude('jre/lib/security/cacerts') \ .exclude('jre/lib/audio/**') usr_files.add(os.getcwd() + '/diskimage/usr/lib/jvm/' + jdkdir) \ .to('/usr/lib/jvm/' + jdkdir) \ .allow_symlink() usr_files.add(os.getcwd() + '/diskimage/usr/lib/jvm/jre') \ .to('/usr/lib/jvm/jre') \ .allow_symlink()
import os from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api _module = '${OSV_BASE}/modules/httpserver' usr_files = FileMap() usr_files.add(os.path.join(_module, 'libhttpserver.so')).to('/libhttpserver.so') usr_files.add(os.path.join(_module, 'api-doc')).to('/usr/mgmt/api') usr_files.add(os.path.join(_module, 'swagger-ui', 'dist')).to('/usr/mgmt/swagger-ui/dist') #default = api.run('/libhttpserver.so') # Instead of adding to the command line using api.run(...), put a command in # /init. This way, httpserver will run regardless of an explicit command line # passed with "run.py -e". usr_files.add(os.path.join(_module, 'cmdline')).to('/init/10-httpserver')
import os from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api _module = '${OSV_BASE}/modules/jolokia-agent' usr_files = FileMap() usr_files.add(os.path.join(_module, 'target/jolokia-agent.jar')).to('/usr/mgmt/jolokia-agent.jar')
# # Copyright (C) 2014 Cloudius Systems, Ltd. # # This work is open source software, licensed under the terms of the # BSD license as described in the LICENSE file in the top-level directory. # from osv.modules.filemap import FileMap from osv.modules import api api.require('java-non-isolated') provides = ['java', 'java8', 'java9', 'java10', 'java11', 'java12'] usr_files = FileMap() usr_files.add('${OSV_BASE}/apps/openjdk-zulu-9-and-above/install').to( '/').allow_symlink() usr_files.add('${OSV_BASE}/apps/openjdk-zulu-9-and-above/install/usr/lib/jvm/java') \ .to('/usr/lib/jvm/java') \ .allow_symlink() usr_files.link('/usr/bin/java').to('/usr/lib/jvm/java/bin/java')
import os from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api _module = '${OSV_BASE}/modules/httpserver-jolokia-plugin' usr_files = FileMap() usr_files.add(os.path.join(_module, 'jolokia.so')).to('/usr/mgmt/plugins/jolokia.so') usr_files.add(os.path.join( _module, 'api-doc/listings/jolokia.json')).to('/usr/mgmt/api/listings/jolokia.json') usr_files.add('${OSV_BASE}/java/jolokia-agent/target/jolokia-agent.jar').to( '/usr/mgmt/jolokia-agent.jar')
import os from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api _module = '${OSV_BASE}/modules/cloud-init' usr_files = FileMap() usr_files.add(os.path.join('${OSV_BASE}', 'external/x64/misc.bin/usr/lib64/libyaml-cpp.so.0.5.1')).to('/usr/lib/libyaml-cpp.so.0.5') usr_files.add(os.path.join(_module, 'cloud-init.so')).to('/usr/mgmt/cloud-init.so') usr_files.add(os.path.join(_module, 'cloud-init.yaml')).to('/usr/mgmt/cloud-init.yaml') usr_files.add(os.path.join(_module, 'cmdline')).to('/init/00-cmdline') api.require('httpserver') #default = api.run('/usr/mgmt/cloud-init.so --skip-error --file /usr/mgmt/cloud-init.yaml') default = ""
import os from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api _module = '${OSV_BASE}/modules/httpserver' usr_files = FileMap() usr_files.add(os.path.join(_module, 'libhttpserver.so')).to('/libhttpserver.so') usr_files.add(os.path.join(_module, 'api-doc')).to('/usr/mgmt/api') usr_files.add(os.path.join(_module, 'swagger-ui', 'dist')).to('/usr/mgmt/swagger-ui/dist') #default = api.run('/libhttpserver.so') # Instead of adding to the command line using api.run(...), put a command in # /init. This way, httpserver will run regardless of an explicit command line # passed with "run.py -e". usr_files.add(os.path.join(_module, 'cmdline')).to('/init/10-httpserver') api.require('libtools')
from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api require('lua') require('ncurses') require('libedit') require_running('httpserver') usr_files = FileMap() usr_files.add('${OSV_BASE}/modules/cli').to('/cli') \ .include('cli.so') \ .include('cli.lua') \ .include('lib/**') \ .include('commands/**') full = api.run('/cli/cli.so') default = full
from osv.modules import api from osv.modules.filemap import FileMap api.require("java") _jar = "/tests/java/tests.jar" _isolates_jar = "/tests/java/isolates.jar" usr_files = FileMap() usr_files.add("${OSV_BASE}/java/tests/target/runjava-tests.jar").to(_jar) usr_files.add("${OSV_BASE}/java/tests-isolates/target/tests-isolates-jar-with-dependencies.jar").to(_isolates_jar) usr_files.add("${OSV_BASE}/java/tests-jre-extension/target/tests-jre-extension.jar").to( "/usr/lib/jvm/java/jre/lib/ext/tests-jre-extension.jar" ) default = api.run_java( classpath=[_jar, _isolates_jar], args=["-Disolates.jar=" + _isolates_jar, "org.junit.runner.JUnitCore", "io.osv.AllTests"], )
from osv.modules import api from osv.modules.filemap import FileMap api.require('java') _jar = '/tests/java/tests.jar' _isolates_jar = '/tests/java/isolates.jar' usr_files = FileMap() usr_files.add('${OSV_BASE}/java/tests/target/runjava-tests.jar').to(_jar) usr_files.add( '${OSV_BASE}/java/tests-isolates/target/tests-isolates-jar-with-dependencies.jar' ).to(_isolates_jar) usr_files.add( '${OSV_BASE}/java/tests/target/classes/tests/ClassPutInRoot.class').to( '/tests/ClassPutInRoot.class') usr_files.add('${OSV_BASE}/java/tests-jre-extension/target/tests-jre-extension.jar') \ .to('/usr/lib/jvm/java/jre/lib/ext/tests-jre-extension.jar') default = api.run_java(classpath=[_jar, _isolates_jar], args=[ '-Disolates.jar=' + _isolates_jar, 'org.junit.runner.JUnitCore', 'io.osv.AllTests' ])
import os from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api _module = '${OSV_BASE}/modules/httpserver-api' _exe = '/libhttpserver-api.so' usr_files = FileMap() usr_files.add(os.path.join(_module, 'libhttpserver-api.so')).to(_exe) usr_files.add(os.path.join(_module, 'api-doc')).to('/usr/mgmt/api') api.require('openssl') api.require('libtools') api.require('libyaml') # only require next 3 modules if java (jre) is included in the list of modules api.require_if_other_module_present('josvsym','java') api.require_if_other_module_present('httpserver-jolokia-plugin','java') api.require_if_other_module_present('httpserver-jvm-plugin','java') # httpserver will run regardless of an explicit command line # passed with "run.py -e". daemon = api.run_on_init(_exe + ' &!') fg = api.run(_exe) fg_ssl = api.run(_exe + ' --ssl') default = daemon
from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api usr_files = FileMap() usr_files.add('${OSV_BASE}/mgmt/httpserver/httpserver.so').to( '/usr/mgmt/httpserver.so') usr_files.add('${OSV_BASE}/mgmt/api').to('/usr/mgmt/api') usr_files.add('${OSV_BASE}/mgmt/swagger-ui/dist').to( '/usr/mgmt/swagger-ui/dist') _cloudius_jar = '/java/cloudius.jar' _web_jar = '/usr/mgmt/web-1.0.0.jar' _logging_opts = [ '-Djava.util.logging.config.file=/usr/mgmt/config/logging.properties' ] shell = run_java(classpath=[ '/usr/mgmt/lib/bcprov-jdk15on-147.jar', '/usr/mgmt/lib/bcpkix-jdk15on-147.jar', _cloudius_jar, _web_jar, ], args=_logging_opts + ['-jar', '/usr/mgmt/crash-1.0.0.jar']) httpserver = api.run('/usr/mgmt/httpserver.so') full = [ shell, httpserver,
from osv.modules.filemap import FileMap VERSION = '5.9' usr_files = FileMap() usr_files.add('${OSV_BASE}/modules/ncurses/build/ncurses-%s/lib' % VERSION).to('/usr/lib') \ .include('lib*.so.?') usr_files.add('${OSV_BASE}/modules/ncurses/out/terminfo').to('/usr/share/terminfo')
javac_path = subprocess.check_output(['which', 'javac']).decode('utf-8').split('\n')[0] javac_real_path = os.path.realpath(javac_path) java_real_path = os.path.dirname(javac_real_path) + '/java' jdk_path = os.path.dirname(os.path.dirname(javac_real_path)) javac_with_version = subprocess.check_output( ['javac', '-version'], stderr=subprocess.STDOUT).decode('utf-8') java_version = javac_with_version.split()[1].split('.')[0] api.require('ca-certificates') api.require('libz') provides = ['java', 'java%s' % java_version] usr_files = FileMap() jdk_dir = os.path.basename(jdk_path) usr_files.add(jdk_path).to('/usr/lib/jvm/java') \ .include('lib/**') \ .exclude('lib/security/cacerts') \ .exclude('man/**') \ .exclude('bin/**') \ .include('bin/java') \ .include('bin/jshell') usr_files.link('/usr/lib/jvm/' + jdk_dir).to('java') usr_files.link('/usr/lib/jvm/java/lib/security/cacerts').to( '/etc/pki/java/cacerts') usr_files.link('/usr/bin/java').to('/usr/lib/jvm/java/bin/java')
import os from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api _module = '${OSV_BASE}/modules/httpserver-html5-gui' usr_files = FileMap() usr_files.add(os.path.join(_module, 'swagger-ui', 'dist')).to('/usr/mgmt/swagger-ui/dist') usr_files.add(os.path.join(_module, 'osv-gui/public')).to('/usr/mgmt/gui') usr_files.add(os.path.join(_module, 'httpserver.conf')).to('/tmp/httpserver.conf') api.require('httpserver-api') # httpserver will run regardless of an explicit command line # passed with "run.py -e". _exe = '/libhttpserver.so' daemon = api.run_on_init(_exe + ' &!') fg = api.run(_exe) fg_ssl = api.run(_exe + ' --ssl') fg_cors = api.run(_exe + ' --access-allow=true') default = daemon
from osv.modules.filemap import FileMap usr_files = FileMap() usr_files.add('${OSV_BASE}/modules/lua/src/liblua.so').to('/usr/lib/liblua.so') usr_files.add('${OSV_BASE}/modules/lua/out').to('/usr')
import os from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api _module = '${OSV_BASE}/modules/httpserver-jolokia-plugin' usr_files = FileMap() usr_files.add(os.path.join( _module, 'api-doc/listings/jolokia.json')).to('/usr/mgmt/api/listings/jolokia.json') usr_files.add(os.path.join(_module, 'jolokia-agent/target/jolokia-agent.jar')).to( '/usr/mgmt/jolokia-agent.jar')
import os from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api _module = '${OSV_BASE}/modules/httpserver-jolokia-plugin' usr_files = FileMap() usr_files.add(os.path.join(_module, 'jolokia.so')).to('/usr/mgmt/plugins/jolokia.so') usr_files.add(os.path.join(_module, 'api-doc/listings/jolokia.json')).to('/usr/mgmt/api/listings/jolokia.json') usr_files.add(os.path.join(_module, 'jolokia-agent/target/jolokia-agent.jar')).to('/usr/mgmt/jolokia-agent.jar')
import os from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api _module = '${OSV_BASE}/modules/cloud-init' usr_files = FileMap() usr_files.add( os.path.join('${OSV_BASE}', 'external/x64/misc.bin/usr/lib64/libyaml-cpp.so.0.5.1')).to( '/usr/lib/libyaml-cpp.so.0.5') usr_files.add(os.path.join(_module, 'cloud-init.so')).to('/usr/mgmt/cloud-init.so') usr_files.add(os.path.join(_module, 'cloud-init.yaml')).to('/usr/mgmt/cloud-init.yaml') usr_files.add(os.path.join(_module, 'cmdline')).to('/init/00-cmdline') api.require('httpserver') #default = api.run('/usr/mgmt/cloud-init.so --skip-error --file /usr/mgmt/cloud-init.yaml') default = ""
# # Copyright (C) 2014 Cloudius Systems, Ltd. # # This work is open source software, licensed under the terms of the # BSD license as described in the LICENSE file in the top-level directory. # from osv.modules.filemap import FileMap from osv.modules import api api.require('java-cmd') provides = ['java','java8'] usr_files = FileMap() usr_files.add('${OSV_BASE}/apps/openjdk8-fedora/install').to('/').allow_symlink() usr_files.link('/usr/lib/jvm/jre').to('/usr/lib/jvm/java/jre') usr_files.link('/usr/bin/java').to('/usr/lib/jvm/java/jre/bin/java')
import os from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api _module = '${OSV_BASE}/modules/monitoring-agent' usr_files = FileMap() usr_files.add(os.path.join( _module, 'monitoring-agent.so')).to('/usr/mgmt/monitoring-agent.so') usr_files.add(os.path.join(_module, 'cmdline')).to('/init/01-cmdline') default = ""
java_real_path = os.path.dirname(javac_real_path) + '/java' jdk_path = os.path.dirname(os.path.dirname(javac_real_path)) java_version = subprocess.check_output( [java_real_path, '-version'], stderr=subprocess.STDOUT).decode('utf-8') if not 'openjdk version "1.8.0' in java_version: print( 'Could not find openjdk version 8 on the host. Please install openjdk8!' ) exit(-1) usr_files = FileMap() jdk_dir = os.path.basename(jdk_path) usr_files.add(jdk_path).to('/usr/lib/jvm/java') \ .include('jre/**') \ .exclude('jre/lib/security/cacerts') \ .exclude('jre/lib/%s/*audio*' % arch_dir) \ .exclude('jre/lib/%s/*sound*' % arch_dir) \ .exclude('') \ .exclude('jre/man/**') \ .exclude('jre/bin/**') \ .include('jre/bin/java') usr_files.link('/usr/lib/jvm/' + jdk_dir).to('java') usr_files.link('/usr/lib/jvm/jre').to('java/jre') usr_files.link('/usr/lib/jvm/java/jre/lib/security/cacerts').to( '/etc/pki/java/cacerts') usr_files.link('/usr/bin/java').to('/usr/lib/jvm/java/jre/bin/java')
# # Copyright (C) 2017 Waldemar Kozaczuk # # This work is open source software, licensed under the terms of the # BSD license as described in the LICENSE file in the top-level directory. # from osv.modules.filemap import FileMap from osv.modules import api api.require('java-cmd') provides = ['java','java8'] usr_files = FileMap() usr_files.add('${OSV_BASE}/apps/openjdk8-zulu-full/install').to('/').allow_symlink() #usr_files.add('${OSV_BASE}/apps/openjdk8-zulu-full/install/usr/lib/jvm/java') \ # .to('/usr/lib/jvm/java') \ # .allow_symlink() usr_files.link('/usr/lib/jvm/jre').to('/usr/lib/jvm/java/jre')
from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api usr_files = FileMap() usr_files.add('${OSV_BASE}/mgmt/httpserver/httpserver.so').to('/usr/mgmt/httpserver.so') usr_files.add('${OSV_BASE}/mgmt/api').to('/usr/mgmt/api') usr_files.add('${OSV_BASE}/mgmt/swagger-ui/dist').to('/usr/mgmt/swagger-ui/dist') _cloudius_jar = '/java/cloudius.jar' _web_jar = '/usr/mgmt/web-1.0.0.jar' _logging_opts = ['-Djava.util.logging.config.file=/usr/mgmt/config/logging.properties'] shell = run_java( classpath=[ '/usr/mgmt/lib/bcprov-jdk15on-147.jar', '/usr/mgmt/lib/bcpkix-jdk15on-147.jar', _cloudius_jar, _web_jar, ], args=_logging_opts + [ '-jar', '/usr/mgmt/crash-1.0.0.jar' ]) httpserver = api.run('/usr/mgmt/httpserver.so') full = [ shell, httpserver, ]
# # Copyright (C) 2017 Waldemar Kozaczuk # # This work is open source software, licensed under the terms of the # BSD license as described in the LICENSE file in the top-level directory. # from osv.modules.filemap import FileMap from osv.modules import api api.require('java-cmd') provides = ['java', 'java8'] usr_files = FileMap() usr_files.add('${OSV_BASE}/apps/openjdk8-zulu-full/install').to( '/').allow_symlink() usr_files.link('/usr/lib/jvm/jre').to('/usr/lib/jvm/java/jre') usr_files.link('/usr/bin/java').to('/usr/lib/jvm/java/jre/bin/java')
import os from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api provides = ['httpserver-api'] _module = '${OSV_BASE}/modules/httpserver-monitoring-api' _exe = '/libhttpserver-api.so' usr_files = FileMap() usr_files.link(_exe).to('/usr/lib/libhttpserver-api.so') usr_files.add(os.path.join(_module, 'api-doc')).to('/usr/mgmt/api') api.require('libtools') # httpserver will run regardless of an explicit command line # passed with "run.py -e". daemon = api.run_on_init(_exe + ' --access-allow=true &!') fg = api.run(_exe + ' --access-allow=true') default = daemon
from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api usr_files = FileMap() usr_files.add('${OSV_BASE}/mgmt/crash/target/dependencies').to('/usr/mgmt/lib') _crash_jar = '/usr/mgmt/crash-1.0.0.jar' _cloudius_jar = '/java/cloudius.jar' _logging_opts = [ '-Djava.util.logging.config.file=/usr/mgmt/config/logging.properties' ] shell = run_java(classpath=[_cloudius_jar, _crash_jar, '/usr/mgmt/lib/*'], args=_logging_opts + ['-jar', _crash_jar]) # Some CLI commands depend on httpserver presence _httpserver_module = require_running('httpserver') full = [ shell, ] default = full
import os from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api _module = '${OSV_BASE}/modules/cloud-init' usr_files = FileMap() usr_files.add(os.path.join(_module, 'cloud-init.yaml')).to('/usr/mgmt/cloud-init.yaml') usr_files.add(os.path.join(_module, 'cmdline')).to('/init/00-cmdline') api.require('httpserver') api.require('libyaml') api.require('libcdio') #default = api.run('/usr/mgmt/cloud-init.so --skip-error --file /usr/mgmt/cloud-init.yaml') default = ""
import os from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api _module = '${OSV_BASE}/modules/cloud-init' usr_files = FileMap() usr_files.add(os.path.join(_module, 'cloud-init.so')).to('/usr/mgmt/cloud-init.so') usr_files.add(os.path.join(_module, 'cloud-init.yaml')).to('/usr/mgmt/cloud-init.yaml') usr_files.add(os.path.join(_module, 'cmdline')).to('/init/00-cmdline') api.require('httpserver') api.require('libyaml') #default = api.run('/usr/mgmt/cloud-init.so --skip-error --file /usr/mgmt/cloud-init.yaml') default = ""
import os from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api _module = '${OSV_BASE}/modules/httpserver' _exe = '/libhttpserver.so' usr_files = FileMap() usr_files.add(os.path.join(_module, 'libhttpserver.so')).to(_exe) usr_files.add(os.path.join(_module, 'api-doc')).to('/usr/mgmt/api') usr_files.add(os.path.join(_module, 'swagger-ui', 'dist')).to('/usr/mgmt/swagger-ui/dist') usr_files.add(os.path.join(_module, 'osv-gui/public')).to('/usr/mgmt/gui') api.require('openssl') api.require('libtools') api.require('libyaml') # only require next 3 modules if java (jre) is included in the list of modules api.require_if_other_module_present('josvsym','java') api.require_if_other_module_present('httpserver-jolokia-plugin','java') api.require_if_other_module_present('httpserver-jvm-plugin','java') # httpserver will run regardless of an explicit command line # passed with "run.py -e". daemon = api.run_on_init(_exe + ' &!') fg = api.run(_exe) fg_ssl = api.run(_exe + ' --ssl')
import os from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api _module = '${OSV_BASE}/modules/httpserver' _exe = '/libhttpserver.so' usr_files = FileMap() usr_files.add(os.path.join(_module, 'libhttpserver.so')).to(_exe) usr_files.add(os.path.join(_module, 'api-doc')).to('/usr/mgmt/api') usr_files.add(os.path.join(_module, 'swagger-ui', 'dist')).to('/usr/mgmt/swagger-ui/dist') usr_files.add(os.path.join(_module, 'osv-gui/public')).to('/usr/mgmt/gui') usr_files.add('${OSV_BASE}/java/jolokia-agent/target/jolokia-agent.jar').to('/usr/mgmt/jolokia-agent.jar') api.require('openssl') api.require('libtools') # httpserver will run regardless of an explicit command line # passed with "run.py -e". daemon = api.run_on_init(_exe + ' &!') fg = api.run(_exe) fg_ssl = api.run(_exe + ' --ssl') default = daemon
provides = ['java'] from osv.modules.filemap import FileMap from osv.modules import api api.require('fonts') usr_files = FileMap() usr_files.add('${OSV_BASE}/apps/openjdk8/upstream/install/jvm/openjdk-1.8.0-internal').to('/usr/lib/jvm') \ .include('lib/**') \ .include('jre/**') \ .exclude('jre/lib/security/cacerts') \ .exclude('jre/lib/audio/**')
from osv.modules.filemap import FileMap VERSION = 0.94 usr_files = FileMap() usr_files.add('${OSV_BASE}/modules/libcdio/build/libcdio-%s/src/.libs' % VERSION).to('/usr/bin') \ .include('iso-read.so') usr_files.add('${OSV_BASE}/modules/libcdio/build/libcdio-%s/lib/udf/.libs' % VERSION).to('/usr/lib') \ .include('libudf.so.0') usr_files.add('${OSV_BASE}/modules/libcdio/build/libcdio-%s/lib/iso9660/.libs' % VERSION).to('/usr/lib') \ .include('libiso9660.so.10') usr_files.add('${OSV_BASE}/modules/libcdio/build/libcdio-%s/lib/driver/.libs' % VERSION).to('/usr/lib') \ .include('libcdio.so.16')
from osv.modules.filemap import FileMap from osv.modules import api import os, os.path usr_files = FileMap() api.require('fonts') api.require('ca-certificates') api.require('libz') api.require('josvsym') jdkdir = os.path.basename(os.path.expandvars('${jdkbase}')) usr_files.add('${jdkbase}').to('/usr/lib/jvm/java') \ .include('lib/**') \ .include('jre/**') \ .exclude('jre/lib/security/cacerts') \ .exclude('jre/lib/audio/**') usr_files.link('/usr/lib/jvm/' + jdkdir).to('java') usr_files.link('/usr/lib/jvm/jre').to('java/jre') usr_files.link('/usr/lib/jvm/java/jre/lib/security/cacerts').to('/etc/pki/java/cacerts')
import os from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api _module = '${OSV_BASE}/mgmt/osvinit' usr_files = FileMap() usr_files.add(os.path.join('${OSV_BASE}', 'external/x64/misc.bin/usr/lib64/libyaml-cpp.so.0.5.1')).to('/usr/lib/libyaml-cpp.so.0.5') usr_files.add(os.path.join(_module, 'osvinit.so')).to('/usr/mgmt/osvinit.so') usr_files.add(os.path.join(_module, 'osvinit.yaml')).to('/usr/mgmt/osvinit.yaml') api.require('httpserver') #default = api.run('/usr/mgmt/osvinit.so --skip-error --file /usr/mgmt/osvinit.yaml') default = ""
import os from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api _module = '${OSV_BASE}/modules/httpserver-html5-gui' usr_files = FileMap() usr_files.add(os.path.join(_module, 'swagger-ui', 'dist')).to('/usr/mgmt/swagger-ui/dist') usr_files.add(os.path.join(_module, 'osv-gui/public')).to('/usr/mgmt/gui') usr_files.add(os.path.join(_module, 'httpserver.conf')).to('/etc/httpserver.conf') api.require('httpserver-api') # httpserver will run regardless of an explicit command line # passed with "run.py -e". _exe = '/libhttpserver-api.so --config-file=/etc/httpserver.conf' daemon = api.run_on_init(_exe + ' &!') fg = api.run(_exe) fg_ssl = api.run(_exe + ' --ssl') fg_cors = api.run(_exe + ' --access-allow=true') default = daemon
# # Copyright (C) 2014 Cloudius Systems, Ltd. # # This work is open source software, licensed under the terms of the # BSD license as described in the LICENSE file in the top-level directory. # from osv.modules.filemap import FileMap from osv.modules import api api.require('java-cmd') provides = ['java'] usr_files = FileMap() usr_files.add('${OSV_BASE}/apps/openjdk8-fedora/install').to('/').allow_symlink() usr_files.link('/usr/lib/jvm/jre').to('/usr/lib/jvm/java/jre')
# # Copyright (C) 2014 Cloudius Systems, Ltd. # # This work is open source software, licensed under the terms of the # BSD license as described in the LICENSE file in the top-level directory. # from osv.modules.filemap import FileMap from osv.modules import api api.require('java-non-isolated') provides = ['java', 'java8', 'java9', 'java10'] usr_files = FileMap() usr_files.add('${OSV_BASE}/apps/openjdk10-java-base/install').to( '/').allow_symlink() usr_files.add('${OSV_BASE}/apps/openjdk10-java-base/install/usr/lib/jvm/java') \ .to('/usr/lib/jvm/java') \ .allow_symlink()
import os from osv.modules.api import * from osv.modules.filemap import FileMap from osv.modules import api _module = '${OSV_BASE}/modules/httpserver' _exe = '/libhttpserver.so' usr_files = FileMap() usr_files.add(os.path.join(_module, 'libhttpserver.so')).to(_exe) usr_files.add(os.path.join(_module, 'api-doc')).to('/usr/mgmt/api') usr_files.add(os.path.join(_module, 'swagger-ui', 'dist')).to('/usr/mgmt/swagger-ui/dist') usr_files.add(os.path.join(_module, 'osv-gui/public')).to('/usr/mgmt/gui') api.require('openssl') api.require('libtools') api.require('libyaml') # httpserver will run regardless of an explicit command line # passed with "run.py -e". daemon = api.run_on_init(_exe + ' &!') fg = api.run(_exe) fg_ssl = api.run(_exe + ' --ssl') default = daemon
# # Copyright (C) 2016 Waldemar Kozaczuk # # This work is open source software, licensed under the terms of the # BSD license as described in the LICENSE file in the top-level directory. # from osv.modules.filemap import FileMap from osv.modules import api api.require('java-non-isolated') provides = ['java','java8'] usr_files = FileMap() usr_files.add('${OSV_BASE}/apps/openjdk8-zulu-compact2/install').to('/').allow_symlink() usr_files.add('${OSV_BASE}/apps/openjdk8-zulu-compact2/install/usr/lib/jvm/java') \ .to('/usr/lib/jvm/java') \ .allow_symlink() usr_files.link('/usr/lib/jvm/jre').to('/usr/lib/jvm/java/jre')