-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
38 lines (29 loc) · 1.02 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
TAG := latest
USER := mlexchange
PROJECT := dimension-reduction-umap
IMG_WEB_SVC := ${USER}/${PROJECT}:${TAG}
IMG_WEB_SVC_JYP := ${USER}/${PROJECT_JYP}:${TAG}
ID_USER := ${shell id -u}
ID_GROUP := ${shell id -g}
.PHONY:
test:
echo ${IMG_WEB_SVC}
echo ${TAG}
echo ${PROJECT}
echo ${PROJECT}:${TAG}
echo ${ID_USER}
build_docker:
docker build -t ${IMG_WEB_SVC} -f ./Dockerfile .
build_podman:
podman build -t ghcr.io/runboj/mlex_dimension_reduction_umap:main -f ./Dockerfile .
run_docker:
docker run --shm-size=1g --ulimit memlock=-1 --ulimit stack=67108864 --memory-swap -1 -it -v ${PWD}/data:/app/work/data/ ${IMG_WEB_SVC} bash
UMAP_example:
docker run -u ${ID_USER $USER}:${ID_GROUP $USER} --shm-size=1g --ulimit memlock=-1 --ulimit stack=67108864 --memory-swap -1 -it -v ${PWD}:/app/work/ ${IMG_WEB_SVC} python src/mlex_dimension_reduction_umap/umap_run.py example_umap.yaml
push_docker:
docker push ${IMG_WEB_SVC}
clean:
find -name "*~" -delete
-rm .python_history
-rm -rf .config
-rm -rf .cache