Giter Site home page Giter Site logo

ghi-docker's Introduction

ghi-docker - GitHub Issues via Docker Container

I needed ghi, but don't have the ability in some environments to install ruby and every dependency for ghi. Creating a very small container based on the Alpine image makes it very small and easy to maintain.

Set up

Pull down the docker/alpine image so it's local:

docker pull alpine:3.4

Modify the Dockerfile if necessary

Build your image:

make build

Add an alias to your .profile or .bashrc file and source it:

alias ghi='docker run -it --rm -v $(pwd):/share gpratt/ghi'
. ~/.profile

Run

Note: You don't attach to the container, it runs from whatever directory you're in.

When you run ghi, here's what's happening:

  • The alias causes docker to create a temporary container
  • The container runs ghi
  • The container is removed after execution

Execute ghi:

gpratt@docker:~/ruby$ ghi
usage: ghi [--version] [-p|--paginate|--no-pager] [--help] <command> [<args>]
           [ -- [<user>/]<repo>]

The most commonly used ghi commands are:
   list        List your issues (or a repository's)
   show        Show an issue's details
   open        Open (or reopen) an issue
   close       Close an issue
   edit        Modify an existing issue
   comment     Leave a comment on an issue
   label       Create, list, modify, or delete labels
   assign      Assign an issue to yourself (or someone else)
   milestone   Manage project milestones
   status      Determine whether or not issues are enabled for this repo
   enable      Enable issues for the current repo
   disable     Disable issues for the current repo

See 'ghi help <command>' for more information on a specific command.
gpratt@docker:~/ghi-docker$ ghi status
Issues are enabled for this repo

ghi-docker's People

Contributors

gpratt3151 avatar

Watchers

 avatar  avatar

Forkers

mrobinsn

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.