mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 08:23:36 -05:00
Merge pull request #7588 from overleaf/em-node-16-spelling
Upgrade spelling to Node 16 GitOrigin-RevId: 9bfcf4032094c89959ff3f7df61a605f86cb4eef
This commit is contained in:
parent
552d6d4baa
commit
20bf575af0
5 changed files with 8 additions and 14 deletions
|
@ -1 +1 @@
|
||||||
14.18.3
|
16.14.2
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# Instead run bin/update_build_scripts from
|
# Instead run bin/update_build_scripts from
|
||||||
# https://github.com/sharelatex/sharelatex-dev-environment
|
# https://github.com/sharelatex/sharelatex-dev-environment
|
||||||
|
|
||||||
FROM gcr.io/overleaf-ops/node:14.18.3 as base
|
FROM node:16.14.2 as base
|
||||||
|
|
||||||
WORKDIR /overleaf/services/spelling
|
WORKDIR /overleaf/services/spelling
|
||||||
COPY services/spelling/install_deps.sh /overleaf/services/spelling/
|
COPY services/spelling/install_deps.sh /overleaf/services/spelling/
|
||||||
|
|
|
@ -30,7 +30,7 @@ HERE=$(shell pwd)
|
||||||
MONOREPO=$(shell cd ../../ && pwd)
|
MONOREPO=$(shell cd ../../ && pwd)
|
||||||
# Run the linting commands in the scope of the monorepo.
|
# Run the linting commands in the scope of the monorepo.
|
||||||
# Eslint and prettier (plus some configs) are on the root.
|
# Eslint and prettier (plus some configs) are on the root.
|
||||||
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) gcr.io/overleaf-ops/node:14.18.3 npm run --silent
|
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:16.14.2 npm run --silent
|
||||||
|
|
||||||
format:
|
format:
|
||||||
$(RUN_LINTING) format
|
$(RUN_LINTING) format
|
||||||
|
|
|
@ -4,7 +4,6 @@ spelling
|
||||||
--docker-repos=gcr.io/overleaf-ops
|
--docker-repos=gcr.io/overleaf-ops
|
||||||
--env-add=
|
--env-add=
|
||||||
--env-pass-through=
|
--env-pass-through=
|
||||||
--node-image=gcr.io/overleaf-ops/node
|
--node-version=16.14.2
|
||||||
--node-version=14.18.3
|
|
||||||
--public-repo=False
|
--public-repo=False
|
||||||
--script-version=4.1.0
|
--script-version=4.1.0
|
||||||
|
|
|
@ -2,19 +2,14 @@
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
echo 'APT::Default-Release "stretch";' >/etc/apt/apt.conf.d/default-release
|
# Prefer Debian packages over Ubuntu packages
|
||||||
|
echo 'APT::Default-Release "buster";' >/etc/apt/apt.conf.d/default-release
|
||||||
|
|
||||||
# The following aspell packages exist in Ubuntu but not Debian:
|
# The following aspell packages exist in Ubuntu but not Debian:
|
||||||
# aspell-af, aspell-id, aspell-nr, aspell-ns, aspell-st, aspell-tn, aspell-ts, aspell-xhu
|
# aspell-af, aspell-id, aspell-nr, aspell-ns, aspell-st, aspell-tn, aspell-ts, aspell-xh
|
||||||
echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal main universe" > /etc/apt/sources.list.d/focal-amd.list
|
echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal main universe" > /etc/apt/sources.list.d/focal-amd.list
|
||||||
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal main universe" > /etc/apt/sources.list.d/focal-ports-arm.list
|
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal main universe" > /etc/apt/sources.list.d/focal-ports-arm.list
|
||||||
apt-key adv --no-tty --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
|
apt-key adv --no-tty --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
|
||||||
# Need to install aspell-no from testing (buster) as broken in stable (stretch).
|
|
||||||
echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable.list
|
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y aspell aspell-en aspell-af aspell-ar aspell-ar-large aspell-bg aspell-br aspell-ca aspell-cs aspell-cy aspell-da aspell-de aspell-de-alt aspell-el aspell-eo aspell-es aspell-et aspell-eu-es aspell-fa aspell-fo aspell-fr aspell-ga aspell-gl-minimos aspell-hr aspell-hsb aspell-id aspell-it aspell-kk aspell-ku aspell-lt aspell-lv aspell-nl aspell-nr aspell-ns aspell-pa aspell-pl aspell-pt aspell-pt-br aspell-ro aspell-ru aspell-sk aspell-sl aspell-st aspell-sv aspell-tl aspell-tn aspell-ts aspell-xh
|
apt-get install -y aspell aspell-en aspell-af aspell-ar aspell-ar-large aspell-bg aspell-br aspell-ca aspell-cs aspell-cy aspell-da aspell-de aspell-de-1901 aspell-el aspell-eo aspell-es aspell-et aspell-eu-es aspell-fa aspell-fo aspell-fr aspell-ga aspell-gl-minimos aspell-hr aspell-hsb aspell-id aspell-it aspell-kk aspell-ku aspell-lt aspell-lv aspell-nl aspell-no aspell-nr aspell-ns aspell-pa aspell-pl aspell-pt aspell-pt-br aspell-ro aspell-ru aspell-sk aspell-sl aspell-st aspell-sv aspell-tl aspell-tn aspell-ts aspell-xh
|
||||||
|
|
||||||
printf 'Package: aspell-*\nPin: release a=unstable\nPin-Priority: 1337\n' \
|
|
||||||
> /etc/apt/preferences.d/aspell-from-unstable
|
|
||||||
apt-get install aspell-no
|
|
||||||
|
|
Loading…
Reference in a new issue