1
0
Fork 0
mirror of https://github.com/overleaf/toolkit.git synced 2025-04-19 15:28:06 +02:00

Allow users to customize the image address. (#138)

* Allow users to customize the image address.

Signed-off-by: siaimes <34199488+siaimes@users.noreply.github.com>

* Change IMAGE_NAME to SHARELATEX_IMAGE_REPO and commented out it by default.

Signed-off-by: siaimes <34199488+siaimes@users.noreply.github.com>

* Change SHARELATEX_IMAGE_REPO to SHARELATEX_IMAGE_NAME.

Signed-off-by: siaimes <34199488+siaimes@users.noreply.github.com>

---------

Signed-off-by: siaimes <34199488+siaimes@users.noreply.github.com>
This commit is contained in:
siaimes 2023-03-20 17:25:47 +08:00 committed by GitHub
parent 4204bad426
commit e9d1657cc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -66,6 +66,7 @@ function __main__() {
if [[ "${SERVER_PRO:-null}" == "true" ]]; then
image_name="quay.io/sharelatex/sharelatex-pro"
fi
image_name="${SHARELATEX_IMAGE_NAME:-${image_name}}"
local full_image_spec="$image_name:$SHARELATEX_IMAGE_VERSION"

View file

@ -3,6 +3,8 @@
PROJECT_NAME=overleaf
# Sharelatex container
# Uncomment the SHARELATEX_IMAGE_NAME variable to use a user-defined image.
# SHARELATEX_IMAGE_NAME=sharelatex/sharelatex
SHARELATEX_DATA_PATH=data/sharelatex
SERVER_PRO=false
SHARELATEX_LISTEN_IP=127.0.0.1