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

Create Docker Files for All UI Applications #1689

Closed
7 tasks done
prasad-takale-eminds opened this issue Aug 1, 2024 · 2 comments
Closed
7 tasks done

Create Docker Files for All UI Applications #1689

prasad-takale-eminds opened this issue Aug 1, 2024 · 2 comments
Assignees
Labels
dev-ops Dev ops related

Comments

@prasad-takale-eminds
Copy link
Collaborator

prasad-takale-eminds commented Aug 1, 2024

Description

This issue aims to create Docker files for all UI applications within the Beckn project. The goal is to containerize the UI applications to ensure consistency across different environments, simplify deployment, and improve scalability.

Goals

  • Develop Dockerfiles for each UI application.
  • Ensure Dockerfiles are optimized for performance and security.
  • Validate the Dockerfiles through testing.

Expected Outcome

  • Dockerfiles for all UI applications are created and tested.
  • Consistent deployment of UI applications across different environments.
  • Simplified deployment process and improved scalability.

Acceptance Criteria

  • Dockerfiles are created for all UI applications.
  • Dockerfiles are reviewed and optimized for performance and security.
  • Dockerfiles are tested and validated.
  • UI applications run correctly using the Dockerfiles.

Mockups / Wireframes

Include any relevant mockups or wireframes here.

Product Name

Beckn

Domain

UI Application

Tech Skills Needed

  • Experience with Docker and containerization.
  • Knowledge of creating and managing Dockerfiles.
  • Familiarity with UI application architecture.

Complexity

Medium

Category

Deployment

Sub Category

Containerization

@prasad-takale-eminds prasad-takale-eminds self-assigned this Aug 1, 2024
@prasad-takale-eminds prasad-takale-eminds added the dev-ops Dev ops related label Aug 1, 2024
@prasad-takale-eminds
Copy link
Collaborator Author

We have created the Dockerfile for the UI application.
Below is the file for retail application.

FROM node:18.18.2-alpine3.18

# Set the working directory in the container
WORKDIR /app

# Copy the package.json and yarn.lock files to the container
COPY package.json package-lock.json yarn.lock ./

# Install dependencies
#RUN yarn install

# Copy the rest of the application code to the container
COPY . .

# Install dependencies
RUN yarn install

# Build the retail application
RUN yarn build:retail


# Expose the port the application runs on (adjust if necessary)
EXPOSE 3000

# Start the application
CMD ["yarn", "workspace", "@beckn-ui/retail", "start"]```

@prasad-takale-eminds
Copy link
Collaborator Author

PR for the same.
#1732

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-ops Dev ops related
Projects
None yet
Development

No branches or pull requests

1 participant