Overleaf

Administrator
发布于 2023-12-29 / 11 阅读
0
0

Overleaf

Overleaf

1. Overleaf docker 搭建

安装docker

安装最新版的docker,需要删除旧的docker

	sudo yum remove docker \
	                  docker-client \
	                  docker-client-latest \
	                  docker-common \
	                  docker-latest \
	                  docker-latest-logrotate \
	                  docker-logrotate \
	                  docker-engine
	
	curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun

参考菜鸟教程即可

安装overleaf

参考 github overleaf docker

	git clone https://github.com/overleaf/toolkit.git ./overleaf-toolkit
	
	cd ./overleaf-toolkit
	
	bin/init

中文支持参考 Docker部署Overleaf包含中文字体与全套texlive镜像

修改lib下的docker-compose.base.yml

	[john-y@cvm-3kranas2da225 overleaf-toolkit]$ git diff
	diff --git a/lib/docker-compose.base.yml b/lib/docker-compose.base.yml
	index af68577..04aec73 100644
	--- a/lib/docker-compose.base.yml
	+++ b/lib/docker-compose.base.yml
	@@ -4,7 +4,7 @@ services:
	 
	     sharelatex:
	         restart: always
	-        image: "${IMAGE}"
	+        image: "wrm244/sharelatex:with-texlive-full"
	         container_name: sharelatex
	         volumes:
	             - "${SHARELATEX_DATA_PATH}:/var/lib/sharelatex"

启动docker,等待即可使用

	bin/up
	
	http://localhost/launchpad.


评论