discourse安装

安装 Docker / Git

wget -qO- https://get.docker.io/ | sh

安装 Discourse

创建 /var/discourse 文件夹,克隆官方 Discourse Docker 镜像 239至其中,然后在拷贝一个配置文件,并命名为 app.yml:

1
2
3
4
mkdir /var/discourse
git clone https://github.com/discourse/discourse_docker.git /var/discourse
cd /var/discourse
cp samples/standalone.yml containers/app.yml

编辑 Discourse 配置文件

配置文件是 YAML 格式,请不要删除配置项“:”前的内容。

在 app.yml 中编辑 Discourse 配置:

1
vi containers/app.yml

[[email protected] discourse]# ./launcher bootstrap app
Your Docker installation is not using a supported storage driver. If we were to proceed you may have a broken install.
aufs is the recommended storage driver, although zfs and overlay2 may work as well.
Other storage drivers are known to be problematic.
You can tell what filesystem you are using by running “docker info” and looking at the ‘Storage Driver’ line.

If you wish to continue anyway using your existing unsupported storage driver,
read the source code of launcher and figure out how to bypass this check.

vi /usr/lib/systemd/system/docker.service

ExecStart=/usr/bin/dockerd-current
–storage-driver=aufs

docker重启后启动失败Failed to start Docker Application Container Engine.
请把rm -rf /var/lib/docker/一并删除

https://www.orgleaf.com/3098.html

CentOS7配置支持AUFS文件系统

https://www.jianshu.com/p/63fdb0c0659c

[[email protected] discourse]# ./launcher bootstrap app
ERROR: Docker version 1.13.1 not supported, please upgrade to at least 17.03.1, or recommended 17.06.2

wget -qO- https://get.docker.com/ | sh

ls /lib/systemd/system | grep docker
yum list installed | grep docker

yum -y remove docker-ce.x86_64 docker-ce-cli.x86_64 containerd.io.x86_64

git克隆项目的时候出现标题中的错误

1
fatal: unable to access 'xxx.git/': Peer reports incompatible or unsupported protocol version.

安装相关库

1
yum update -y nss curl libcurl