An open API service indexing awesome lists of open source software.

https://github.com/technosophos/trello-cli

Dockerizer for Trello CLI
https://github.com/technosophos/trello-cli

brigade docker-image kubernetes trello

Last synced: about 2 months ago
JSON representation

Dockerizer for Trello CLI

Awesome Lists containing this project

README

          

# trello-cli Dockerfile

This is a Dockerfile for the [trello-cli](https://github.com/mheap/trello-cli)
commandline client for [Trello](https://trello.com/).

## Building

To build this:

```
make docker-build
```

To push to a registry:

```
make docker-push
```

## Configuration

You will need to setup your API keys to access your Trello boards. To get your
keys, head [over here](https://trello.com/app-key).

The easest way to configure credentials is to set the environment variable `$APIKEY`
to the API Key Trello gives you, then generate a token and add it as the env
var `$TOKEN`.

From there run `env2creds` in the container to generate the credentials.

_You are strongly encouraged to run `trello refresh` before doing anything_

In [brigade](http://brigade.sh), it looks like this:

```javascript
const { events, Job } = require("brigadier");

events.on("exec", (e, p) => {
trello = new Job("trello", "technosophos/trello-cli:latest")
trello.env = {
APIKEY: p.secrets.TRELLO_APIKEY,
TOKEN: p.secrets.TRELLO_TOKEN
}

trello.tasks = [
"env2creds",
"trello refresh",
"trello show-boards -i"
];

trello.run().then( res => {
console.log(res.toString());
});

});

```