Skip to content

Commit

Permalink
Closes #78; docker hub changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Umangmsharma committed Apr 4, 2022
1 parent a9f3cb0 commit 4d6a777
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 31 deletions.
5 changes: 4 additions & 1 deletion Auth/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
build:
docker build --no-cache -t node-app .
docker build --no-cache -t dsdummies/auth-service:1.02 .

push:
docker push dsdummies/auth-service:1.02
5 changes: 4 additions & 1 deletion Client/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
build:
docker build --no-cache -t react-app .
docker build --no-cache -t dsdummies/client-react:1.02 .

push:
docker push dsdummies/client-react:1.02
5 changes: 4 additions & 1 deletion Data Ingestor/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
build:
docker build --no-cache -t ingestor-app .
docker build --no-cache -t dsdummies/data-ingestor:1.02 .

push:
docker push dsdummies/data-ingestor:1.02
5 changes: 4 additions & 1 deletion cache/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
build:
docker build --no-cache -t cache-app .
docker build --no-cache -t dsdummies/cache-service:1.02 .

push:
docker push dsdummies/cache-service:1.02
3 changes: 1 addition & 2 deletions kube/auth-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ spec:
spec:
containers:
- name: node-app
image: node-app
image: dsdummies/auth-service:1.02
ports:
- containerPort: 8000
env:
- name: DATABASE
value: mongodb://mongo:27017/user_auth
imagePullPolicy: Never
3 changes: 1 addition & 2 deletions kube/cache-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ spec:
spec:
containers:
- name: cache-app
image: cache-app
image: dsdummies/cache-service:1.02
ports:
- containerPort: 8080
env:
- name: DATABASE
value: mongodb://mongo:27017/user_auth
imagePullPolicy: Never
3 changes: 1 addition & 2 deletions kube/data-ingestor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ spec:
spec:
containers:
- name: di-app
image: ingestor-app
image: dsdummies/data-ingestor:1.0
ports:
- containerPort: 5678
imagePullPolicy: Never
28 changes: 9 additions & 19 deletions kube/mongo.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,22 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mongo-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 256Mi
---
apiVersion: v1
kind: Service
metadata:
name: mongo
spec:
selector:
app: mongo
ports:
- port: 27017
- protocol: TCP
port: 27017
targetPort: 27017
---

apiVersion: apps/v1
kind: Deployment
metadata:
name: mongo
spec:
replicas: 1
selector:
matchLabels:
app: mongo
Expand All @@ -38,10 +30,8 @@ spec:
image: mongo:4.4-bionic
ports:
- containerPort: 27017
volumeMounts:
- name: storage
mountPath: /data/db
volumes:
- name: storage
persistentVolumeClaim:
claimName: mongo-pvc
env:
- name: MONGO_INITDB_ROOT_USERNAME
value: PROJECT1-ADMIN
- name: MONGO_INITDB_ROOT_PASSWORD
value: Project1-ADS
3 changes: 1 addition & 2 deletions kube/react-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ spec:
spec:
containers:
- name: react-app
image: react-app
image: dsdummies/client-react:1.0
ports:
- containerPort: 3000
imagePullPolicy: Never

0 comments on commit 4d6a777

Please sign in to comment.