Sign inSign up

deargle/heroku-cli

By deargle

Updated over 6 years ago

provides heroku cli, and also git and docker-cli so that heroku git and container commands work

Image
0

369

deargle/heroku-cli repository overview

Heroku CLI

This Alpine-based heroku cli docker container also installs git and docker-cli, so that heroku git and heroku container commands work.

Use the container as follows:

docker run --rm \
    -e HEROKU_API_KEY=$HEROKU_API_KEY \
    -e HOME="$PWD" \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v "$PWD:$PWD" \
    -w="$PWD" \
    deargle/heroku-cli:latest
  • docker.sock is mounted so that docker-cli can work
  • HOME is set to PWD so that heroku container:login will save the credentials to a find-able place
  • you should set HEROKU_API_KEY to your heroku api key.

Make a handy-dandy alias:

echo alias heroku="'"'docker run --rm \
    -e HEROKU_API_KEY=$HEROKU_API_KEY \
    -e HOME="$PWD" \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v "$PWD:$PWD" \
    -w="$PWD" \
    deargle/heroku-cli:latest'"'" >> ~/.bashrc

. ~/.bashrc

Tag summary

Content type

Image

Digest

Size

83.1 MB

Last updated

over 6 years ago

docker pull deargle/heroku-cli