Skip to content

Commit e202075

Browse files
committed
Outsources docker image build to another repo
Building and Publishing Docker images are the same, so I started centralizing them into a single repository. That makes depending on this image as simple as just modifying the name of the image being used.
1 parent a6480ea commit e202075

File tree

6 files changed

+11
-107
lines changed

6 files changed

+11
-107
lines changed

.travis.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

Dockerfile

Lines changed: 0 additions & 24 deletions
This file was deleted.

Makefile

Lines changed: 0 additions & 18 deletions
This file was deleted.

README.md

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# GitLab CLI
22

3-
This provides:
4-
5-
1. A docker image containing [gitlab ruby gem][gem] installed: `augustohp/ore-gitlab-cli`
6-
1. A shell script `gitlab` to be executed as the [gem][] but using Docker
3+
Wraps a [docker image][] containing [gitlab ruby gem][gem] to access
4+
[Gitlab's API][api] through the _command line_.
75

86
[gem]: https://github.com/narkoz/gitlab
7+
[docker image]: https://hub.docker.com/r/augustohp/gitlab-cli
8+
[api]: https://docs.gitlab.com/ee/api/
99

10-
## Usage
11-
12-
Requirements:
10+
You just need:
1311

1412
* [Docker](https://docker.io)
15-
* [JQ](https://stedolan.github.io/jq/)
13+
* [JQ](https://stedolan.github.io/jq/) (optional)
14+
15+
## Usage
1616

1717
Clone this repository with [homesick][] or [homeshick][] and be sure that
1818
`$HOME/bin` is inside your `$PATH`, you will able to:
@@ -40,12 +40,3 @@ Some recipes for you to use:
4040
`$ gitlab projects --json | jq '.result[] | .ssh_url_to_repo' | trim`
4141
* List all repositories from an organization (limited to 250 max)
4242
`$ gitlab group_projects --json gitlab-org "{per_page: '250'}" | jq '.result[] | .path_with_namespace' | trim`
43-
44-
## Development
45-
46-
By *default* the image passes commands after prefixing a `gitlab` on them.
47-
Output is unfiltered. A `Makefile` is provided to avoid manual tasks.
48-
49-
$ make
50-
$ make build
51-
$ make push

docker-gitlab-entrypoint

Lines changed: 0 additions & 34 deletions
This file was deleted.

home/bin/gitlab

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#!/bin/sh
22
#
3-
# Substitutes `php` binary for one executed inside a Docker container.
3+
# Exposes Gitlab API's through a simple shell script, using Docker.
44
#
55
# Author: Augusto Pascutti <[email protected]>
66
# vim: ft=sh noet:
77

88
# Configuration
9-
ORE_IMAGE="augustohp/ore-gitlab-cli"
9+
ORE_IMAGE="augustohp/gitlab-cli"
1010
ORE_VERSION="latest"
11-
ORE_HOME=${ORE_HOME:-$HOME/.ore-home}
11+
ORE_HOME=${ORE_HOME:-$HOME/.ore/gitlab-cli}
1212
GITLAB_API_ENDPOINT=${GITLAB_API_ENDPOINT:-"https://gitlab.com/api/v4"}
1313
GITLAB_API_PRIVATE_TOKEN=${GITLAB_API_PRIVATE_TOKEN:-""}
1414

0 commit comments

Comments
 (0)