Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge: develop to qa #723

Merged
merged 123 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
aefe159
Docker file changes comment npx generate and migrate
KambleSahil3 Mar 7, 2024
c9722ed
comment puppeter installation in utility
KambleSahil3 Mar 8, 2024
ac7dcaf
yarn.lock fie
KambleSahil3 Apr 5, 2024
42c3e8d
Merge branch 'develop' of https://github.com/credebl/platform into Do…
KambleSahil3 Apr 5, 2024
c05936c
added primsa generate and mirgate in first stage
KambleSahil3 Apr 5, 2024
1510b2f
refactor: ledger api
bhavanakarwade Apr 8, 2024
932a6a9
refactor: create schema api
bhavanakarwade Apr 8, 2024
90acaf3
resolved sonar lint checks
bhavanakarwade Apr 8, 2024
2f5957f
fix: modify database column name
bhavanakarwade Apr 10, 2024
0ba0843
Merge branch 'develop' of https://github.com/credebl/platform into re…
bhavanakarwade Apr 10, 2024
c183659
fix: modify validation message
bhavanakarwade Apr 11, 2024
4933166
Merge branch 'develop' of https://github.com/credebl/platform into re…
bhavanakarwade Apr 11, 2024
6c2bfbe
fix: security vulnerabilities
pranalidhanavade Apr 11, 2024
a856497
added only npx deploy in CMD
KambleSahil3 Apr 12, 2024
29f8fdb
fix: security issues
bhavanakarwade Apr 12, 2024
778cc96
refactor: env sample
bhavanakarwade Apr 12, 2024
0af4b47
Merge pull request #655 from credebl/security-fixes
sanjay-k1910 Apr 12, 2024
b2ab155
fix: API error for get credef by id (#656)
GHkrishna Apr 12, 2024
235a27d
refactor: updated webauthn version to latest (9.0.3) (#657)
tipusinghaw Apr 12, 2024
a2857e3
fix: http method for delete
sanjay-k1910 Apr 12, 2024
6492b14
Merge pull request #658 from credebl/fix/http-method
KulkarniShashank Apr 12, 2024
bd0a8bd
resolved conflicts
bhavanakarwade Apr 15, 2024
4f07bb7
refactor: ledger table
bhavanakarwade Apr 15, 2024
fdf8352
refactor: update import of enum
bhavanakarwade Apr 15, 2024
f97d9ec
Merge branch 'develop' of https://github.com/credebl/platform into Do…
KambleSahil3 Apr 15, 2024
bd3cef5
fix: added the validation for the pageNumber and pageSize
Apr 15, 2024
4db3967
refactor: cred-def controller APIs (#661)
bhavanakarwade Apr 15, 2024
17d15c9
refactor: update import of enum
bhavanakarwade Apr 15, 2024
19c0c63
Merge branch 'develop' of https://github.com/credebl/platform into re…
bhavanakarwade Apr 15, 2024
c3646c1
Merge branch 'develop' of https://github.com/credebl/platform into Do…
KambleSahil3 Apr 15, 2024
51de929
Changed stage 1:npx commands to migrate and generate in dockerfiles
KambleSahil3 Apr 15, 2024
264074e
fix: added the organization name validation
Apr 15, 2024
52ce4ab
fix: validation for UUID fixed for connectionId in proof
GHkrishna Apr 15, 2024
8c21cf8
Merge branch 'fix/zap-security' of https://github.com/credebl/platfor…
GHkrishna Apr 15, 2024
19324f4
Merge pull request #664 from credebl/Dockerfile_changes
Sheetal-ayanworks Apr 16, 2024
4842d4b
Merge branch 'develop' of https://github.com/credebl/platform into Do…
KambleSahil3 Apr 16, 2024
84864fc
fix: path traversal for updating org details
GHkrishna Apr 16, 2024
d3b9519
fix: added the validation in connection and ecosystem module for sql-…
Apr 16, 2024
8ce1d2b
Merge branch 'fix/zap-security' of https://github.com/credebl/platfor…
Apr 16, 2024
f431cba
Merge branch 'develop' of https://github.com/credebl/platform into fi…
Apr 16, 2024
a14ca7b
Merge branch 'fix/zap-security' of https://github.com/credebl/platfor…
GHkrishna Apr 16, 2024
0ac35e0
Removed all unnecessary comments
KambleSahil3 Apr 16, 2024
843703b
Merge branch 'develop' of https://github.com/credebl/platform into re…
bhavanakarwade Apr 16, 2024
6328774
refactor: interface parameters
bhavanakarwade Apr 16, 2024
c6636cc
Merge pull request #648 from credebl/refactor/ledger-api
bhavanakarwade Apr 16, 2024
d7e9cfa
fix: added the decode URI component in main.ts
Apr 16, 2024
15c649c
Merge branch 'fix/zap-security' of https://github.com/credebl/platfor…
Apr 16, 2024
d1365c4
fix: added the messages for the invalid URL
Apr 17, 2024
dec7fcf
Merge pull request #668 from credebl/Dockerfile_changes
Sheetal-ayanworks Apr 17, 2024
b7236cd
fix: logo uri validation in image update for org for security testing
GHkrishna Apr 17, 2024
7a0d9d0
Merge branch 'fix/zap-security' of https://github.com/credebl/platfor…
GHkrishna Apr 17, 2024
1b413ef
fix: update validation for empty string for logo
GHkrishna Apr 17, 2024
07237f4
fix: name validation in update org
GHkrishna Apr 17, 2024
7508edf
refactor:added `outOfBandId` into issuance webhook (#669)
pallavighule Apr 18, 2024
70c5743
feat: multi-did creation implementation for an organization (#667)
tipusinghaw Apr 23, 2024
86a6191
feat: multiselect connection while issuance (#629)
bhavanakarwade Apr 23, 2024
e5ac245
fix: fix wallet spinup dto issue (#675)
tipusinghaw Apr 24, 2024
425187c
add name attribute in w3c presentationDefinition payload (#678)
ankita-p17 Apr 24, 2024
38c1bac
add name attribute in w3c presentationDefinition payload
ankita-p17 Apr 24, 2024
14507b3
add name attribute in w3c presentationDefinition payload
ankita-p17 Apr 24, 2024
97ef28f
fix: add hotfixes from main
GHkrishna Apr 25, 2024
554096c
Merge pull request #680 from credebl/hotfix-from-main/urlShortening
GHkrishna Apr 25, 2024
2357e63
update validation on creddef field, optional for jsonld
ankita-p17 Apr 25, 2024
d880598
Merge pull request #682 from credebl/fix/dto-validations
sairanjit Apr 25, 2024
5b09ffe
feat: add organization(s) into ecosystem (#670)
bhavanakarwade Apr 26, 2024
9918f11
added openssl installation
KambleSahil3 Apr 26, 2024
0b1f02a
Update Dockerfile.utility fixed Sonar cloud issues
KambleSahil3 Apr 26, 2024
952f667
Merge pull request #685 from credebl/Dockerfile_change
Sheetal-ayanworks Apr 26, 2024
ebd51ed
feat: implement w3c credential offer functionality with connection id
bhavanakarwade Apr 29, 2024
4506745
refactor: dto example
bhavanakarwade Apr 29, 2024
655044c
Merge pull request #688 from credebl/feat/w3c-issuance-with-connection
pallavighule Apr 29, 2024
7886ead
refactor: remove legacy connection invitation
Apr 29, 2024
fa6131c
Merge branch 'develop' of https://github.com/credebl/platform into re…
Apr 29, 2024
c7106c7
refactor: solved duplication error in agent-service
Apr 29, 2024
5c2e0a1
Merge pull request #689 from credebl/refactor/remove-legacy-invitation
pallavighule Apr 29, 2024
cf342cd
fix: set primary did issue (#691)
tipusinghaw Apr 30, 2024
8ecd379
Feat/verification w3c with connection (#690)
GHkrishna Apr 30, 2024
159098c
Merge branch 'develop' of https://github.com/credebl/platform into fi…
GHkrishna Apr 30, 2024
f86d35f
add: zap changes merged from main
GHkrishna Apr 30, 2024
011a03e
feat: w3c credential for issuance by multiple sconnection id
bhavanakarwade Apr 30, 2024
4514ab9
Merge branch 'develop' of https://github.com/credebl/platform into fe…
bhavanakarwade Apr 30, 2024
8e7b078
feat:add-invitation-did-for-reuse-connection
pallavighule Apr 30, 2024
bdd165b
Merge pull request #693 from credebl/feat/w3c-issuance-with-connection
pallavighule Apr 30, 2024
c5d3c39
Merge pull request #694 from credebl/feat/add-invitation-did-for-reus…
pallavighule Apr 30, 2024
8114bc7
Merge branch 'develop' of https://github.com/credebl/platform into fi…
GHkrishna May 2, 2024
937baf1
feat: fetch all credential definitions from platform (#684)
bhavanakarwade May 2, 2024
f75a1b5
fix: transaction request message (bug) (#686)
bhavanakarwade May 2, 2024
70ed66b
Merge branch 'develop' of https://github.com/credebl/platform into fi…
GHkrishna May 2, 2024
2853afa
Merge pull request #692 from credebl/fix/zap-security
GHkrishna May 2, 2024
0bfda3a
Added goalCode in OOB presentationRequest payload
ankita-p17 May 5, 2024
07234be
Merge branch 'develop' of https://github.com/credebl/platform into de…
ankita-p17 May 5, 2024
5af5107
fix: example in DTO
GHkrishna May 7, 2024
b80f053
Merge pull request #709 from credebl/fix/DTO-example
GHkrishna May 7, 2024
f1c2bae
fix: triming issues while getting all credential definitions by schem…
GHkrishna May 7, 2024
480c31f
fix: store did document while creating did (#706)
tipusinghaw May 8, 2024
d8ad943
fix/feat : Updated W3C schema response and Implemented schema store l…
tipusinghaw May 14, 2024
756a8d9
fix: did service endpoint while creating DID (#715)
tipusinghaw May 14, 2024
55a727b
refactor: updated sh file to pass schema manager URL (#716)
tipusinghaw May 14, 2024
2fe279b
feat: on-premises agent configuration and spin-up
May 7, 2024
b71b1c9
fix: example in DTO
GHkrishna May 7, 2024
50c543c
fix: store did document while creating did (#706)
tipusinghaw May 8, 2024
554652f
feat: on-premises connection invitation creation
May 9, 2024
06fd58f
refactor: Added seprate method for agent configure
May 13, 2024
9273a0e
fix: solved the sonarlint issues
May 13, 2024
930a5b4
fix: solved the docker command as per version
May 13, 2024
77887c6
fix: solved the bug when store the dedicated connection, issuance and…
May 14, 2024
a5e6654
fix: resolved the error handling in agent config method
May 14, 2024
bb34fa2
fix/feat : Updated W3C schema response and Implemented schema store l…
tipusinghaw May 14, 2024
e6b8f88
fix: did service endpoint while creating DID (#715)
tipusinghaw May 14, 2024
73b143d
fix: did service endpoint while creating DID (#715)
tipusinghaw May 14, 2024
8c6f305
Added the error logger in agent configure
May 14, 2024
838f806
fix/feat : Updated W3C schema response and Implemented schema store l…
tipusinghaw May 14, 2024
1b92d34
Merge branch 'develop' of https://github.com/credebl/platform into fe…
May 14, 2024
9e2e6a1
fix: validation for inboundEndpoint domain
May 16, 2024
3f75994
fix: remove json files
May 16, 2024
89ca4c9
fix: remove unnecessary files
May 16, 2024
2d3f391
fix: added validation for wallet name
May 16, 2024
452f92f
Merge pull request #713 from credebl/feat/on-premises-agent
KulkarniShashank May 16, 2024
9bc9938
fix/w3c schema (#721)
tipusinghaw May 16, 2024
04b2154
Merge branch 'qa' of https://github.com/credebl/platform into develop
May 16, 2024
02a1ce8
Added the logger in agent configure function
May 16, 2024
e9b3606
Merge branch 'develop' of https://github.com/credebl/platform into fi…
GHkrishna May 16, 2024
e3dfbd3
Merge pull request #710 from credebl/fix/get-verification-by-schemaId
GHkrishna May 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,6 @@ KEYCLOAK_ADMIN_URL=http://localhost:8080
KEYCLOAK_MASTER_REALM=xxxxxxx
KEYCLOAK_MANAGEMENT_CLIENT_ID=xxxxxxx
KEYCLOAK_MANAGEMENT_CLIENT_SECRET=xxxxxxx
KEYCLOAK_REALM=xxxxxxx
KEYCLOAK_REALM=xxxxxxx

ENABLE_CORS_IP_LIST="" # Provide a list of domains that are allowed to use this server
29 changes: 5 additions & 24 deletions Dockerfiles/Dockerfile.agent-provisioning
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# Stage 1: Build the application
FROM node:18-alpine as build
# RUN npm install -g pnpm
# Install AWS CLI
# RUN apk update
# RUN apk add openssh-client
# RUN apk update
# RUN apk add aws-cli

RUN set -eux \
&& apk --no-cache add \
openssh-client \
Expand All @@ -16,14 +11,6 @@ RUN set -eux \
&& export PATH=$PATH:/usr/lib/node_modules/pnpm/bin \
&& rm -rf /var/cache/apk/*

RUN docker --version && \
docker-compose --version

ARG ROOT_PATH
ENV ROOT_PATH ${ROOT_PATH}

RUN echo "ROOT_PATH is set to: $ROOT_PATH"

# Set the working directory
WORKDIR /app

Expand All @@ -37,19 +24,16 @@ RUN pnpm i
COPY . .

# Generate Prisma client
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate && npx prisma generate
RUN ls -R /app/apps/agent-provisioning/AFJ/

# Build the user service
RUN pnpm run build agent-provisioning

# Stage 2: Create the final image
FROM node:18-alpine as prod
# Install AWS CLI
# RUN apk update
# RUN apk add openssh-client
# RUN apk update
# RUN apk add aws-cli

RUN set -eux \
&& apk --no-cache add \
openssh-client \
Expand Down Expand Up @@ -86,7 +70,4 @@ RUN chmod 777 /app/agent-provisioning/AFJ/token
COPY libs/ ./libs/

# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/agent-provisioning/main.js $ROOT_PATH"]

# docker build -t agent-provisioning-service -f Dockerfiles/Dockerfile.agent-provisioning .
# docker run -d --env-file .env --name agent-provisioning-service docker.io/library/agent-provisioning-service
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/agent-provisioning/main.js"]
9 changes: 3 additions & 6 deletions Dockerfiles/Dockerfile.agent-service
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ RUN pnpm i

# Copy the rest of the application code
COPY . .
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate && npx prisma generate

# Build the user service
RUN pnpm run build agent-service
Expand Down Expand Up @@ -48,8 +49,4 @@ COPY --from=build /app/libs/ ./libs/
COPY --from=build /app/node_modules ./node_modules

# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma migrate deploy && cd ../.. && node dist/apps/agent-service/main.js"]

# docker build -t agent-service -f Dockerfiles/Dockerfile.agent-service .
# docker run -d --env-file .env --name agent-service docker.io/library/agent-service
# docker logs -f agent-service
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/agent-service/main.js"]
5 changes: 3 additions & 2 deletions Dockerfiles/Dockerfile.api-gateway
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ RUN pnpm i

# Copy the rest of the application code
COPY . .
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate && npx prisma generate

# Build the api-gateway service
RUN pnpm run build api-gateway
Expand All @@ -33,4 +34,4 @@ COPY --from=build /app/node_modules ./node_modules
# COPY --from=build /app/uploadedFiles ./uploadedFiles

# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/api-gateway/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/api-gateway/main.js"]
9 changes: 3 additions & 6 deletions Dockerfiles/Dockerfile.connection
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ RUN pnpm i

# Copy the rest of the application code
COPY . .
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate && npx prisma generate

# Build the connection service
RUN pnpm run build connection
Expand All @@ -36,8 +37,4 @@ COPY --from=build /app/node_modules ./node_modules
#RUN npm i --only=production

# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/connection/main.js"]

# docker build -t connection -f Dockerfiles/Dockerfile.connection .
# docker run -d --env-file .env --name connection docker.io/library/connection
# docker logs -f connection
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/connection/main.js"]
9 changes: 3 additions & 6 deletions Dockerfiles/Dockerfile.ecosystem
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ RUN pnpm i

# Copy the rest of the application code
COPY . .
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate && npx prisma generate

# Build the issuance service
RUN pnpm run build ecosystem
Expand All @@ -34,8 +35,4 @@ COPY --from=build /app/node_modules ./node_modules


# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/ecosystem/main.js"]

# docker build -t ecosystem -f Dockerfiles/Dockerfile.ecosystem .
# docker run -d --env-file .env --name ecosystem docker.io/library/ecosystem
# docker logs -f ecosystem
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/ecosystem/main.js"]
10 changes: 4 additions & 6 deletions Dockerfiles/Dockerfile.issuance
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ RUN pnpm i

# Copy the rest of the application code
COPY . .
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate && npx prisma generate


# Build the issuance service
RUN pnpm run build issuance
Expand All @@ -35,8 +37,4 @@ COPY --from=build /app/node_modules ./node_modules


# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/issuance/main.js"]

# docker build -t issuance -f Dockerfiles/Dockerfile.issuance .
# docker run -d --env-file .env --name issuance docker.io/library/issuance
# docker logs -f issuance
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/issuance/main.js"]
10 changes: 4 additions & 6 deletions Dockerfiles/Dockerfile.ledger
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ RUN pnpm i

# Copy the rest of the application code
COPY . .
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate && npx prisma generate


# Build the ledger service
RUN npm run build ledger
Expand All @@ -34,8 +36,4 @@ COPY --from=build /app/libs/ ./libs/
COPY --from=build /app/node_modules ./node_modules

# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/ledger/main.js"]

# docker build -t ledger -f Dockerfiles/Dockerfile.ledger .
# docker run -d --env-file .env --name ledger docker.io/library/ledger
# docker logs -f ledger
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/ledger/main.js"]
10 changes: 4 additions & 6 deletions Dockerfiles/Dockerfile.notification
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ RUN pnpm i --ignore-scripts

# Copy the rest of the application code
COPY . .
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate && npx prisma generate


# Build the notification service
RUN npm run build notification
Expand All @@ -34,8 +36,4 @@ COPY --from=build /app/libs/ ./libs/
COPY --from=build /app/node_modules ./node_modules

# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/notification/main.js"]

# docker build -t notification -f Dockerfiles/Dockerfile.notification .
# docker run -d --env-file .env --name notification docker.io/library/notification
# docker logs -f notification
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/notification/main.js"]
10 changes: 4 additions & 6 deletions Dockerfiles/Dockerfile.organization
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ RUN pnpm i

# Copy the rest of the application code
COPY . .
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate && npx prisma generate


# Build the organization service
RUN pnpm run build organization
Expand All @@ -33,8 +35,4 @@ COPY --from=build /app/libs/ ./libs/
COPY --from=build /app/node_modules ./node_modules

# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/organization/main.js"]

# docker build -t organization -f Dockerfiles/Dockerfile.organization .
# docker run -d --env-file .env --name issuance docker.io/library/organization
# docker logs -f organization
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/organization/main.js"]
9 changes: 3 additions & 6 deletions Dockerfiles/Dockerfile.user
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ RUN pnpm install

# Copy the rest of the application code
COPY . .
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate && npx prisma generate

# Build the user service
RUN pnpm run build user
Expand Down Expand Up @@ -62,8 +63,4 @@ COPY --from=build /app/node_modules ./node_modules


# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && npx prisma && cd ../.. && node dist/apps/user/main.js"]

# docker build -t user -f Dockerfiles/Dockerfile.user .
# docker run -d --env-file .env --name user docker.io/library/user
# docker logs -f user
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/user/main.js"]
38 changes: 7 additions & 31 deletions Dockerfiles/Dockerfile.utility
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,8 @@
FROM node:18-slim as build
RUN npm install -g pnpm

# We don't need the standalone Chromium
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true

# Install Google Chrome Stable and fonts
# Note: this installs the necessary libs to make the browser work with Puppeteer.
RUN apt-get update && apt-get install gnupg wget -y && \
wget --quiet --output-document=- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/google-archive.gpg && \
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' && \
apt-get update && \
apt-get install google-chrome-stable -y --no-install-recommends && \
rm -rf /var/lib/apt/lists/*

# RUN apk update && apk list --all-versions chromium
RUN apt-get update -y
RUN apt-get --no-install-recommends install -y openssl
# Set the working directory
WORKDIR /app

Expand All @@ -26,26 +15,17 @@ RUN pnpm install

# Copy the rest of the application code
COPY . .
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate && npx prisma generate

# Build the user service
RUN pnpm run build utility

# Stage 2: Create the final image
FROM node:18-slim

# We don't need the standalone Chromium
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true

# Install Google Chrome Stable and fonts
# Note: this installs the necessary libs to make the browser work with Puppeteer.
RUN apt-get update && apt-get install gnupg wget -y && \
wget --quiet --output-document=- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/google-archive.gpg && \
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' && \
apt-get update && \
apt-get install google-chrome-stable -y --no-install-recommends && \
rm -rf /var/lib/apt/lists/*

RUN apt-get update -y
RUN apt-get --no-install-recommends install -y openssl
# Set the working directory
WORKDIR /app
RUN npm install -g pnpm
Expand All @@ -60,8 +40,4 @@ COPY --from=build /app/node_modules ./node_modules


# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && npx prisma && cd ../.. && node dist/apps/utility/main.js"]

# docker build -t user -f Dockerfiles/Dockerfile.user .
# docker run -d --env-file .env --name user docker.io/library/user
# docker logs -f user
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/utility/main.js"]
9 changes: 3 additions & 6 deletions Dockerfiles/Dockerfile.verification
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ RUN pnpm i

# Copy the rest of the application code
COPY . .
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate && npx prisma generate

# Build the user service
RUN npm run build verification
Expand All @@ -32,8 +33,4 @@ COPY --from=build /app/libs/ ./libs/
COPY --from=build /app/node_modules ./node_modules

# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/verification/main.js"]

# docker build -t verification -f Dockerfiles/Dockerfile.verification .
# docker run -d --env-file .env --name verification docker.io/library/verification
# docker logs -f verification
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/verification/main.js"]
9 changes: 3 additions & 6 deletions Dockerfiles/Dockerfile.webhook
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ RUN pnpm i

# Copy the rest of the application code
COPY . .
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate && npx prisma generate

# Build the webhook service
RUN pnpm run build webhook
Expand All @@ -35,8 +36,4 @@ COPY --from=build /app/node_modules ./node_modules


# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/webhook/main.js"]

# docker build -t webhook -f Dockerfiles/Dockerfile.webhook .
# docker run -d --env-file .env --name webhook docker.io/library/webhook
# docker logs -f webhook
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/webhook/main.js"]
Loading