-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (24 loc) · 983 Bytes
/
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
# Dans 3 ans on aura potentiellement un souci avec les données de test
MOTS_A_GENERER=1000
CURRENT_UID ?= $(shell id -u)
docker-up: dirs docker-compose.override.yml
docker-compose up
init: dirs
make node_modules
docker-compose run --user=$(CURRENT_UID) --rm node /app/build.sh
docker-compose run --user=$(CURRENT_UID) --rm node /app/utils/genererMotTrouve.js $(MOTS_A_GENERER)
docker-compose run --user=$(CURRENT_UID) --rm node /app/utils/genereATrouverSuperApero.js 0
docker-compose run --user=$(CURRENT_UID) --rm node /app/utils/majATrouver.js
node_modules: package-lock.json package.json
docker-compose run --user=$(CURRENT_UID) --rm node npm install
docker-bash:
docker-compose run --user=$(CURRENT_UID) --rm node /bin/sh
dirs: data_shared public_mots data_npm
data_shared:
mkdir -p data_shared
public_mots:
mkdir -p public/mots
data_npm:
mkdir -p docker/data/npm
docker-compose.override.yml:
cp docker-compose.override.yml-dist docker-compose.override.yml