Skip to main content

Deploy any code anywhere

Project description

Nymbus

Deploy any code anywhere

Usage

Run

You can run

nymbus run [--step STEP] <component> <env>

To execute the steps specified in ./<component>/<env>.nymbus.yml

Folder and file structure

Complete example in https://github.com/nymbus-tools/nymbus/src/nymbus/tests/data/simple_project

Each folder MUST have a default.nymbus.yml to be explored (even the root one of your components).

Nymbus files will be merged (first default.nymbus.yml, then <env>.nymbus.yml)

# Optional: environment variables for all the steps
env:
  PROJECT: project-dev
  SECRET: ${DEV_SECRET}  # This will be taken at runtime

# Optional: path to context, i.e. folder that will be visible to command
context: ../../

# Step definitions
steps:

  # Name of step
  build:
    env:
      STANDARD: low
      CLOUDSDK_CONFIG: /gcloud
      
    # Command to execute
    # (if not specified and image is specified, will be /mnt/.nymbus/template/nymbus.sh)
    command: ls -la /mnt/.nymbus/template
    
    # Optional: an image where to run the command
    # !!!MUST HAVE DOCKER INSTALLED!!!
    image: 
      name: google/cloud-sdk:159.0.0
      # Optional extra volumes to mount
      volumes:
        ~/AppData/Roaming/gcloud:
            bind: /gcloud
            mode: ro
    
    # Optional: a git repo containing scripts to run
    # mounted in /mnt/.nymbus/template
    # !!!MUST HAVE GIT INSTALLED!!!
    # !!!WORKING JUST IN CASE OF DOCKER!!!
    template:
      repository: git@github.com:nymbus-tools/nymbus.git  # or https://
      tag: feat/init  # or branch (default: master)
    
  # Name of step
  other:
    command: echo ok

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

nymbus-0.0.1.tar.gz (9.5 kB view hashes)

Uploaded Source

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