Skip to content

Commit 52143b0

Browse files
Merge pull request #1284 from credebl/develop
Develop - Merge sign and verify feature
2 parents e9f2179 + f2746cd commit 52143b0

24 files changed

+1482
-852
lines changed

.env.demo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ NATS_URL=nats://your-ip:4222
2929
REDIS_HOST=your-ip
3030
REDIS_PORT=6379
3131

32-
SENDGRID_API_KEY=
32+
SENDGRID_API_KEY=
3333

3434
WALLET_STORAGE_HOST=your-ip
3535
WALLET_STORAGE_PORT=5432
@@ -76,15 +76,15 @@ AWS_ORG_LOGO_BUCKET_NAME=
7676
# Required (As connecting to org requires Shortened url)
7777
AWS_S3_STOREOBJECT_ACCESS_KEY=
7878
AWS_S3_STOREOBJECT_SECRET_KEY=
79-
AWS_S3_STOREOBJECT_REGION=
79+
AWS_S3_STOREOBJECT_REGION=
8080
AWS_S3_STOREOBJECT_BUCKET=
8181

8282
# Please refere AWS to determine your bucket url
8383
# https://docs.aws.amazon.com/AmazonS3/latest/userguide/VirtualHosting.html#path-style-access
8484
SHORTENED_URL_DOMAIN='https://AWS_S3_STOREOBJECT_REGION.amazonaws.com/AWS_S3_STOREOBJECT_BUCKET'
8585
DEEPLINK_DOMAIN='https://link.credebl.id?url='
8686

87-
ENABLE_CORS_IP_LIST=http://localhost:3000, http://localhost:3001, http://localhost:5000,http://localhost:8085,https://verify.credebl.id,https://verifyed.credebl.id,https://verify-api.credebl.id,https://qa.credebl.id,https://dev.credebl.id,https://credebl.id
87+
ENABLE_CORS_IP_LIST=http://localhost:3000,http://localhost:3001,http://localhost:5000,http://localhost:8085
8888

8989
USER_NKEY_SEED=
9090
API_GATEWAY_NKEY_SEED=

Dockerfiles/Dockerfile.cloud-wallet

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
# Stage 1: Build the application
2-
FROM node:18-slim as build
2+
FROM node:18-alpine AS build
33
# Install OpenSSL
4+
RUN apk add --no-cache openssl
45
RUN npm install -g pnpm
56

6-
RUN apt-get update -y
7-
RUN apt-get --no-install-recommends install -y openssl
87
# Set the working directory
98
WORKDIR /app
109

@@ -25,10 +24,10 @@ RUN cd libs/prisma-service && npx prisma generate
2524
RUN pnpm run build cloud-wallet
2625

2726
# Stage 2: Create the final image
28-
FROM node:18-slim
27+
FROM node:18-alpine
28+
29+
RUN apk add --no-cache openssl
2930

30-
RUN apt-get update -y
31-
RUN apt-get --no-install-recommends install -y openssl
3231
# Set the working directory
3332
WORKDIR /app
3433
# RUN npm install -g pnpm

Dockerfiles/Dockerfile.seed

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
FROM node:18 as build
1+
FROM node:18-alpine
22

33
# Install pnpm
44
RUN npm install -g pnpm
55

6-
# Install PostgreSQL client (use apt for Debian-based images)
7-
RUN apt-get update && apt-get install -y postgresql-client
6+
RUN apk add --no-cache postgresql-client openssl
87

98
# Set working directory
109
WORKDIR /app
1110

1211
COPY . .
12+
RUN chmod +x /app/libs/prisma-service/prisma/scripts/geo_location_data_import.sh
13+
RUN chmod +x /app/libs/prisma-service/prisma/scripts/update_client_credential_data.sh
1314

15+
ENV PUPPETEER_SKIP_DOWNLOAD=true
1416
RUN pnpm i --ignore-scripts
1517

1618
# Run Prisma commands

Dockerfiles/Dockerfile.user

Lines changed: 8 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,20 @@
11
# Stage 1: Build the application
2-
FROM node:18-slim as build
3-
4-
2+
FROM node:18-alpine AS build
53

4+
# Install OpenSSL
5+
RUN apk add --no-cache openssl
66
RUN npm install -g pnpm
77

