1
0
Fork 0
mirror of https://github.com/overleaf/toolkit.git synced 2025-04-19 23:38:06 +02:00
Commit graph

85 commits

Author SHA1 Message Date
Jakob Ackermann
2fff47d1fe
Add config option for skipping docker pull before upgrading 2025-01-06 12:43:52 +00:00
Miguel Serrano
5937a49abd
bin/upgrade: issue warning on custom image (#314)
* `bin/upgrade`: issue warning on custom image (#314)

* prevent version to be added twice to GIT_BRIDGE_IMAGE


---------

Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>
2024-11-19 12:52:53 +01:00
Jakob Ackermann
e611552228
Pull new images from bin/upgrade ahead of stopping containers 2024-10-29 15:33:28 +00:00
Jakob Ackermann
e02db459c6
Append version to GIT_BRIDGE_IMAGE 2024-10-23 12:21:41 +01:00
Jakob Ackermann
233354d840
Print warning when running "bin/up" without detach mode (#292) 2024-09-24 10:31:35 +01:00
Jakob Ackermann
f2bbfc9a3e
Merge remote-tracking branch 'origin/master' into jpa-loud-warning 2024-09-11 09:37:41 +01:00
Jakob Ackermann
5c2987acec
Add config option for making application logs available on docker host 2024-09-03 12:09:42 +01:00
Jakob Ackermann
8074eaafd5
Avoid printing warning messages twice -- bin/up does not print itself 2024-08-30 17:40:02 +01:00
Jakob Ackermann
0d20898a9a
Update warning message 2024-08-30 17:23:07 +01:00
Jakob Ackermann
0b555f07b7
Downgrade error for using sandboxed compiles in CE to warning 2024-08-30 17:20:06 +01:00
Jakob Ackermann
293c8366ba
Loud warning for SIBLING_CONTAINERS_ENABLED=false 2024-08-28 13:19:00 +01:00
Jakob Ackermann
33bfae424e
Surface MONGO_VERSION from bin/doctor 2024-08-27 08:38:20 +01:00
Miguel Serrano
288d5f07a1
Added bin/run-script (#277)
* Added `bin/run-script`

Facilitates the process of running web scripts
2024-08-02 11:25:34 +02:00
Jakob Ackermann
3e91fad9c0
Sandboxed Compiles is available for Server Pro only 2024-07-29 17:02:28 +01:00
Miguel Serrano
4ad2a340e1
Fix URL for Redis AOF docs 2024-07-18 12:11:56 +02:00
mserranom
172e79fb20 Updated link 2024-07-17 10:42:44 +02:00
mserranom
2c402d8bc0 Added REDIS_AOF_PERSISTENCE option to config/overleaf.rc 2024-07-17 10:40:23 +02:00
mserranom
73661ed2b1 Add support for Mongo 6 2024-07-16 15:50:42 +02:00
Jakob Ackermann
e0c561bec7
Merge remote-tracking branch 'origin/master' into jpa-docker-deprecation 2024-06-24 08:58:03 +01:00
Jakob Ackermann
3ea3f4f7c1
bin/doctor: Add deprecation warning for Docker older than v23 2024-06-21 12:36:49 +01:00
Jakob Ackermann
0866bfed25
bin/doctor: Add deprecation warning for usage of docker-compose v1 2024-06-21 12:11:29 +01:00
Jakob Ackermann
5ad4f10137
Add deprecation warning for usage of docker-compose v1 2024-06-21 11:52:06 +01:00
Jakob Ackermann
91851d8887
bin/up: pull TeX Live images before starting up 2024-05-28 09:00:39 +01:00
Jakob Ackermann
b2adfe52af
bin/doctor: warn about using docker installed via snap 2024-05-08 16:37:18 +01:00
Jakob Ackermann
b70eb528e4
Revert "Revert "Update retraction of Server Pro 5.0.1" (#244)"
This reverts commit 2027c3ce4b.
2024-04-24 11:41:12 +01:00
Miguel Serrano
2027c3ce4b
Revert "Update retraction of Server Pro 5.0.1" (#244) 2024-04-22 13:28:34 +02:00
Jakob Ackermann
6839f9a7e7
Update retraction of Server Pro 5.0.1 2024-04-22 11:38:03 +01:00
Jakob Ackermann
dba8a19841
Retract Server Pro version 5.0.1 2024-04-18 08:54:26 +01:00
Jakob Ackermann
6abee77298
bin/images: Print Git Bridge images as well
Co-authored-by: Miguel Serrano <mserranom@users.noreply.github.com>
2024-04-09 09:32:05 +01:00
Jakob Ackermann
eabd357aed
bin/images: Add header to docker images output 2024-04-09 09:15:32 +01:00
Miguel Serrano
e2b99f150f
Scripts to update config/overleaf.rc and config-seed rebrand (#217)
* Add scripts to rebrand variables.env and overleaf.rc

* Update bin/upgrade to prompt for config file rebrand

* Update bin/up to check for correct variable prefix

Ensures SHARELATEX_ is in place for version <= 4.x, and
OVERLEAF_ for version >= 5.x

* Rebrand variables for bin/docker-compose

Updates docker-compose.base.yml and sibling containers
base file with the changes in the script

* Update bin/doctor to support OVERLEAF_ prefix

* Update documentation with the OVERLEAF_ prefix

* Rebrand variables.env and overleaf.rc in config-seed

* Prepare config/version and CHANGELOG for release (WIP)

* Fix script documentation

Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>

* Fix doctor logs

Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>

* Remove unnecessary fallbacks to SHARELATEX_ vars

* SEt OVERLEAF_DATA_PATH to data/overleaf

* Remove duplicated environment entries

* Moved prefix brand checs from bin/up to bin/docker-compose

* Move set +o pipefail into subshell commands

* Use separate legacy compose files for required SHARELATEX_ vars

* Handle overleaf.rc rebranding before version upgrade

* Group output from rebranding process

* Move prompt for rebranding into helper function

* Refuse to start with mismatching ShareLaTeX vs Overleaf branded configs

* Print expected prefix when checking variables.env

* Print number of mismatching variables in overleaf.rc

* Check on variable rebranding from bin/doctor

* Cleanup bin/doctor lookup for ShareLaTeX branded overleaf.rc

* Update filesystem paths in bin/logs and docs

* Flag old TEXMFVAR entry in config/variables.env

REF: 1829e7ee2a

* Update config-seed version to 5.0.1 and changelog

---------

Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>
2024-04-02 16:43:08 +02:00
Jakob Ackermann
e2cbe387e0
Relaunch bin/upgrade after pulling changes via git 2024-02-26 11:53:08 +00:00
Miguel Serrano
6314f36e3f
Merge pull request #206 from Nekoyue/upgrade-warning
Warning when running bin/upgrade with custom docker image
2024-02-15 14:54:40 +01:00
Kagurazaka Tsuki
b058321ed9
slience grep output
add -q argument

Co-authored-by: Jakob Ackermann <das7pad@outlook.com>
2024-02-14 12:10:18 -06:00
Miguel Serrano
d34edf386a
Scripts to rebrand variables.env (#214)
* Scripts to rebrand environment variables

* Add missing EOF

* Removed leftover

Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>

* Fixed comment

Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>

* add timestamp to backup file

* renamed script

* extracted replace logic to shared function

* preventing variables.env to backup when not needed

---------

Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>
2024-02-14 10:08:04 +01:00
Kagurazaka Tsuki
ab051e8f11
warning in bin/upgrade if user changes image in docker-compose.override.yml 2023-11-28 14:11:57 -06:00
Jakob Ackermann
f271787d3f
Add full project history services to bin scripts 2023-10-24 12:31:27 +01:00
Jakob Ackermann
2ec1e682a1
Use web-api for git-bridge in Server Pro 4.2.0 onwards 2023-09-18 12:39:41 +01:00
Miguel Serrano
0094dacf2c Configurable 'GIT_BRIDGE_IMAGE' and 'GIT_BRIDGE_LOG_LEVEL' 2023-06-15 10:06:46 +02:00
Eric Mc Sween
9f5bd17cda Removed OAuth2 client configuration
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.
2023-05-24 16:15:28 -04:00
Eric Mc Sween
ae03cd3568 Properly kill logging processes when using Compose v2
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.
2023-05-19 16:29:56 -04:00
Eric Mc Sween
13f0e8a4db Use Docker Compose v2
By default, use Docker Compose v2, but fall back to Docker Compose v1 if
v2 is unavailable.
2023-05-16 16:45:59 -04:00
Eric Mc Sween
4353e676ee Refactor bin/docker-compose
Split the one big setup function into smaller functions organized around
the different optional docker-compose config files.
2023-05-16 15:22:14 -04:00
Eric Mc Sween
d866169025 Cleanup: properly quote docker-compose flags 2023-05-16 14:01:38 -04:00
Eric Mc Sween
2a847961ba Cleanup: no need to quote env vars inside bash conditionals 2023-05-16 13:59:52 -04:00
Eric Mc Sween
2a562c1a72 Show container logs via bin/logs
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
2023-05-12 08:02:02 -04:00
Eric Mc Sween
7924adfd79 Start Mongo in a replica set by default
Starting with Overleaf version 4, Mongo needs to be in a replica set. By
default, the replica set is made of a single instance.
2023-04-28 08:26:17 -04:00
Alf Eaton
afdac379d9
Merge pull request #149 from overleaf/ae-openssl-req-subj
Add -subj option to openssl req command
2023-04-14 09:48:58 +01:00
Alf Eaton
a58f9c0ca8 Add -subj option to openssl req command 2023-04-13 07:59:07 +01:00
Eric Mc Sween
d447061e8d Ensure git bridge is disabled by default
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.
2023-04-12 16:08:52 -04:00