forked from lappsgrid-incubator/docker-galaxy-lappsgrid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (34 loc) · 1014 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
44
DOCKER=/usr/local/bin/docker
IMAGE=lappsgrid/galaxy
TARFILE=galaxy-lappsgrid-cmu.tar
latest:
$(DOCKER) build -f Dockerfile -t $(IMAGE) .
cmu:
$(DOCKER) build -f Dockerfile.cmu -t $(IMAGE):cmu .
no-cache:
$(DOCKER) build --no-cache -f Dockerfile -t $(IMAGE) .
push:
$(DOCKER) push $(IMAGE)
tag:
if [ -n "$(TAG)" ] ; then $(DOCKER) tag $(IMAGE) $(IMAGE):$(TAG) ; fi
tag-cmu:
if [ -n "$(TAG)" ] ; then $(DOCKER) tag $(IMAGE):cmu $(IMAGE):$(TAG) ; fi
run:
$(DOCKER) run -d -p 8080:80 --name galaxy -v /mnt/sda1/var/lib/galaxy:/export $(IMAGE)
bash:
$(DOCKER) run -it -p 8080:80 --name galaxy $(IMAGE) /bin/bash
help:
@echo "GOALS"
@echo
@echo "cmu"
@echo " Builds with services configured to call"
@echo " Dockerized services (default goal)."
@echo "latest"
@echo " Builds Dockerfile"
@echo "push"
@echo " Pushes $(IMAGE):cmu to the Docker Hub."
@echo "tag"
@echo " Tags $(IMAGE):cmu on the Docker Hub."
@echo "help"
@echo " Prints these usage instructions."
@echo