LoginSignup
8
9

More than 1 year has passed since last update.

GitBucket, Gitea, Gogs

Last updated at Posted at 2016-03-09

比較

  • GitBucket
    • イメージサイズ : 320MB
    • メモリ使用量 : 567.4MiB
  • Gitea
    • イメージサイズ : 158MB
    • メモリ使用量 : 175.3MiB
  • Gogs
    • イメージサイズ : 93.9MB
    • メモリ使用量 : 76.13MiB

GitBucket

docker-compose.yml
gitbucket:
  image: gitbucket/gitbucket
  ports:
    - 8080:8080
    # ssh
    - 29418:29418
  volumes:
    - ./data:/gitbucket
    - /etc/localtime:/etc/localtime:ro

Gitea

docker-compose.yml
gitea:
  image: gitea/gitea
  restart: always
  environment:
    - USER_UID=1000
    - USER_GID=1000
    - TZ=Japan
    - SSH_PORT=10022
  ports:
    - "3000:3000"
    - "10022:10022"
  volumes:
    - ./data:/data

メール送信設定

Gogs

docker-compose.yml

docker-compose.yml
gogs:
  image: gogs/gogs:latest
  restart: always
  ports:
    - "3000:3000"
    - "22:22"
  volumes:
    - ./data:/data

gogsのwikiで別ページにリンク

[somepage](wiki/somepage)

リポジトリを削除、作成しwiki.gitをpushする手順

  1. gogs上からリポジトリを削除
  2. gogs上からリポジトリを作成
  3. gogs上からwikiのページをひとまず作成
  4. 端末からgit push -u origin master -f

Diff data too largeへの対策

確認したところ conf/app.ini の設定項目が増えていた。

- MAX_GIT_DIFF_LINE_CHARACTERS = 500
+ MAX_GIT_DIFF_LINE_CHARACTERS = 50000

表示されるようになった。
Config Cheat Sheet - Gogs - Go Git Service

download

起動

./gogs web
  • 初期設定を行う。

ユーザアカウント作成

  • Register -> ユーザ名、メールアドレス、パスワードを入力
    • 確認メールは無いので,適当なメールアドレスで良い。
  • 今後ログインに必要なので忘れないこと。

dockerで動かす

docker-compose.yml
gogs:
  image: gogs/gogs
  restart: always
  ports:
    - "3000:3000"
    - "2222:2222"
  volumes:
    - ./data:/data
  • 設定ファイルは data/gogs/conf/app.ini
data/gogs/conf/app.ini
- SSH_PORT     = 22
+ SSH_PORT     = 2222

リポジトリの移行

  • リポジトリを新しいグループに転送する機能はリポジトリの移行(migrate)を用いる。
  • URLはhttp://localhost:3000/test.gitのように自身を指定可能

スクリーンショット_2016-03-09_17-52-42.png

wikiの移行

  • ディレクトリ内のwikiを手で移行が必要。
8
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
9