GitLab6セットアップガイド.pdf

Similar documents
A : kerl kerl Erlang/OTP Erlang/OTP 2 2 Elixir/Phoenix URL 2 PDF A.2 Bash macos.bash_profile exp

9 rbenv rbenv ruby 9.1 rbenv rbenv rbenv ruby ruby-build ruby 9.2 rbenv macos.bash_profile ~/.bash_profile ~/.bash_profile.bak $ touch ~/.bash_profile

ii

GitLab + Dokku で作る CI/ CD 環境 Kazuhiro NISHIYAMA 第 78 回 Ruby 関西勉強会 2017/07/29 Powered by Rabbit 2.2.0

BIGLOBE クラウドホスティング 開発お役立ちパック GitLab 利用マニュアル 1.0 版 (2013 年 7 月 3 日 ) ビッグローブ株式会社 1 Copyright 2013 BIGLOBE. All Rights Reserved

PostgreSQLによる データベースサーバ構築技法

bash on Ubuntu on Windows bash on Ubuntu on Windows bash on Ubuntu on Windows bash on Ubuntu on Windows bash on Ubuntu on Windows ˆ Windows10 64bit Wi

IIJ Technical WEEK アプリ開発を楽にするRuby PaaS「MOGOK」について

dvi

w w w 2

untitled

Docker Haruka Iwao Storage Solution Architect, Red Hat K.K. February 12, 2015

etrust Access Control etrust Access Control UNIX(Linux, Windows) 2

HP OpenSource ブループリント

Add-onアプリケーション開発 - 環境構築マニュアル -

CentOSv2_furoku

Agenda 2

Ansible

syspro-0405.ppt

w w 2


PowerPoint Presentation

目次 1. Serverspec とは 1.1. Serverspecとは 1.2. Serverspecで出来る事 2. セットアップ 2.1. 必要なもの 2.2. インストール 3. デモ 3.1. デモ環境について 3.2. テスト対象サーバーの登録 3.3. サンプルテストの中身 3.4.


GNU Emacs GNU Emacs

untitled

slice00_install.dvi

自己紹介 とみたまさひろプログラマー (Ruby & C) 日本 MySQLユーザ会代表

Asterisk PBX 不正利用防止

演習に必要な

第3回_416.ppt

unix.dvi

Northern Lights Server

PowerPoint プレゼンテーション

JC オンライン投稿の操作方法について(mac) 2011_9 FINAL

Microsoft Word - # _Quick_Install_Guide_Final.doc

WebOS aplat WebOS WebOS 3 XML Yahoo!Pipes Popfry UNIX grep awk XML GUI WebOS GUI GUI 4 CUI

ii II Web Web HTML CSS PHP MySQL Web Web CSS JavaScript Web SQL Web

CMS入門


1 1 CentOS Java JDK(JavaSE Development Kit)......

スライド 1

untitled

# mv httpd tar.gz /usr/local/src /usr/local/src # tar zxvf httpd tar.gz make #./configure # make # make install Apache # /usr/local/apac

Emacs Ruby..

2. Docker の基本的な操作 1 docker hub の参照 2 DockerHub の Explorer リンクからアプリケーションを参照 3 アプリケーション検索 4 tag について 3. docker 基本コマンド 1 docker の

