Centos安装docker

docker
yum install docker
docker run --name=postgresql-redmine -d --env='DB_NAME=redmine_production' --env='DB_USER=redmine' --env='DB_PASS=password' --volume=/srv/docker/redmine/postgresql:/var/lib/postgresql sameersbn/postgresql:9.4-21
docker run --name=redmine -d --link=postgresql-redmine:postgresql --publish=10083:80 --env='REDMINE_PORT=10083' --volume=/srv/docker/redmine/redmine:/home/redmine/data sameersbn/redmine
docker start postgresql-redmine
docker start redmine
gem install bundler --no-rdoc --no-ri
bundle exec rake redmine:plugins:migrate RAILS_ENV=production
wget http://projects.andriylesyuk.com/attachments/download/563/redmine_scm-0.5.0b.tar.bz2

docker exec -it f852c5a17c03 /bin/zsh

docker pull sameersbn/gitlab:latest
docker run --name=gitlab-postgresql -d --env='DB_NAME=gitlabhq_production' --env='DB_USER=gitlab' --env='DB_PASS=sqeven' --env='DB_EXTENSION=pg_trgm' --volume=/srv/docker/gitlab/postgresql:/var/lib/postgresql sameersbn/postgresql:latest
docker run --name=gitlab-redis -d --volume=/srv/docker/gitlab/redis:/var/lib/redis sameersbn/redis:latest
docker run --name gitlab -d --link gitlab-postgresql:postgresql --link gitlab-redis:redisio --publish 10022:22 --publish 10080:80 --env 'GITLAB_PORT=10080' --env 'GITLAB_SSH_PORT=10022' --env 'GITLAB_HOST=47.92.131.19' --env 'GITLAB_SECRETS_DB_KEY_BASE=long-and-random-alpha-numeric-string' --env 'GITLAB_SECRETS_SECRET_KEY_BASE=long-and-random-alpha-numeric-string' --env 'GITLAB_SECRETS_OTP_KEY_BASE=long-and-random-alpha-numeric-string' --volume /srv/docker/gitlab/gitlab:/home/sqeven/data sameersbn/gitlab:latest
docker start gitlab-redis
docker start gitlab-postgresql
docker start gitlab
yum install python-setuptools
git clone https://github.com/tv42/gitosis.git
python setup.py install
useradd -c 'git version manage' -m -d /home/git -s /bin/bash gitocm
sudo -H -u gitocm gitosis-init < /home/git/id_rsa.pub
sudo chmod 755 /home/git/repositories/gitosis-admin.git/hooks/post-update
git clone gitocm@47.92.131.19:gitosis-admin.git
[group ocm]
writable = ocm
members = victor@ocm.cc recwert@ocm.cc
git remote add origin gitocm@47.92.131.19:ocm.git

#liunx# #centos# #docker#
追加内容 2017-08-17 22:31:12

评论0

  • 没有任何评论
评论请先登录

最近热帖

  1. PPS代理节点池 69664
  2. PPS代理节点池② 26710
  3. 订阅池记录 8023
  4. 基于 Harbor 搭建 Docker 私有镜像仓库 6463
  5. V2ray免费账号 2358
  6. PPS代理节点池③ 2202
  7. 全栈开发笔记 1665
  8. 百度的无刷新搜索之PJAX 1573
  9. css之rem布局(rem.js) 1492
  10. docker swarm 集群高可用 1308

近期热议

  1. GITHUB项目 55
  2. PPS代理节点池 50
  3. WEB代理地址 43
  4. 全栈开发笔记 42
  5. ROBOT机器人之路 31
  6. C++回归之路 19
  7. OCR识别探索 16
  8. PPS代理节点池② 14
  9. DB到ES同步之路 11
  10. 接码平台地址 9