-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Conversation
Dockerfile.web-client
Outdated
@@ -0,0 +1,29 @@ | |||
# Use official Node.js image as the base image for web client | |||
FROM node:14 as web-client-builder |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, sure. done
Dockerfile.web-client
Outdated
# 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 . . |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, done
web-client: | ||
# Configuration for the web client service | ||
image: <web_client_image>:<tag> |
There was a problem hiding this comment.
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.
Closing this in favor of #4197. |
Type of Change
Description
Additional Changes
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
cargo +nightly fmt --all
cargo clippy