Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linker Universe

The Linker Universe package repository, originally from mesosphere/universe, tested by Linker(@tangmingdong123, @adolphlwq and @tjsongzw).

Usage for linkerUniverse

prerequisites

  • python3
    • httplib2
    • validators
  • pip
  • jsonschema

generated package ziped file

must ensure python3 is active

bash path_to_linkerUniverse/scripts/build.sh

After above shell script,it will generated some files in folder target:

target/
├── lrepo.zip
├── repo-empty-v3.json
├── repo-up-to-1.10.json
├── repo-up-to-1.6.1.zip
├── repo-up-to-1.7.zip
├── repo-up-to-1.8.json
├── repo-up-to-1.9.json
└── universe.json

The *.zip files are needed and valid for you own DC/OS package. If your package file is invalid, you may run into below problem:

dcos package search spark
Index file missing for repo [http://10.140.0.3/linkerrepo.zip]

Linker DC/OS

currently supported frameworks/packages:

package version
cassandra 2.2.5
chronos 2.4.0
kafka 0.9.0.1
kafka-manager 1.3.0.8
spark 2.0.0

|marathon-lb|1.3.2|

Tools

package_util.py

tiny script for listing/updating package configuration, which only compatible with a group of limited scenarios.

./scripts/config/package_util.py -h


usage: package_util.py [-h] [-l] [-p PACKAGE] [-u] [-f FILE]

This script is able to list package info and update uri/docker/command/cli for
specific package

optional arguments:
  -h, --help            show this help message and exit
  -l, --list            list package info
  -p PACKAGE, --package PACKAGE
                        packages to list, e.g. cassandra,kafka,spark
  -u, --update          update the repo configuration via YAML, default file
                        is `config.yml`.
  -f FILE, --file FILE  input YAML config file

listing all package available

./scripts/config/package_util.py -l

listing specified packages info

./scripts/config/package_util.py -l -p 'package1,package2,...'

updating uri/docker/command/cli in repo/package/{A...Z}/package/version(:digits:) via the default config file scripts/config/config.yml, checkout scripts/config/config.yml.template

./scripts/config/package_util.py -u

with option -f, the following provided YAML file will be used.

package_1:
  version:
  create:
  uri:
    uri_name_1:
    uri_name_2:
    all:
  docker:
    image_name_1:
    image_name_2:
  cli:
    darwin:
    linux:
    windows:
  command:

package_2:

generate-config-reference.py

Usage:  ./scripts/generate-config-reference.py [/path/to/universe/repo/packages]

by mesosphere,

Property Type Description Default Value

such format table will be generated via items belong to properties in package/version/config.json

build.sh

./scripts/build.sh

by mesosphere, this script will utilize scripts/gen-universe.py to generate zipfile in target dir with version info controlled by minDcosReleaseVersion listed in package.json. Those zipfiles are backwards compatible with cosmos.

adding the customized repo(zip) to DC/OS

dcos package repo add [--index=<index>] <repo-name> <repo-url>

<repo-url> points to somewhere the zip-file stay...

TODOs

  • Use linker own spark image for dcos Spark service.
  • Test can cassandra-1.0.7-2.2.5 run on bigdata cluster.
  • Test Kafka

About

The Linker Universe package repository.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages