Skip to content

Commit

Permalink
Merge pull request #55 from hypersign-protocol/update-prajna
Browse files Browse the repository at this point in the history
update
  • Loading branch information
Pratap2018 authored Dec 28, 2023
2 parents 1dfd5f8 + cc1996c commit 8f3a53c
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 99 deletions.
194 changes: 97 additions & 97 deletions .deploy/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
image: __GOOGLE_ARTIFACT_URL__/__GOOGLE_PROJECT_ID__/__GOOGLE_ARTIFACT_REPO__/auth-server:1
imagePullPolicy: Always
volumeMounts:
- mountPath: "/usr/src/app"
- mountPath: "/data"
name: auth-server-hypersign-json
readOnly: true
resources:
Expand Down Expand Up @@ -84,7 +84,8 @@ kind: Service
metadata:
name: auth-server-service
namespace: hypermine-development

annotations:
cloud.google.com/neg: '{"ingress": true}'
spec:
type: NodePort
selector:
Expand All @@ -93,103 +94,102 @@ spec:
- port: __PORT__
targetPort: __PORT__
protocol: TCP
# ---
# apiVersion: apps/v1
# kind: Deployment
# metadata:
# name: auth-server-txn
# namespace: hypermine-development

# spec:
# selector:
# matchLabels:
# app: auth-server-txn
# template:
# metadata:
# labels:
# app: auth-server-txn
# spec:
# containers:
# - name: auth-server-txn
# image: __GOOGLE_ARTIFACT_URL__/__GOOGLE_PROJECT_ID__/__GOOGLE_ARTIFACT_REPO__/auth-server-txn:latest
# imagePullPolicy: Always
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: auth-server-txn
namespace: hypermine-development

# volumeMounts:
# - mountPath: "/usr/src/app"
# name: auth-server-hypersign-json
# readOnly: true
spec:
selector:
matchLabels:
app: auth-server-txn
template:
metadata:
labels:
app: auth-server-txn
spec:
containers:
- name: auth-server-txn
image: __GOOGLE_ARTIFACT_URL__/__GOOGLE_PROJECT_ID__/__GOOGLE_ARTIFACT_REPO__/auth-server-txn:latest
imagePullPolicy: Always

# resources:
# limits:
# memory: "256Mi"
# cpu: "500m"
# ports:
# - containerPort: __PORT__
# env:
# - name: AUTH0TENANT
# value: "__AUTH0TENANT__"
# - name: DATA_DIR
# value: __DATA_DIR__
# - name: DB_INMEM
# value: "__DB_INMEM__"
# - name: DB_URL
# value: "__DB_URL__"
# - name: EDV_BASE_URL
# value: "__EDV_BASE_URL__"
# - name: EDV_CONFIG_DIR
# value: "__EDV_CONFIG_DIR__"
# - name: EDV_DID_FILE_PATH
# value: "__EDV_DID_FILE_PATH__"
# - name: EDV_ID
# value: "__EDV_ID__"
# - name: EDV_KEY_FILE_PATH
# value: "__EDV_KEY_FILE_PATH__"
# - name: HIDNODE_REST_URL
# value: "__HIDNODE_REST_URL__"
# - name: HIDNODE_RPC_URL
# value: "__HIDNODE_RPC_URL__"
# - name: HID_WALLET_MNEMONIC
# value: "__HID_WALLET_MNEMONIC__"
# - name: HOST
# value: "__HOST__"
# - name: LOG_LEVEL
# value: __LOG_LEVEL__
# - name: MAXIMUM_DELAY
# value: "__MAXIMUM_DELAY__"
# - name: MAX_BATCH_SIZE
# value: "__MAX_BATCH_SIZE__"
# - name: MINIMUM_DELAY
# value: "__MINIMUM_DELAY__"
# - name : NODE_ENV
# value: __NODE_ENV__
# - name: PORT
# value: "__PORT__"
# - name: REDIS_HOST
# value: __REDIS_HOST__
# - name: REDIS_PORT
# value: "__REDIS_PORT__"
# - name: SERVICE_END_POINT
# value: __SERVICE_END_POINT__
# - name: WHITELISTED_CORS
# value: '[ "https://dashboard.hypermine.in","wallet-stage.hypersign.id" , "https://whitelist.hypermine.in", "https://wallet.hypermine.in", "https://ssi.hypermine.in", "http://localhost:4999", "https://hswallet-stage.netlify.app", "https://hyperfyre.netlify.app", "https://wallet-stage.hypersign.id/", "https://hswallet-stage.netlify.app","https://wallet-prajna.hypersign.id"]'
volumeMounts:
- mountPath: "/data"
name: auth-server-hypersign-json
readOnly: true

# volumes:
# - name: auth-server-hypersign-json
# secret:
# secretName: auth-server-hypersign-json
# ---
# apiVersion: v1
# kind: Service
# metadata:
# name: auth-server-txn-service
# namespace: hypermine-development
resources:
limits:
memory: "256Mi"
cpu: "500m"
ports:
- containerPort: __PORT__
env:
- name: AUTH0TENANT
value: "__AUTH0TENANT__"
- name: DATA_DIR
value: __DATA_DIR__
- name: DB_INMEM
value: "__DB_INMEM__"
- name: DB_URL
value: "__DB_URL__"
- name: EDV_BASE_URL
value: "__EDV_BASE_URL__"
- name: EDV_CONFIG_DIR
value: "__EDV_CONFIG_DIR__"
- name: EDV_DID_FILE_PATH
value: "__EDV_DID_FILE_PATH__"
- name: EDV_ID
value: "__EDV_ID__"
- name: EDV_KEY_FILE_PATH
value: "__EDV_KEY_FILE_PATH__"
- name: HIDNODE_REST_URL
value: "__HIDNODE_REST_URL__"
- name: HIDNODE_RPC_URL
value: "__HIDNODE_RPC_URL__"
- name: HID_WALLET_MNEMONIC
value: "__HID_WALLET_MNEMONIC__"
- name: HOST
value: "__HOST__"
- name: LOG_LEVEL
value: __LOG_LEVEL__
- name: MAXIMUM_DELAY
value: "__MAXIMUM_DELAY__"
- name: MAX_BATCH_SIZE
value: "__MAX_BATCH_SIZE__"
- name: MINIMUM_DELAY
value: "__MINIMUM_DELAY__"
- name: NODE_ENV
value: __NODE_ENV__
- name: PORT
value: "__PORT__"
- name: REDIS_HOST
value: __REDIS_HOST__
- name: REDIS_PORT
value: "__REDIS_PORT__"
- name: SERVICE_END_POINT
value: __SERVICE_END_POINT__
- name: WHITELISTED_CORS
value: '[ "https://dashboard.hypermine.in","wallet-stage.hypersign.id" , "https://whitelist.hypermine.in", "https://wallet.hypermine.in", "https://ssi.hypermine.in", "http://localhost:4999", "https://hswallet-stage.netlify.app", "https://hyperfyre.netlify.app", "https://wallet-stage.hypersign.id/", "https://hswallet-stage.netlify.app","https://wallet-prajna.hypersign.id"]'

# spec:
# type: NodePort
# selector:
# app: auth-server-txn
# ports:
# - port: __PORT__
# targetPort: __PORT__
# protocol: TCP
volumes:
- name: auth-server-hypersign-json
secret:
secretName: auth-server-hypersign-json
---
apiVersion: v1
kind: Service
metadata:
name: auth-server-txn-service
namespace: hypermine-development

spec:
type: NodePort
selector:
app: auth-server-txn
ports:
- port: __PORT__
targetPort: __PORT__
protocol: TCP
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ COPY ./tsconfig.json .
RUN npm install
COPY . .
RUN npm run build
CMD [ "npm", "run","start"]
CMD cp /data/hypersign.json hypersign.json ; npm run start



Expand Down
4 changes: 3 additions & 1 deletion Txn.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ COPY ./tsconfig.json .
RUN npm install
COPY . .
RUN npm run build
CMD [ "npm", "run","service:start"]

CMD cp /data/hypersign.json hypersign.json ; npm run service:start;




Expand Down

0 comments on commit 8f3a53c

Please sign in to comment.