-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (28 loc) · 1.17 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
37
38
39
# Makefile for building FedSDM
.PHONY: help install bundle rebuild build run-example stop-example example-run example-stop dep-outdated
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " install to install all build dependencies"
@echo " bundle to pack all dependencies for use in the tool"
@echo " build to build a fresh Docker image; calls install and bundle as well"
@echo " rebuild to build a Docker image without re-bundling the dependencies"
@echo " run-example to build a fresh Docker image and run the example containers"
@echo " stop-example to stop all example containers and remove their data"
@echo " dep-outdated to list all outdated dependencies"
install:
python3 -m pip install -r requirements-dev.txt
npm i
bundle:
python3 bundle-assets.py
rebuild:
docker build -f Dockerfile-alpine . -t fedsdm:latest
build: install bundle rebuild
run-example: rebuild
docker compose -f example/docker-compose.yml up -d
stop-example:
docker compose -f example/docker-compose.yml down -v
example-run: run-example
example-stop: stop-example
dep-outdated:
python3 -m pip list --outdated
npm outdated || true