Skip to content

Commit

Permalink
Merge pull request #1 from tushar5526/identity
Browse files Browse the repository at this point in the history
feat: Add targets for identity-service
  • Loading branch information
techsavvyash authored Jun 21, 2023
2 parents d5a8b69 + de7798b commit 7cd8731
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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


6 changes: 6 additions & 0 deletions services/identity-service/Dockerfile.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM node:16 as dependencies
WORKDIR /app
COPY . ./
RUN npm install
EXPOSE 3332
CMD ["npm", "test"]
11 changes: 11 additions & 0 deletions services/identity-service/Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7cd8731

Please sign in to comment.