forked from johnktims/folding-at-home
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (36 loc) · 830 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
34
35
36
37
38
39
40
41
42
43
IMAGE_NAME = theculliganman/folding-at-home
IMAGE_TAG = latest
CONTAINER_NAME := folding-at-home
USER_NAME := theculliganman
TEAM := 229500
USE_GPU := true
SMP_CLIENT := true
POWER_LEVEL := full
pull:
docker pull ${IMAGE_NAME}:${IMAGE_TAG}
run:
$(MAKE) pull
$(MAKE) clean || true
docker run \
-d \
--gpus all \
--name ${CONTAINER_NAME} \
--restart unless-stopped \
-p 7396:7396 \
-v $(PWD)/workdir:/usr/src/app \
${IMAGE_NAME}:${IMAGE_TAG} \
--user=${USER_NAME} \
--team=${TEAM} \
--gpu=${USE_GPU} \
--smp=${SMP_CLIENT} \
--power=${POWER_LEVEL}
logs:
docker logs -f --tail=1000 ${CONTAINER_NAME}
top:
docker top ${CONTAINER_NAME}
stop:
docker stop ${CONTAINER_NAME} /${CONTAINER_NAME}
clean: stop
docker rm ${CONTAINER_NAME} /${CONTAINER_NAME}
exec:
docker exec -it ${CONTAINER_NAME} bash