-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
57 lines (42 loc) · 2.63 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
.ONESHELL:
SHELL := /bin/bash
registry_name = ifcacomputing
add-multi-arch-builder:
docker run --privileged --rm tonistiigi/binfmt --install all
docker buildx create --name drift-detection-builder --driver docker-container --bootstrap
docker buildx use drift-detection-builder
remove-multi-arch-builder:
docker buildx rm drift-detection-builder
build-covariate-drift-detector:
for dataset in mnist fashion-mnist cifar10;
do
docker buildx build --platform linux/amd64,linux/arm64 -t $(registry_name)/covariate-drift-detection-api-$${dataset} --build-arg DATASET=$${dataset} --build-arg PARENT_DIR=detector_api -f detector_api/Dockerfile --push .
done
build-dimensionality-reduction:
for dataset in mnist fashion-mnist cifar10;
do
docker buildx build --platform linux/amd64,linux/arm64 -t $(registry_name)/dimensionality-reduction-api-$${dataset} --build-arg DATASET=$${dataset} --build-arg PARENT_DIR=dimensionality_reduction_api -f dimensionality_reduction_api/Dockerfile --push .
done
build-model-inference:
for dataset in mnist fashion-mnist cifar10;
do
docker buildx build --platform linux/amd64,linux/arm64 -t $(registry_name)/model-inference-api-$${dataset} --build-arg DATASET=$${dataset} --build-arg PARENT_DIR=model_inference_api -f model_inference_api/Dockerfile --push .
done
run-covariate-drift-detector-mnist:
docker run --name covariate-drift-detection-mnist -p 5001:8000 $(registry_name)/covariate-drift-detection-api-mnist
run-covariate-drift-detector-fashion-mnist:
docker run --name covariate-drift-detection-fashion_mnist -p 5001:8000 $(registry_name)/covariate-drift-detection-api-fashion-mnist
run-covariate-drift-detector-cifar10:
docker run --name covariate-drift-detection-cifar10 -p 5001:8000 $(registry_name)/covariate-drift-detection-api-cifar10
run-dimensionality-reduction-mnist:
docker run --name dimensionality-reduction-mnist -p 5002:8000 $(registry_name)/dimensionality-reduction-api-mnist
run-dimensionality-reduction-fashion-mnist:
docker run --name dimensionality-reduction-fashion-mnist -p 5002:8000 $(registry_name)/dimensionality-reduction-api-fashion-mnist
run-dimensionality-reduction-cifar10:
docker run --name dimensionality-reduction-cifar10 -p 5002:8000 $(registry_name)/dimensionality-reduction-api-cifar10
run-model-inference-mnist:
docker run --name model-inference-mnist -p 5003:8000 $(registry_name)/model-inference-api-mnist
run-model-inference-fashion-mnist:
docker run --name model-inference-fashion-mnist -p 5003:8000 $(registry_name)/model-inference-api-fashion-mnist
run-model-inference-cifar10:
docker run --name model-inference-cifar10 -p 5003:8000 $(registry_name)/model-inference-api-cifar10