Code Monkey home page Code Monkey logo

gitlab-shell's Introduction

gitlab-shell: ssh access and repository management

GitLab Shell is an application that allows you to execute git commands and provide ssh access to git repositories. It is not a Unix shell nor a replacement for Bash or Zsh.

Code status

CI Build Status Code Climate Coverage Status

Requires ruby 1.9+

Setup

./bin/install

Check

./bin/check

Repos

Add repo:

./bin/gitlab-projects add-project gitlab/gitlab-ci.git

Remove repo:

./bin/gitlab-projects rm-project gitlab/gitlab-ci.git

List repos:

./bin/gitlab-projects list-projects

Import repo:

# Default timeout is 2 minutes
./bin/gitlab-projects import-project randx/six.git https://github.com/randx/six.git 

# Override timeout in seconds
./bin/gitlab-projects import-project randx/six.git https://github.com/randx/six.git 90

Fork repo:

./bin/gitlab-projects fork-project gitlab/gitlab-ci.git randx

Update HEAD:

./bin/gitlab-projects update-head gitlab/gitlab-ci.git 3-2-stable

Create branch:

./bin/gitlab-projects create-branch gitlab/gitlab-ci.git 3-2-stable master

Remove branch:

./bin/gitlab-projects rm-branch gitlab/gitlab-ci.git 3-0-stable

Create tag (lightweight & annotated):

./bin/gitlab-projects create-tag gitlab/gitlab-ci.git v3.0.0 3-0-stable 
./bin/gitlab-projects create-tag gitlab/gitlab-ci.git v3.0.0 3-0-stable 'annotated message goes here'

Remove tag:

./bin/gitlab-projects rm-tag gitlab/gitlab-ci.git v3.0.0

Keys

Add key:

./bin/gitlab-keys add-key key-782 "ssh-rsa AAAAx321..."

Remove key:

./bin/gitlab-keys rm-key key-23 "ssh-rsa AAAAx321..."

List all keys:

./bin/gitlab-keys list-keys

Remove all keys from authorized_keys file:

./bin/gitlab-keys clear

Docker image development and testing

Development image name: gitlab-shell Change /mnt/src to repository dir.

# [Optional] Kill and cleanup all running container and image
docker kill gitlab
docker rm gitlab
docker rmi rhmap/gitlab-shell

# Build image
docker build -t rhmap/gitlab-shell .

# Start container
docker run  --name=gitlab -p 8022:22 -v /mnt/src:/home/git/repositories rhmap/gitlab-shell
docker ps | grep gitlab

# See apache logs
docker logs -f gitlab

# Connect for debugging
docker exec -it gitlab bash

gitlab-shell's People

Contributors

aigeruth avatar akzhan avatar amacarthur avatar asedge avatar attiks avatar david-martin avatar dex4er avatar dosire avatar dzaporozhets avatar grdryn avatar jacobvosmaer avatar jasonmadigan avatar javex avatar jobv avatar jsternberg avatar jvanbaarsen avatar maleck13 avatar mcfedr avatar mikenairn avatar nialldonnellyfh avatar popl7 avatar raphendyr avatar redorkulated avatar rhcarvalho avatar senny avatar smashwilson avatar thomasbiddle avatar uniisland avatar wtrocki avatar zzet avatar

Watchers

 avatar

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.