Coder Social home page Coder Social logo

gitolite-docker's Introduction

Gitolite Docker

Gitolite container Install

  • clone this repository: git clone https://github.com/eviweb/gitolite-docker.git
  • add your ssh public key in gitolite-docker/.user-keys directory if needed, otherwise a default key will be generated and named as the value of the $USER environment variable
  • run the build file gitolite-docker/build

This will build an image named gitolite-docker

SSH Configuration

In order to use a container as a gitolite server, you need to configure your ssh client. This is done by adding some settings in you ssh configuration file: ~/.ssh/config

As an example:

we assume that:

  • the username is: user
  • gitolite-docker repository was cloned under: ~/gitolite-docker
  • the ssh configuration file is: ~/.ssh/config
  • the ssh port will be mapped to the local port: 2222
  • no personal ssh public key was provided, so the ssh key to use is: ~/gitolite-docker/.user-keys/user
Host gitolite-docker
	Port 2222
	Hostname localhost
	User git
	IdentityFile ~/gitolite-docker/.user-keys/user.pub

Create a container

To serve gitolite

Run the command: docker run -d -p 2222:22 --name=gitolite-docker -ti gitolite-docker:latest

This will create a container named gitolite-docker.

Then you should be able to clone the gitolite-admin repository by running: git clone git@gitolite-docker:gitolite-admin -- You should be prompted to valid the server ssh key during the first connection

To run a command

Run the command: docker run --name=gitolite-test-runner gitolite-docker:latest "YOUR QUOTED COMMAND" where "YOUR QUOTED COMMAND" is the command to run... Between quotes !

Example: docker run --name=gitolite-test-runner gitolite-docker:latest "cd gitolite && GITOLITE_TEST=y prove" which will run all gitolite tests.

gitolite-docker's People

Contributors

publicocean0 avatar eviweb avatar

Watchers

James Cloos 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.