Skip to content
A plugin for the Azure/Brigade brig CLI tool.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
.codeclimate.yml
.travis.yml
CODE_OF_CONDUCT.md
Dockerfile
LICENSE
README.md

README.md

asdf-brig

Build Status

Installation

This is a plugin for the asdf project. To use this plugin, first install asdf.

Then, install the plugin:

asdf plugin-add brig

Usage

This plugin works just like all other asdf plugins. If you're unfamiliar with asdf, take a look at their docs.

TLDR;

root@313545a3a332:/# asdf install brig v0.18.0
root@313545a3a332:/# asdf global brig v0.18.0
root@313545a3a332:/# brig version
v0.18.0
root@313545a3a332:/# asdf install brig v0.17.0
root@313545a3a332:/# brig version
v0.18.0
root@313545a3a332:/# ASDF_BRIG_VERSION=v0.17.0 brig version
v0.17.0

Development

We provide a docker container that provides a sandbox for testing the asdf logic without affecting your local environment.

To test the plugin inside the Docker container, execute these commands in this repository.

docker build -t asdf-test:dev .
docker run -it --rm -v `pwd`:/root/.asdf/plugins/brig --entrypoint bash asdf-test:dev

Then you'll be in a docker container where you can test this logic out. Note that we mount through the code into the plugins directory for testing.

root@4f0d69e8bea6:/# asdf install brig v0.18.0
Downloading brig from https://github.com/Azure/brigade/releases/download/v0.18.0/brig-linux-amd64 to /tmp/brig_Mi057PX/brig-v0.18.0
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   607    0   607    0     0   1653      0 --:--:-- --:--:-- --:--:--  1649
100 30.8M  100 30.8M    0     0  2464k      0  0:00:12  0:00:12 --:--:-- 4997k
Creating bin directory
Cleaning previous binaries
Copying binary
root@4f0d69e8bea6:/# asdf list brig
  v0.18.0
You can’t perform that action at this time.