¥×¥í¥°¥é¥ß¥ó¥°±é½¬I Exercise on Programming I [1zh] ` `%%%`#`&12_`__~~~ alse

Agenda! 事前準備


別紙 : 検証環境の構築手順 ( 章 ) 1. サーバ設定 1.1 IP アドレス設定 サーバは以下の 6 台を用いる pgpool-ii サーバ 2 台 DB サーバ 3 台 上位サーバ 1 台 OS は全サーバで CentOS 6.4 x86_64 とする pgpool-ii のサー

4 $ alias elixirc="elixirc --ignore-module-conflict" warning redefining module User (current version loaded from Elixir.User.beam) user.ex1 User alias

FileMaker Server 8 Administrator’s Guide

_‚Ofl¼

Actual ESS Adapterの使用について

+ Octopress + GitHubPages でブログを作成 Name: さりんじゃー

E2 Spider 2018/08/03 Intel NUC Core i7 PC 2.5 /M.2 SSD BOXNUC7I7BNH PC DDR4-2133(PC ) 8GBX2 260pin 1.2V CL15 SP016GBSFU213B22 WD SSD M /51

,, create table drop table alter table

バージョン管理ツールを使い Debian パッケージを管理する - Git 編

Sybase on CLUSTERPRO for Linux HowTo

DCL intro Manual for Ubuntu11.10

RouteMagic Controller( RMC ) 3.6 RMC RouteMagic RouteMagic Controller RouteMagic Controller MP1200 / MP200 Version 3.6 RouteMagic Controller Version 3

_IMv2.key

利用者

RouteMagic Controller RMC-MP200 / MP Version

Web apache

untitled

test

ruby novice ruby novice ruby novice.

X Window System X X &

利用者

IIJ GIO, SaaS, MOGOK

UNIX

Microsoft Word - D JP.docx

Introduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for

復習 (SQL 文 ) 3/6 復習 (SQL 文 ) 4/6 表の作成 CREATE TABLE...; 表の削除 DROP TABLE テーブル名 ; 表内のデータが全て消えてしまう. 表内のデータを得る SELECT 列名 FROM 表名...; 表にデータを挿入する. INSERT INTO

名称未設定


4D Draw

FileMaker Server Getting Started Guide

1 ex01.sql ex01.sql ; user_id from (select user_id ;) user_id * select select (3+4)*7, SIN(PI()/2) ; (1) select < > from < > ; :, * user_id user_name

スライド 1

Abstract Journal of Agricultural Science 2

untitled

Calpont InfiniDBマルチUM同期ガイド

help gem gem gem my help

環境セットアップ

スライド 0

WLX202 操作マニュアル

untitled

日本オラクル株式会社

グローバル タイトル変換テーブルの編集

Mail_Spam_Manual_120815b

Alibaba Cloud [ ナレッジドキュメント ] AWS EC2 から Alibaba Cloud ECS へのマイグレーション手順 (Linux_PostgreSQL 版 ) AWS EC2 から Alibaba Cloud ECS への マイグレーション手順 (Linux_Postgre

WordPress Web

-2 gnuplot( ) j ( ) gnuplot /shell/myscript 1

RouteMagic Controller RMC-MP200 / MP Version

FileMaker ODBC and JDBC Guide

RTX830 取扱説明書

HeartCoreインストールマニュアル(PHP版)

ソフトウェアエンジニアリング - 機能 #14

Transcription:

GITLAB6 Macbook pro OS X Mountain Lion 10.8.5 2013/09/30 By Jack http://prometa.seesaa.net

GitLab6 Git Git GitLab Git Git Shell Git Git GitLab6 Xcode Homebrew rbenv ruby-build Ruby Ruby on Rails icu4c MySQL Redis Git GitLab Shell GitLab charlock_holmes python2 Mac SSH Mac GitLab6 Ruby on Rails Ruby Git... brew update

Xcode Xcode MacIDE MAC App Store Xcode Xcode Xcode Xcode Preferences Downloads Command Line Tools ( ) Xcode 2

Mac MAC 3

Homebrew Homebrew Mac Unix Ruby Perl http://brew.sh WEB Install Homebrew WEB Homebrew 0.9.4 ruby -e "$(curl -fssl https://raw.github.com/mxcl/homebrew/go)" root sudo brew -v 4

rbenv ruby-build rbenv Ruby ruby-build rbenv rbenv 0.4.0 Ruby brew update brew install rbenv brew install ruby-build echo 'eval "$(rbenv init -)"' >> ~/.bash_profile. ~/.bash_profile rbenv -v 5

Ruby Ruby Ruby 2.0.0-p247 GitLab6 Ruby 1.8x rbenv install -l Ruby rbenv install 2.0.0-p247 rbenv global 2.0.0-p247 ruby -v gem install bundler bundler rbenv rehash rbenv shims Ruby 6

Ruby on Rails Rails Ruby on Rails Web Ruby on Rails Rails Ruby GitLab6 Rails gem update Ruby gem install rails --no-ri --no-rdoc rbenv rehash gem Ruby --no-ri --no-rdoc gem rdoc --all --ri Rails 4.0.0 rails -v 7

icu4c ICU 4c C Unicode / / / / icu4c GitLab6 charlock_holmes icu4c-51.1 icu4c-51.2 charlock_holmes brew update brew install icu4c brew link icu4c --force 8

MySQL MySQL Git mysql-5.6.13 5.6.13 brew update brew install mysql cd ~/Library/LaunchAgents cp /usr/local/cellar/mysql/5.6.13/homebrew.mxcl.mysql.plist. launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist 9

Redis Redis redis-2.6.16 2.6.16 brew update brew install redis cd ~/Library/LaunchAgents cp /usr/local/cellar/redis/2.6.16/homebrew.mxcl.redis.plist. launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.redis.plist 10

Git 0.9.5 Git brew update brew install git 11

Git dscl. -list /Users UniqueID sort -k 2 -n ID ID ID Git Mac ID ID git ID GroupID Git GroupID dscl. -list /Groups PrimaryGroupID sort -k 2 -n ID ID ID 500 daemon _ Git ID 1000 Git sudo dscl. -create /Groups/git PrimaryGroupID 1000 git 1000 ID UniqueID Git ID 504 Git sudo dscl. -create /Users/git UniqueID 504 sudo dscl. -create /Users/git PrimaryGroupID 1000 sudo dscl. -create /Users/git UserShell /bin/bash sudo dscl. -create /Users/git NFSHomeDirectory /Users/git sudo dscl. -create /Users/git Password "< > sudo mkdir /Users/git sudo chown -R git:git /Users/git git 504 GitLab GitLab 504 505 git gitlab chown git:git gitlab:git Git Git cd /Users/git sudo -u git vi.bash_profile vi export PATH="/usr/local/bin:$PATH" if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi bash ~/.bash_profile Git UniqueID 12

GitLab Shell GitLab Shell Git Git SSH config.yml gitlab_url: "http://0.0.0.0:3000/" repos_path: "/Users/git/repositories" auth_file: "/Users/git/.ssh/authorized_keys" cd /Users/git/gitlab GitLab bundle exec rails s -e production GitLab GitLab control+c sudo -i -u git Git cd ~ Git Home git clone https://github.com/gitlabhq/gitlab-shell.git GitLab Shell cd gitlab-shell vi /Users/git/gitlab-shell/lib/gitlab_config.rb /home/git /Users/git more VERSION VERSION 1.7.1 git checkout v1.7.1 git checkout -b v1.7.1 cp config.yml.example config.yml vi config.yml /Users/git/gitlab-shell./bin/check Check GitLab API access: OK Check directories and files: /Users/git/repositories: OK /Users/git/.ssh/authorized_keys: OK./bin/install GitLab Shell./bin/install:3: undefined method `require_relative' for main:object (NoMethodError) Ruby sudo -i -u git rbenv install 2.0.0-p247 rbenv global 2.0.0-p247 rbenv rehash./bin/install 13