8-
# We don't need the standalone Chromium
9-
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
10-
ENV PUPPETEER_SKIP_DOWNLOAD true
11-
12-
# Install Google Chrome Stable and fonts
13-
# Note: this installs the necessary libs to make the browser work with Puppeteer.
14-
RUN apt-get update && apt-get install openssl gnupg wget -y && \
15-
wget --quiet --output-document=- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/google-archive.gpg && \
16-
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' && \
17-
apt-get update && \
18-
apt-get install google-chrome-stable -y --no-install-recommends && \
19-
rm -rf /var/lib/apt/lists/*
20-
21-
# RUN apk update && apk list --all-versions chromium
228
# Set the working directory
239
WORKDIR /app
2410

2511
# Copy package.json and package-lock.json
2612
COPY package.json ./
2713

14+
ENV PUPPETEER_SKIP_DOWNLOAD=true
15+
2816
# Install dependencies
29-
RUN pnpm install
17+
RUN pnpm i --ignore-scripts
3018

3119
# Copy the rest of the application code
3220
COPY . .
@@ -37,24 +25,11 @@ RUN cd libs/prisma-service && npx prisma generate
3725
RUN pnpm run build user
3826

3927
# Stage 2: Create the final image
40-
FROM node:18-slim
41-
42-
# We don't need the standalone Chromium
43-
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
44-
ENV PUPPETEER_SKIP_DOWNLOAD true
45-
46-
# Install Google Chrome Stable and fonts
47-
# Note: this installs the necessary libs to make the browser work with Puppeteer.
48-
RUN apt-get update && apt-get install openssl gnupg wget -y && \
49-
wget --quiet --output-document=- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/google-archive.gpg && \
50-
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' && \
51-
apt-get update && \
52-
apt-get install google-chrome-stable -y --no-install-recommends && \
53-
rm -rf /var/lib/apt/lists/*
28+
FROM node:18-alpine
5429

30+
RUN apk add --no-cache openssl
5531
# Set the working directory
5632
WORKDIR /app
57-
RUN npm install -g pnpm
5833

5934
# Copy the compiled code from the build stage
6035
COPY --from=build /app/dist/apps/user/ ./dist/apps/user/

Dockerfiles/Dockerfile.utility

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
# Stage 1: Build the application
2-
FROM node:18-slim as build
2+
FROM node:18-alpine AS build
33

4+
# Install OpenSSL
5+
RUN apk add --no-cache openssl
46
RUN npm install -g pnpm
5-
6-
RUN apt-get update -y
7-
RUN apt-get --no-install-recommends install -y openssl
87
# Set the working directory
98
WORKDIR /app
109

@@ -25,10 +24,9 @@ RUN cd libs/prisma-service && npx prisma generate
2524
RUN pnpm run build utility
2625

2726
# Stage 2: Create the final image
28-
FROM node:18-slim
27+
FROM node:18-alpine
2928

30-
RUN apt-get update -y
31-
RUN apt-get --no-install-recommends install -y openssl
29+
RUN apk add --no-cache openssl
3230
# Set the working directory
3331
WORKDIR /app
3432
# RUN npm install -g pnpm

agent.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RPC_URL=https://polygon-rpc.com
2020
# RPC_URL=https://rpc-amoy.polygon.technology
2121

2222
# Add url and token from your file server
23-
SERVER_URL=https://schema.credebl.id
23+
SERVER_URL=
2424
FILE_SERVER_TOKEN=
2525

2626
BCOVRIN_TEST_GENESIS='{"reqSignature":{},"txn":{"data":{"data":{"alias":"Node1","blskey":"4N8aUNHSgjQVgkpm8nhNEfDf6txHznoYREg9kirmJrkivgL4oSEimFF6nsQ6M41QvhM2Z33nves5vfSn9n1UwNFJBYtWVnHYMATn76vLuL3zU88KyeAYcHfsih3He6UHcXDxcaecHVz6jhCYz1P2UZn2bDVruL5wXpehgBfBaLKm3Ba","blskey_pop":"RahHYiCvoNCtPTrVtP7nMC5eTYrsUA8WjXbdhNc8debh1agE9bGiJxWBXYNFbnJXoXhWFMvyqhqhRoq737YQemH5ik9oL7R4NTTCz2LEZhkgLJzB3QRQqJyBNyv7acbdHrAT8nQ9UkLbaVL9NBpnWXBTw4LEMePaSHEw66RzPNdAX1","client_ip":"138.197.138.255","client_port":9702,"node_ip":"138.197.138.255","node_port":9701,"services":["VALIDATOR"]},"dest":"Gw6pDLhcBcoQesN72qfotTgFa7cbuqZpkX3Xo6pLhPhv"},"metadata":{"from":"Th7MpTaRZVRYnPiabds81Y"},"type":"0"},"txnMetadata":{"seqNo":1,"txnId":"fea82e10e894419fe2bea7d96296a6d46f50f93f9eeda954ec461b2ed2950b62"},"ver":"1"}

0 commit comments

Comments
 (0)