source: iovar-docker/Makefile

tip
Last change on this file was 0:114acc24e0ad, checked in by Shawn Wilson <shawn@…>, 13 months ago

saw_041117_1 - Initial commit.

File size: 1.0 KB
Line 
1# Copyright (C) 2017 Virgo Venture, Inc.
2# @%@~LICENSE~@%@
3#
4# A make file for building and running IOVAR Docker.
5
6
7NAME_IMAGE              = iovar/iovar
8NAME_CONTAINER  = my_iovar
9
10
11.PHONY: default
12
13default: docker
14#       @echo
15#       @echo "Please choose a make target and try again."
16
17help:
18        @echo "Please use \`make <target>' where <target> is one of"
19        @echo "  help           display this help screen"
20        @echo ""
21        @echo "  all            to make all common tasks: docker"
22        @echo "  clean          to clean all common tasks: docker_clean"
23        @echo ""
24        @echo "  install        this will run the docker container (first try make all)"
25        @echo "  uninstall      this will remove the docker container"
26        @echo ""
27        @echo "  docker         (DEFAULT) to build the docker container image"
28        @echo "  docker_clean   to remove the docker container image"
29
30
31all:    docker
32
33clean:  docker_clean
34
35
36
37docker:
38        docker build -t $(NAME_IMAGE) .
39
40docker_clean:
41        docker rmi $(NAME_IMAGE) 
42
43
44install:
45        docker run --name $(NAME_CONTAINER) $(NAME_IMAGE)
46
47uninstall:
48        docker rm $(NAME_CONTAINER)
49
50
Note: See TracBrowser for help on using the repository browser.