Skip to main content

Backup/restore Marathon app job definitions.

Project description

Backup or deploy Marathon application job definitions.

What does it do?

  • Gets job definitions from a Marathon endpoint and saves them to a json file.

  • Loads job definitions from a json file and puts them to a Marathon endpoint.

  • Project and job name filters can be used to limit which jobs are backed up/deployed.

  • A test mode will show what would have been backed up/deployed.

Use

# Show app's help/all arguments.
app-deploy --help

# Test a backup from a dev Marathon endpoint to a file.
# Use job filters "/myproject" and then all for all jobs.
app-deploy --backup --test --env dev --project myproject --job all --file mytest.json

# Run a backup from a dev Marathon endpoint to a file.
# Use job filters "/myproject" and then further filter jobs with "myjob" in the name.
app-deploy --backup --env dev --project myproject --job myjob --file mytest.json

# Test a deploy from a file to a dev Marathon endpoint.
# Use job filters "/myproject and then all for all jobs.
app-deploy --deploy --test --env dev --project myproject --job all --file mytest.json

Install and Run

pip install lcmap-app-deploy

export MARATHON_USERNAME=myuser
export MARATHON_PASSWORD=mypw
export MARATHON_APPS_URL_DEV=https://hostdev:port/v2/apps
export MARATHON_APPS_URL_TEST=https://hosttest:port/v2/apps
export MARATHON_APPS_URL_PROD=https://hostprod:port/v2/apps

app-deploy --help

Versioning

lcmap-app-deploy follows semantic versioning: http://semver.org/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lcmap-app-deploy-0.3.1.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

lcmap_app_deploy-0.3.1-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file lcmap-app-deploy-0.3.1.tar.gz.

File metadata

  • Download URL: lcmap-app-deploy-0.3.1.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.12

File hashes

Hashes for lcmap-app-deploy-0.3.1.tar.gz
Algorithm Hash digest
SHA256 2eb0eeaee4a36e012c038ac287135080cd6241fa980916100651065440197bce
MD5 ec2bc8de4d46d48b3218cfe05f7c64f2
BLAKE2b-256 bdda66dbe62942047fc9b027f75589f890538df595afde6c47868692b6ce16e0

See more details on using hashes here.

File details

Details for the file lcmap_app_deploy-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: lcmap_app_deploy-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.12

File hashes

Hashes for lcmap_app_deploy-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7acab72157095f48a56c48e2e1144ec126e866c63a148e5552e04f0612a33b21
MD5 d25eef03d6886dee28cced868e2f4d2a
BLAKE2b-256 ceced5660865612ea70372cd757fe15e30a2a0e8b55224211d54383cc16534cf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page