Now that the git bridge exclusively uses personal access tokens in
ServerPro, it doesn't need to perform a password grant request and
therefore doesn't need to have its OAuth client id and secret
configured.
When killing a `docker compose exec` process with Compose v2, the kill
signal somehow doesn't propagate to the process running inside the
container. As a workaround, we collect the PIDs from inside the
container when we start a process in the background and kill the
processes from inside the container at the end.
Most of our service logs are found inside the sharelatex container in
/var/sharelatex/logs, but some service logs (for mongo, redis,
git-bridge) are found in the container logs. The bin/logs script can now
show both types of logs.
In addition, the -n option, which controls how many lines of logs are
output now accepts the string "all" to make it easy to show all
available logs for a given service.
This is meant to be used to easily extract logs with:
bin/logs -n all service > service.log
The default location of the data directory inside the git-bridge
container is /tmp/wlgb, but the data it contains should not be
considered temporary. In order to avoid any misunderstanding that would
lead an administrator to delete the contents of the /tmp directory, we
move the data directory to /data/git-bridge.
The config seed was mistakenly setting the GIT_BRIDGE_ENABLED variable
to true rather than false. We want git bridge to be enabled manually
because users also have to set a secret for it to work correctly.
This adds a new docker compose configuration for git bridge. This
configuration is loaded only when GIT_BRIDGE_ENABLED is set to true in
config/overleaf.rc
Co-authored-by: Thomas Mees <thomas.mees@overleaf.com>
* 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>