diff --git a/Makefile b/Makefile index b76eac927..2db15ae4d 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,7 @@ build: java/registry/target/registry.jar make -C services/public-key-service docker make -C services/context-proxy-service docker docker build -t dockerhub/sunbird-rc-nginx . + make -C services/identity-service/ docker java/registry/target/registry.jar: $(SOURCES) echo $(SOURCES) @@ -62,7 +63,8 @@ test: make -C services/certificate-signer test make -C services/public-key-service test make -C services/context-proxy-service test - + make -C services/identity-service test + clean: @rm -rf target || true @rm java/registry/target/registry.jar || true @@ -94,6 +96,7 @@ release: test docker push dockerhub/sunbird-rc-context-proxy-service:$(RELEASE_VERSION) docker push dockerhub/sunbird-rc-nginx:latest docker push dockerhub/sunbird-rc-nginx:$(RELEASE_VERSION) + docker push dockerhub/sunbird-rc-identity-service:$(RELEASE_VERSION) @cd tools/cli/ && npm publish diff --git a/services/identity-service/Dockerfile.test b/services/identity-service/Dockerfile.test new file mode 100644 index 000000000..3495f40a4 --- /dev/null +++ b/services/identity-service/Dockerfile.test @@ -0,0 +1,6 @@ +FROM node:16 as dependencies +WORKDIR /app +COPY . ./ +RUN npm install +EXPOSE 3332 +CMD ["npm", "test"] diff --git a/services/identity-service/Makefile b/services/identity-service/Makefile new file mode 100644 index 000000000..6b13c6e22 --- /dev/null +++ b/services/identity-service/Makefile @@ -0,0 +1,11 @@ +IMAGE:=dockerhub/sunbird-rc-identity-service + +.PHONY: docker publish test + +docker: + @docker build -t $(IMAGE) . +publish: + @docker push $(IMAGE) +test: + @docker build -f Dockerfile.test -t $(IMAGE)-test . + @docker run $(IMAGE)-test \ No newline at end of file