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

refactor: add db seed command in docker files #996

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
fix: sonarlint issues
Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com>
  • Loading branch information
KulkarniShashank committed Sep 16, 2024
commit e9848cc6c2bcea2714cb28bb8efdf049a68b4fcf
9 changes: 7 additions & 2 deletions Dockerfiles/Dockerfile.agent-provisioning
Original file line number Diff line number Diff line change
@@ -2,13 +2,18 @@
FROM node:18-alpine as build

RUN set -eux \
# Install packages and dependencies
&& apk --no-cache add \
openssh-client \
aws-cli \
docker \
docker-compose \
postgresql-client \
# Install pnpm globally without running scripts
&& npm install -g pnpm --ignore-scripts \
# Update PATH for pnpm
&& export PATH=$PATH:/usr/lib/node_modules/pnpm/bin \
# Clean up
&& rm -rf /var/cache/apk/*

# Add PostgreSQL client to the image
@@ -21,9 +26,9 @@ WORKDIR /app
COPY package.json ./

# Install dependencies
RUN pnpm i
RUN pnpm i \
&& pnpm add -D ts-node typescript @types/node --ignore-scripts

RUN pnpm add -D ts-node typescript @types/node --ignore-scripts

# Copy the rest of the application code
COPY . .
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.agent-service
Original file line number Diff line number Diff line change
@@ -20,9 +20,9 @@ WORKDIR /app
COPY package.json ./

# Install dependencies
RUN pnpm i
RUN pnpm i \
&& pnpm add -D ts-node typescript @types/node --ignore-scripts

RUN pnpm add -D ts-node typescript @types/node --ignore-scripts

# Copy the rest of the application code
COPY . .
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.api-gateway
Original file line number Diff line number Diff line change
@@ -13,9 +13,9 @@ COPY package.json ./
# COPY package-lock.json ./

# Install dependencies
RUN pnpm i
RUN pnpm i \
&& pnpm add -D ts-node typescript @types/node --ignore-scripts

RUN pnpm add -D ts-node typescript @types/node --ignore-scripts

# Copy the rest of the application code
COPY . .
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.cloud-wallet
Original file line number Diff line number Diff line change
@@ -14,9 +14,9 @@ WORKDIR /app
COPY package.json ./

# Install dependencies
RUN pnpm install
RUN pnpm i \
&& pnpm add -D ts-node typescript @types/node --ignore-scripts

RUN pnpm add -D ts-node typescript @types/node --ignore-scripts

# Copy the rest of the application code
COPY . .
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.connection
Original file line number Diff line number Diff line change
@@ -13,9 +13,9 @@ COPY package.json ./
#COPY package-lock.json ./

# Install dependencies
RUN pnpm i
RUN pnpm i \
&& pnpm add -D ts-node typescript @types/node --ignore-scripts

RUN pnpm add -D ts-node typescript @types/node --ignore-scripts

# Copy the rest of the application code
COPY . .
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.ecosystem
Original file line number Diff line number Diff line change
@@ -13,9 +13,9 @@ COPY package.json ./
#COPY package-lock.json ./

# Install dependencies
RUN pnpm i
RUN pnpm i \
&& pnpm add -D ts-node typescript @types/node --ignore-scripts

RUN pnpm add -D ts-node typescript @types/node --ignore-scripts

# Copy the rest of the application code
COPY . .
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.geolocation
Original file line number Diff line number Diff line change
@@ -13,9 +13,9 @@ COPY package.json ./
#COPY package-lock.json ./

# Install dependencies
RUN pnpm i
RUN pnpm i \
&& pnpm add -D ts-node typescript @types/node --ignore-scripts

RUN pnpm add -D ts-node typescript @types/node --ignore-scripts

# Copy the rest of the application code
COPY . .
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.issuance
Original file line number Diff line number Diff line change
@@ -13,9 +13,9 @@ COPY package.json ./
#COPY package-lock.json ./

# Install dependencies
RUN pnpm i
RUN pnpm i \
&& pnpm add -D ts-node typescript @types/node --ignore-scripts

RUN pnpm add -D ts-node typescript @types/node --ignore-scripts

# Copy the rest of the application code
COPY . .
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.ledger
Original file line number Diff line number Diff line change
@@ -13,9 +13,9 @@ COPY package.json ./
#COPY package-lock.json ./

# Install dependencies
RUN pnpm i
RUN pnpm i \
&& pnpm add -D ts-node typescript @types/node --ignore-scripts

RUN pnpm add -D ts-node typescript @types/node --ignore-scripts

# Copy the rest of the application code
COPY . .
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.notification
Original file line number Diff line number Diff line change
@@ -13,9 +13,9 @@ COPY package.json ./
#COPY package-lock.json ./

# Install dependencies
RUN pnpm i --ignore-scripts
RUN pnpm i \
&& pnpm add -D ts-node typescript @types/node --ignore-scripts

RUN pnpm add -D ts-node typescript @types/node --ignore-scripts

# Copy the rest of the application code
COPY . .
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.organization
Original file line number Diff line number Diff line change
@@ -12,9 +12,9 @@ WORKDIR /app
COPY package.json ./

# Install dependencies
RUN pnpm i
RUN pnpm i \
&& pnpm add -D ts-node typescript @types/node --ignore-scripts

RUN pnpm add -D ts-node typescript @types/node --ignore-scripts

# Copy the rest of the application code
COPY . .
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.user
Original file line number Diff line number Diff line change
@@ -26,9 +26,9 @@ WORKDIR /app
COPY package.json ./

# Install dependencies
RUN pnpm install
RUN pnpm i \
&& pnpm add -D ts-node typescript @types/node --ignore-scripts

RUN pnpm add -D ts-node typescript @types/node --ignore-scripts

# Copy the rest of the application code
COPY . .
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.utility
Original file line number Diff line number Diff line change
@@ -14,9 +14,9 @@ WORKDIR /app
COPY package.json ./

# Install dependencies
RUN pnpm install
RUN pnpm i \
&& pnpm add -D ts-node typescript @types/node --ignore-scripts

RUN pnpm add -D ts-node typescript @types/node --ignore-scripts

# Copy the rest of the application code
COPY . .
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.verification
Original file line number Diff line number Diff line change
@@ -12,9 +12,9 @@ WORKDIR /app
COPY package.json ./

# Install dependencies
RUN pnpm i
RUN pnpm i \
&& pnpm add -D ts-node typescript @types/node --ignore-scripts

RUN pnpm add -D ts-node typescript @types/node --ignore-scripts

# Copy the rest of the application code
COPY . .
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.webhook
Original file line number Diff line number Diff line change
@@ -13,9 +13,9 @@ COPY package.json ./
#COPY package-lock.json ./

# Install dependencies
RUN pnpm i
RUN pnpm i \
&& pnpm add -D ts-node typescript @types/node --ignore-scripts

RUN pnpm add -D ts-node typescript @types/node --ignore-scripts

# Copy the rest of the application code
COPY . .