docker-reviewboard

vim deploy_rb.py

docker run --name='gitlab-ce' -d \
       --hostname test1.51du.cn \
       --publish 443:443 \
       --publish 1226:80 \
       --publish 23:22 \
       -p 80:80 \
       --restart always \
       --volume /home/gitlab/config:/etc/gitlab \
       --volume /home/gitlab/logs:/var/log/gitlab \
       --volume /home/gitlab/data:/var/opt/gitlab \
       gitlab/gitlab-ce

# Install postgres
docker run -d \
        --name rb-postgres \
        -e POSTGRES_USER=reviewboard \
        postgres:alpine

# Install memcached
docker run -d \
        --name rb-memcached \
        -p 11211 \
        memcached:alpine

# Create a data container for reviewboard with ssh credentials and media.
docker run \
    -v /root/.ssh \
    -v /media \
    --name rb-data \
    busybox true

# Run reviewboard
docker run -itd \
       --name reviewboard \
       --link rb-postgres:pg \
       --link rb-memcached:memcached \
       --volumes-from rb-data \
       -p 9995:8000 \
       ikatson/reviewboard

测试
http://localhost:9995
用户名: admin
密码: admin

参考
https://github.com/ikatson/docker-reviewboard

展开阅读全文

没有更多推荐了,返回首页