-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (28 loc) · 892 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
VIRTUALENV_NAME=hdatalogger
NAMESPACE=sthysel
NAME=biopython
VERSION ?= latest
.PHONY: mkvirtualenv install
all: build push shell run start stop rm release
mkvirtualenv:
mkvirtualenv ${VIRTUALENV_NAME};
install:
workon ${VIRTUALENV_NAME}; \
pip install -r src/pip_requirements_dev.txt; \
build:
docker build -t ${NAMESPACE}/$(NAME):$(VERSION) .
push:
docker push ${NAMESPACE}/$(NAME):$(VERSION)
shell:
docker run --rm --name ${NAME}-$(INSTANCE) -i -t $(PORTS) $(VOLUMES) $(ENV) $(NAMESPACE)/$(NAME):$(VERSION) /bin/bash
run:
docker run --rm --name ${NAME}-$(INSTANCE) $(PORTS) $(VOLUMES) $(ENV) $(NAMESPACE)/$(NAME):$(VERSION)
start:
docker run -d --name ${NAME}-$(INSTANCE) $(PORTS) $(VOLUMES) $(ENV) $(NAMESPACE)/$(NAME):$(VERSION)
stop:
docker stop ${NAME}-$(INSTANCE)
rm:
docker rm ${NAME}-$(INSTANCE)
release: build
make push -e VERSION=${VERSION}
default: build