我试图安装 Discourse Math 插件。这是我安装的第一个插件。Discourse 运行在 GCP 上一台配置非常有限的虚拟机上。
我按如下方式编辑了 app.yml 文件:
hooks:
after_code:
- exec:
cd: $home/plugins
cmd:
- git clone https://github.com/discourse/docker_manager.git
- git clone https://github.com/discourse/discourse-math.git
运行 ./launcher rebuild app 后,我的虚拟机返回了以下消息,抱怨内存不足,而我的插件仍未出现在 Discourse 设置中,看来并未成功安装。以下消息是否意味着由于内存不足,实际上没有任何操作发生?我很惊讶 5 GB 的空间竟然不够下载插件。有什么方法可以检查下载是否发生?还是说只是我的 app.yml 编辑得不正确?
root@discourse-gcp1:/var/discourse# ./launcher rebuild app
WARNING: We are about to start downloading the Discourse base image
This process may take anywhere between a few minutes to an hour, depending on your network speed
Please be patient
2.0.20200512-1735: Pulling from discourse/base
Digest: sha256:7f6c5be23a8e4237cecafaca9d041de5964f8237345b7b183cebdee1f73ed024
Status: Downloaded newer image for discourse/base:2.0.20200512-1735
docker.io/discourse/base:2.0.20200512-1735
You have less than 5GB of free space on the disk where /var/lib/docker is located. You will need more space to continue
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 9.6G 5.3G 4.4G 55% /
Would you like to attempt to recover space by cleaning docker images and containers in the system?(y/N)y
If the cleanup was successful, you may try again now
root@discourse-gcp1:/var/discourse#