Sign inSign up

exalif/cli

By exalif

•Updated almost 6 years ago

Exalif CLI

Image
0

1.9K

exalif/cli repository overview

⁠Exalif CLI

CLI to do some magic stuff on Rancher and K8s. Originally intended to be used from gitlab CI.

Build Status Coverage Status

⁠Requirements

  • node 10
  • Rancher CLI >2.0.0
  • kubectl

Note: all these dependencies are already embedded when using official exalif/cli docker image.

⁠Usage

⁠General usage

docker run --rm -v $(pwd):/data exalif/cli COMMAND [ARGUMENTS]

⁠List available commands

You can use docker run --rm exalif/cli help to get full set of commands.

⁠Mandatory options

Some options are required for any command:

  • --orchestrator-url: url of your Rancher installation
  • --orchestrator-access-key: access key configured in your Rancher installation
  • --orchestrator-secret-key: secret key configured in your Rancher installation

⁠Use environment variables

Every cli options can be provided by environment variables in uppercase and prefixed with EXALIF_.

Environment variables can be store on proper files (e.g: ~/.bashrc or ~/.bash_profile) or provided at docker run level.

Example:

docker run --rm -e EXALIF_ORCHESTRATOR_ACCESS_KEY=rancherAccessKey ...

⁠Override configuration

You can override config.js configuration by mounting apprioriate file in docker /app/config directory.

Tag summary

Content type

Image

Digest

Size

55.5 MB

Last updated

almost 6 years ago

docker pull exalif/cli