Coder Social home page Coder Social logo

git-server-docker's Introduction

git-server-docker

介绍

这是一个 git server docker image,用于快速部署 git 服务器, 请使用 docker-compose 跑起来

使用说明

  1. 执行命令授予执行脚本权限:sed -i -e 's/\r$//' *.sh && chmod -R 755 *.sh
  2. 运行 ./run-docker.sh 【注:docker-compose 低版本识别不了 .env,需要进行升级,作者用的版本是: 1.29.2】
  3. 查看日志: docker logs qiushaocloud-git-server
  4. 当前目录 repos 映射进容器里
  5. 当前目录 keys 映射进容器里, 里面存放拉取代码的公钥,每次更新需要重启下 docker
  6. 创建repo: 进入容器里面,到 /git-server/repos 执行sh init-repo.sh myrepo.git
  7. 克隆代码:git clone ssh://git@<ip-docker-server>:2222/git-server/repos/myrepo.git

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

分享者信息

  1. 分享者邮箱: [email protected]
  2. 分享者网站
  3. 分享者自己搭建的 gitlab
  4. 分享者 gitee
  5. 分享者 github

git-server-docker's People

Contributors

qiushaocloud 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.