Ejemplo n.º 1
0
def JupyterLabPlugin():
    return PluginConfiguration(
        name="jupyterlab",
        ports=[PluginPort(internal=8889, public=True)],
        target_role=PluginTargetRole.All,
        execute="jupyter_lab.sh",
        files=[PluginFile("jupyter_lab.sh", os.path.join(dir_path, "jupyter_lab.sh"))],
    )
Ejemplo n.º 2
0
def InstallPlugin(name, command, packages=None):
    return PluginConfiguration(
        name=name,
        target_role=PluginTargetRole.All,
        execute="install.sh",
        files=[PluginFile("install.sh", os.path.join(dir_path, "install.sh"))],
        args=packages,
        env=dict(COMMAND=command))
Ejemplo n.º 3
0
def NvBLASPlugin():
    return PluginConfiguration(
        name="nvblas",
        ports=[],
        target_role=PluginTargetRole.All,
        execute="nvblas.sh",
        files=[PluginFile("nvblas.sh", os.path.join(dir_path, "nvblas.sh"))],
    )
Ejemplo n.º 4
0
def TensorflowOnSparkPlugin():
    return PluginConfiguration(
        name="tensorflow_on_spark",
        target_role=PluginTargetRole.Master,
        execute="tensorflow_on_spark.sh",
        files=[
            PluginFile("tensorflow_on_spark.sh", os.path.join(dir_path, "tensorflow_on_spark.sh")),
        ],
    )
Ejemplo n.º 5
0
def RStudioServerPlugin(version="1.1.383"):
    return PluginConfiguration(
        name="rstudio_server",
        ports=[PluginPort(internal=8787, public=True)],
        target_role=PluginTargetRole.Master,
        execute="rstudio_server.sh",
        files=[
            PluginFile("rstudio_server.sh",
                       os.path.join(dir_path, "rstudio_server.sh"))
        ],
        env=dict(RSTUDIO_SERVER_VERSION=version),
    )