Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fetch-rancher-metadata

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-rancher-metadata

Command-Line utility to fetch and merge JSON data from Rancher metadata service

  • 1.0.34
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
increased by10%
Maintainers
1
Weekly downloads
 
Created
Source

fetch-rancher-metadata

Command-Line utility to fetch and merge JSON data from Rancher metadata service

Install

$ npm install -g fetch-rancher-metadata

Simple get from rancher API

$ fetch-rancher-metadata --get "container/name"
mycontainer_1

Retrieving from stack Rancher-Compose.yml

myService:
  # Scale of service
  scale: 1
  # User added metadata
  metadata:
    config:
      option1: newValue1
      option2: newValue2

Docker container local JSON file (e.g. Application-Config.json)

{
    "option1": "oldValue",
    "option2": "oldValue"
}

Execution within service docker container

$ fetch-rancher-metadata --key "config" --merge "Application-Config.json"

Result (e.g. Application-Config.json)

{
    "option1": "newValue1",
    "option2": "newValue2"
}

Keywords

FAQs

Package last updated on 12 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc