-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
36 lines (31 loc) · 1.01 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# To run Grist:
# make requirements
# make build
# GRIST_SESSION_SECRET=something make start
#
# To build gristlabs/grist-ee image:
# make docker
#
# See core/Dockerfile for version hints. Node 10 or greater should
# work, with python 3.9 or greater (or python 2.7 if you are old-school).
# Will need yarn installed, and a recent version of docker to build a
# docker image.
default:
@echo "To make and run Grist:"
@echo " make requirements"
@echo " make build"
@echo " GRIST_SESSION_SECRET=something make start"
@echo ""
@echo "To make a Grist image (does not require above steps):"
@echo " make docker"
requirements:
cd ext && yarn install --frozen-lockfile --modules-folder=../node_modules --verbose
cd core && yarn install --frozen-lockfile --verbose
cd core && test -e ext && echo ext present || ln -s ../ext ext
cd core && yarn run install:python
build:
cd core && yarn run build:prod
start:
cd core && yarn start
docker:
docker buildx build --load -t gristlabs/grist-ee --build-context=ext=ext core