SEBA-902 mock testing of redfish importer;
Remove hardcoded addresses and replace with config file / cmdline;
Support hostnames in importer as alternative to ip addresses;
Treat response 204 as success
Change-Id: I17e8e585e388c501c02867ce952bbe1fa9b09668
diff --git a/Makefile b/Makefile
index 9d06f64..d9c5e70 100644
--- a/Makefile
+++ b/Makefile
@@ -59,8 +59,15 @@
build: docker-build
+docker-build: docker-build-importer
+ make -C demo_test docker-build
+ make -C mock-redfish-server docker-build
-docker-build:
+docker-push: docker-push-importer
+ make -C demo_test docker-push
+ make -C mock-redfish-server docker-push
+
+docker-build-importer:
docker build $(DOCKER_BUILD_ARGS) \
-t ${DOCKER_IMAGENAME} \
--build-arg org_label_schema_version="${VERSION}" \
@@ -69,9 +76,11 @@
--build-arg org_label_schema_build_date="${DOCKER_LABEL_BUILD_DATE}" \
--build-arg org_opencord_vcs_commit_date="${DOCKER_LABEL_COMMIT_DATE}" \
-f Dockerfile .
-docker-push:
+
+docker-push-importer:
docker push ${DOCKER_IMAGENAME}
+
PATH:=$(GOPATH)/bin:$(PATH)
HADOLINT=$(shell PATH=$(GOPATH):$(PATH) which hadolint)