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

Added dockerfile for web and updated docker-compose #4186

Closed

Conversation

ShivamKumar14
Copy link

Type of Change

  • Bugfix
  • New feature
  • [x ] Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • [ x] This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

I manually tested the changes by spinning up the Docker Compose environment and verifying that the web client and control center services are properly integrated with the existing services. All services were able to communicate with each other as expected.

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible
  • I added a CHANGELOG entry if applicable

@ShivamKumar14 ShivamKumar14 requested review from a team as code owners March 24, 2024 15:06
@@ -0,0 +1,29 @@
# Use official Node.js image as the base image for web client
FROM node:14 as web-client-builder
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use a more recent version of node?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, sure. done

Comment on lines 7 to 14
# Copy package.json and package-lock.json to the working directory
COPY package*.json ./

# Install dependencies
RUN npm install

# Copy the rest of the application code to the working directory
COPY . .
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The source of the web client and demo app can be found at https://github.com/juspay/hyperswitch-web.

So you'd have to either add this Dockerfile there, or add steps in this Dockerfile to clone the repository.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, done

Comment on lines +125 to +127
web-client:
# Configuration for the web client service
image: <web_client_image>:<tag>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As it stands, we don't have Docker images for the web client on Docker Hub, we'll have to build and start the service instead.

@SanchithHegde SanchithHegde added A-infra Area: Infrastructure C-feature Category: Feature request or enhancement S-waiting-on-author Status: This PR is incomplete or needs to address review comments hiring-challenge labels Mar 26, 2024
@SanchithHegde
Copy link
Member

Closing this in favor of #4197.

@SanchithHegde SanchithHegde removed the S-waiting-on-author Status: This PR is incomplete or needs to address review comments label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-infra Area: Infrastructure C-feature Category: Feature request or enhancement hiring-challenge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants