-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·49 lines (43 loc) · 1.58 KB
/
Makefile
File metadata and controls
executable file
·49 lines (43 loc) · 1.58 KB
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
45
46
47
48
49
# ------------------------------------------------- #
# #
# MAKEFILE #
# -------- #
# #
# Makefile commands for template: #
# #
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
# #
# test: run tests via nosetest. #
# #
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
# #
# package: packages all components into #
# a few Docker images ready for deployment. #
# #
# ------------------------------------------------- #
VERSION ?= $(shell python bin/extract_version.py)
all: test package
test:
bash bin/test.sh;
#
# Build Docker images.
#
.PHONY: build
build: build-app-image
build-app-image:
bash bin/build_docker_image.sh $(VERSION);
#
# Packages all components of the
# application for deployment.
#
package:
@echo "Building and packaging Docker image.";
docker save -o skill-crypto-values-$(VERSION).tar registry.dataproducts.team/skill-crypto-values:$(VERSION);
gzip skill-crypto-values-$(VERSION).tar;
#
# Publishes Docker images to repository.
# Please note that
#
publish:
@echo "Publishing Docker image to repository.";
docker push registry.dataproducts.team/skill-crypto-values:$(VERSION);