mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 09:09:36 +02:00
[misc] update the build scripts to 1.3.5
This commit is contained in:
@@ -5,7 +5,6 @@ gitrev
|
|||||||
.npm
|
.npm
|
||||||
.nvmrc
|
.nvmrc
|
||||||
nodemon.json
|
nodemon.json
|
||||||
|
|
||||||
uploads/
|
uploads/
|
||||||
user_files/
|
user_files/
|
||||||
template_files/
|
template_files/
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// this file was auto-generated, do not edit it directly.
|
// this file was auto-generated, do not edit it directly.
|
||||||
// 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
|
||||||
// Version: 1.3
|
// Version: 1.3.5
|
||||||
{
|
{
|
||||||
"extends": [
|
"extends": [
|
||||||
"standard",
|
"standard",
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
"overrides": [
|
"overrides": [
|
||||||
{
|
{
|
||||||
// Test specific rules
|
// Test specific rules
|
||||||
"files": ["**/test/*/src/**/*.js"],
|
"files": ["test/**/*.js"],
|
||||||
"globals": {
|
"globals": {
|
||||||
"expect": true
|
"expect": true
|
||||||
},
|
},
|
||||||
@@ -53,18 +53,9 @@
|
|||||||
"mocha/prefer-arrow-callback": "error"
|
"mocha/prefer-arrow-callback": "error"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
// Frontend test specific rules
|
|
||||||
"files": ["**/test/frontend/**/*.js"],
|
|
||||||
"globals": {
|
|
||||||
"expect": true,
|
|
||||||
"define": true,
|
|
||||||
"$": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
// Backend specific rules
|
// Backend specific rules
|
||||||
"files": ["**/app/src/**/*.js"],
|
"files": ["app/**/*.js", "app.js", "index.js"],
|
||||||
"rules": {
|
"rules": {
|
||||||
// don't allow console.log in backend code
|
// don't allow console.log in backend code
|
||||||
"no-console": "error"
|
"no-console": "error"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# This file was auto-generated, do not edit it directly.
|
# This file was auto-generated, do not edit it directly.
|
||||||
# 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
|
||||||
# Version: 1.3
|
# Version: 1.3.5
|
||||||
{
|
{
|
||||||
"semi": false,
|
"semi": false,
|
||||||
"singleQuote": true
|
"singleQuote": true
|
||||||
|
|||||||
@@ -1,11 +1,15 @@
|
|||||||
# This file was auto-generated, do not edit it directly.
|
# This file was auto-generated, do not edit it directly.
|
||||||
# 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
|
||||||
# Version: 1.3
|
# Version: 1.3.5
|
||||||
|
|
||||||
FROM node:10.19.0 as app
|
FROM node:10.19.0 as base
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
COPY install_deps.sh /app
|
||||||
|
RUN chmod 0755 ./install_deps.sh && ./install_deps.sh
|
||||||
|
|
||||||
|
FROM base as app
|
||||||
|
|
||||||
#wildcard as some files may not be in all repos
|
#wildcard as some files may not be in all repos
|
||||||
COPY package*.json npm-shrink*.json /app/
|
COPY package*.json npm-shrink*.json /app/
|
||||||
@@ -16,12 +20,11 @@ COPY . /app
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
FROM node:10.19.0
|
FROM base
|
||||||
|
|
||||||
COPY --from=app /app /app
|
COPY --from=app /app /app
|
||||||
|
RUN mkdir -p uploads user_files template_files \
|
||||||
WORKDIR /app
|
&& chown node:node uploads user_files template_files
|
||||||
RUN chmod 0755 ./install_deps.sh && ./install_deps.sh
|
|
||||||
USER node
|
USER node
|
||||||
|
|
||||||
CMD ["node", "--expose-gc", "app.js"]
|
CMD ["node", "--expose-gc", "app.js"]
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# This file was auto-generated, do not edit it directly.
|
# This file was auto-generated, do not edit it directly.
|
||||||
# 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
|
||||||
# Version: 1.3
|
# Version: 1.3.5
|
||||||
|
|
||||||
BUILD_NUMBER ?= local
|
BUILD_NUMBER ?= local
|
||||||
BRANCH_NAME ?= $(shell git rev-parse --abbrev-ref HEAD)
|
BRANCH_NAME ?= $(shell git rev-parse --abbrev-ref HEAD)
|
||||||
@@ -33,9 +33,14 @@ test_unit:
|
|||||||
|
|
||||||
test_acceptance: test_clean test_acceptance_pre_run test_acceptance_run
|
test_acceptance: test_clean test_acceptance_pre_run test_acceptance_run
|
||||||
|
|
||||||
|
test_acceptance_debug: test_clean test_acceptance_pre_run test_acceptance_run_debug
|
||||||
|
|
||||||
test_acceptance_run:
|
test_acceptance_run:
|
||||||
@[ ! -d test/acceptance ] && echo "filestore has no acceptance tests" || $(DOCKER_COMPOSE) run --rm test_acceptance
|
@[ ! -d test/acceptance ] && echo "filestore has no acceptance tests" || $(DOCKER_COMPOSE) run --rm test_acceptance
|
||||||
|
|
||||||
|
test_acceptance_run_debug:
|
||||||
|
@[ ! -d test/acceptance ] && echo "filestore has no acceptance tests" || $(DOCKER_COMPOSE) run -p 127.0.0.9:19999:19999 --rm test_acceptance npm run test:acceptance -- --inspect=0.0.0.0:19999 --inspect-brk
|
||||||
|
|
||||||
test_clean:
|
test_clean:
|
||||||
$(DOCKER_COMPOSE) down -v -t 0
|
$(DOCKER_COMPOSE) down -v -t 0
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
filestore
|
filestore
|
||||||
--env-add=ENABLE_CONVERSIONS="true",USE_PROM_METRICS="true",AWS_S3_USER_FILES_BUCKET_NAME=fake_user_files,AWS_S3_TEMPLATE_FILES_BUCKET_NAME=fake_template_files,AWS_S3_PUBLIC_FILES_BUCKET_NAME=fake_public_files,AWS_S3_ENDPOINT=http://s3:9090,AWS_ACCESS_KEY_ID=fake,AWS_SECRET_ACCESS_KEY=fake
|
|
||||||
--dependencies=s3
|
|
||||||
--acceptance-creds=
|
|
||||||
--script-version=1.3
|
|
||||||
--node-version=10.19.0
|
|
||||||
--language=es
|
|
||||||
--docker-repos=gcr.io/overleaf-ops
|
|
||||||
--public-repo=True
|
--public-repo=True
|
||||||
|
--language=es
|
||||||
|
--env-add=ENABLE_CONVERSIONS="true",USE_PROM_METRICS="true",AWS_S3_USER_FILES_BUCKET_NAME=fake_user_files,AWS_S3_TEMPLATE_FILES_BUCKET_NAME=fake_template_files,AWS_S3_PUBLIC_FILES_BUCKET_NAME=fake_public_files
|
||||||
|
--node-version=10.19.0
|
||||||
|
--acceptance-creds=
|
||||||
|
--dependencies=s3
|
||||||
|
--docker-repos=gcr.io/overleaf-ops
|
||||||
--env-pass-through=
|
--env-pass-through=
|
||||||
|
--data-dirs=uploads,user_files,template_files
|
||||||
|
--script-version=1.3.5
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
# This file was auto-generated, do not edit it directly.
|
# This file was auto-generated, do not edit it directly.
|
||||||
# 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
|
||||||
# Version: 1.3
|
# Version: 1.3.5
|
||||||
|
|
||||||
version: "2.1"
|
version: "2.3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
test_unit:
|
test_unit:
|
||||||
@@ -22,6 +22,10 @@ services:
|
|||||||
REDIS_HOST: redis
|
REDIS_HOST: redis
|
||||||
MONGO_HOST: mongo
|
MONGO_HOST: mongo
|
||||||
POSTGRES_HOST: postgres
|
POSTGRES_HOST: postgres
|
||||||
|
AWS_S3_ENDPOINT: http://s3:9090
|
||||||
|
AWS_S3_PATH_STYLE: 'true'
|
||||||
|
AWS_ACCESS_KEY_ID: fake
|
||||||
|
AWS_SECRET_ACCESS_KEY: fake
|
||||||
MOCHA_GREP: ${MOCHA_GREP}
|
MOCHA_GREP: ${MOCHA_GREP}
|
||||||
NODE_ENV: test
|
NODE_ENV: test
|
||||||
ENABLE_CONVERSIONS: "true"
|
ENABLE_CONVERSIONS: "true"
|
||||||
@@ -29,9 +33,6 @@ services:
|
|||||||
AWS_S3_USER_FILES_BUCKET_NAME: fake_user_files
|
AWS_S3_USER_FILES_BUCKET_NAME: fake_user_files
|
||||||
AWS_S3_TEMPLATE_FILES_BUCKET_NAME: fake_template_files
|
AWS_S3_TEMPLATE_FILES_BUCKET_NAME: fake_template_files
|
||||||
AWS_S3_PUBLIC_FILES_BUCKET_NAME: fake_public_files
|
AWS_S3_PUBLIC_FILES_BUCKET_NAME: fake_public_files
|
||||||
AWS_S3_ENDPOINT: http://s3:9090
|
|
||||||
AWS_ACCESS_KEY_ID: fake
|
|
||||||
AWS_SECRET_ACCESS_KEY: fake
|
|
||||||
depends_on:
|
depends_on:
|
||||||
s3:
|
s3:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@@ -49,6 +50,6 @@ services:
|
|||||||
s3:
|
s3:
|
||||||
image: adobe/s3mock
|
image: adobe/s3mock
|
||||||
environment:
|
environment:
|
||||||
- initialBuckets=fake_user_files,fake_template_files,fake_public_files
|
- initialBuckets=fake_user_files,fake_template_files,fake_public_files,bucket
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:9090"]
|
test: ["CMD", "curl", "-f", "http://localhost:9090"]
|
||||||
|
|||||||
@@ -1,13 +1,15 @@
|
|||||||
# This file was auto-generated, do not edit it directly.
|
# This file was auto-generated, do not edit it directly.
|
||||||
# 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
|
||||||
# Version: 1.3
|
# Version: 1.3.5
|
||||||
|
|
||||||
version: "2.1"
|
version: "2.3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
test_unit:
|
test_unit:
|
||||||
build: .
|
build:
|
||||||
|
context: .
|
||||||
|
target: base
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app
|
- .:/app
|
||||||
working_dir: /app
|
working_dir: /app
|
||||||
@@ -18,7 +20,9 @@ services:
|
|||||||
user: node
|
user: node
|
||||||
|
|
||||||
test_acceptance:
|
test_acceptance:
|
||||||
build: .
|
build:
|
||||||
|
context: .
|
||||||
|
target: base
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app
|
- .:/app
|
||||||
working_dir: /app
|
working_dir: /app
|
||||||
@@ -27,6 +31,10 @@ services:
|
|||||||
REDIS_HOST: redis
|
REDIS_HOST: redis
|
||||||
MONGO_HOST: mongo
|
MONGO_HOST: mongo
|
||||||
POSTGRES_HOST: postgres
|
POSTGRES_HOST: postgres
|
||||||
|
AWS_S3_ENDPOINT: http://s3:9090
|
||||||
|
AWS_S3_PATH_STYLE: 'true'
|
||||||
|
AWS_ACCESS_KEY_ID: fake
|
||||||
|
AWS_SECRET_ACCESS_KEY: fake
|
||||||
MOCHA_GREP: ${MOCHA_GREP}
|
MOCHA_GREP: ${MOCHA_GREP}
|
||||||
LOG_LEVEL: ERROR
|
LOG_LEVEL: ERROR
|
||||||
NODE_ENV: test
|
NODE_ENV: test
|
||||||
@@ -35,9 +43,6 @@ services:
|
|||||||
AWS_S3_USER_FILES_BUCKET_NAME: fake_user_files
|
AWS_S3_USER_FILES_BUCKET_NAME: fake_user_files
|
||||||
AWS_S3_TEMPLATE_FILES_BUCKET_NAME: fake_template_files
|
AWS_S3_TEMPLATE_FILES_BUCKET_NAME: fake_template_files
|
||||||
AWS_S3_PUBLIC_FILES_BUCKET_NAME: fake_public_files
|
AWS_S3_PUBLIC_FILES_BUCKET_NAME: fake_public_files
|
||||||
AWS_S3_ENDPOINT: http://s3:9090
|
|
||||||
AWS_ACCESS_KEY_ID: fake
|
|
||||||
AWS_SECRET_ACCESS_KEY: fake
|
|
||||||
user: node
|
user: node
|
||||||
depends_on:
|
depends_on:
|
||||||
s3:
|
s3:
|
||||||
@@ -47,6 +52,6 @@ services:
|
|||||||
s3:
|
s3:
|
||||||
image: adobe/s3mock
|
image: adobe/s3mock
|
||||||
environment:
|
environment:
|
||||||
- initialBuckets=fake_user_files,fake_template_files,fake_public_files
|
- initialBuckets=fake_user_files,fake_template_files,fake_public_files,bucket
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:9090"]
|
test: ["CMD", "curl", "-f", "http://localhost:9090"]
|
||||||
|
|||||||
@@ -7,8 +7,3 @@ apt-get update
|
|||||||
apt-get install ghostscript imagemagick optipng --yes
|
apt-get install ghostscript imagemagick optipng --yes
|
||||||
|
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
mkdir /app/user_files/ /app/uploads/ /app/template_files/
|
|
||||||
chown -R node:node /app/user_files
|
|
||||||
chown -R node:node /app/uploads
|
|
||||||
chown -R node:node /app/template_files
|
|
||||||
|
|||||||
Reference in New Issue
Block a user