MySQL MySQL GitLab CREATE DATABASE `gitlabhq_production` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`; GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `gitlabhq_production`.* TO 'gitlab'@'localhost'; GitLab quit; MySQL mysql_secure_installation Enter current password for root (enter for none): Set root password? [Y/n] Y sudo -u git -H mysql -u gitlab -p -D gitlabhq_production GitLab MySQL New password: Re-enter new password: Remove anonymous users? Y Disallow root login remotely? Y Remove test database and access to it? Y Reload privilege tables now? Y mysql -u root -p MySQL CREATE USER 'gitlab'@'localhost' IDENTIFIED BY ' '; GitLab SQL SQL SELECT User, Host FROM mysql.user; SQL DROP USER 'gitlab'@'localhost'; 14

GitLab GitLab Git sidekiq sidekiq gem sudo -i -u git cd /Users/git/gilt mkdir tmp/pids exit sudo -u git -H bundle exec rake sidekiq:start RAILS_ENV=production GitLab GitLab sudo -i -u git cd ~ git clone https://github.com/gitlabhq/gitlabhq.git giltlab GitLab mkdir /Users/git/gitlab-satellites sudo -u git -H git config --global user.name "GitLab" sudo -u git -H git config --global user.email "gitlab@localhost" sudo chown -R gitlab /Users/git/gitlab/log sudo chmod -R u+rwx /Users/git/gitlab/log sudo chown -R gitlab /Users/git/gitlab/tmp sudo chmod -R u+rwx /Users/git/gitlab/tmp sudo chown -R gitlab /Users/git/gitlab-satellites sudo chown -R gitlab /Users/git/gitlab/config/gitlab.yml sudo chown -R gitlab /Users/git/gitlab/config/unicorn.rb cp config/gitlab.yml.example config/gitlab.yml cp config/database.yml.mysql config/database.yml cp config/unicorn.rb.example config/unicorn.rb vi config/gitlab.yml user: git gitlab: host: localhost git: bin_path: /usr/bin/git satellites: /home/git/gitlab-satellites/ /Users/git/gitlab-satellites gitlab_shell: repos_path: /home/git/repositories/ /Users/git/repositories/ gitlab_shell: hooks_path: /home/git/gitlab-shell/hooks/ /Users/git/gitlab-shell/hooks/ vi config/database.yml production: username: password: MySQL gitlab host: localhost socket: /tmp/mysql.sock config/unicorn.rb sudo ln -s /usr/bin/python /usr/bin/python2 15

GitLab GitLab Git sudo su mkdir /etc/init.d cd /Users/git/gitlab sudo cp lib/support/init.d/gitlab /etc/init.d/gitlab sudo chmod +x /etc/init.d/gitlab GitLab python2 sidekiq GitLab GitLab sudo -i -u git cd gitlab bundle install --deployment --without development test postgres gem install charlock_holmes rbenv rehash login...admin@local.host password...5ivel!fe Access denied for user 'root'@'localhost' (using password: YES) rake aborted MySQL GitLab gitlab config/database.yml username password sudo -i -u git cd /Users/git/gitlab bundle exec rake gitlab:check RAILS_ENV=production GitLab 16

SSH SSH GitLab sudo -i -u git cd /Users/git/gitlab bundle exec rails s -e production URL URL URL http://0.0.0.0:3000 SSH sudo vi /etc/sshd_config RSAAuthentication yes ubkeyauthentication yes PermitRootLogin no PermitUserEnvironment yes SSH Ruby env grep -E "^(GEM_HOME PATH RUBY_VERSION MY_RUBY_HOME GEM_PATH)=" > /var/tmp/tempenv sudo -u git -H cp /var/tmp/tempenv /Users/git/.ssh/environment SSH sudo -i -u git ssh-keygen -t rsa -C localhost cat ~/.ssh/id_rsa.pub GITLAB6 GitLab admin@local.host 5iveL!fe Welcome to GitLab! GITLAB6 id_rsa.pub Profile [ Add SSH Key ] Title ssh Key [ Add Key ] /Users/git/gitlab-shell/bin/gitlab-shell:8: undefined method `require_relative' for main:object (NoMethodError) which ruby which gem $PATH unless: command not found puts: command not found Mac Ruby Ruby Ruby SSH Mac Ruby 1.8.7 17

GitLab GITLAB6 GitLab sudo -i -u git cd /Users/git/gitlab bundle exec rails s -e production Project name is Namespace gitlab Description [ Create project ] http://0.0.0.0:3000 GITLAB6 [ New Project ] 18

GitLab GitLab Git sudo -i -u git Git cd /Users/git/repositories/root Git mkdir clone_test cd clone_test git clone git@localhost:root/sample_project.git sample_project git@localhost:root/sample_project.git GITLAB6 Jack http://prometa.seesaa.net 19