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

Building the faqgen-react-ui when building the faqgen example #1348

Open
3 of 6 tasks
ShankarRIntel opened this issue Jan 4, 2025 · 2 comments
Open
3 of 6 tasks

Building the faqgen-react-ui when building the faqgen example #1348

ShankarRIntel opened this issue Jan 4, 2025 · 2 comments
Assignees
Labels
aitce bug Something isn't working

Comments

@ShankarRIntel
Copy link

Priority

P1-Stopper

OS type

Ubuntu

Hardware type

Gaudi2

Installation method

  • Pull docker images from hub.docker.com
  • Build docker images from source

Deploy method

  • Docker compose
  • Docker
  • Kubernetes
  • Helm

Running nodes

Single Node

What's the version?

1.1

Description

Building the faqgen-react-ui when building the faqgen example

Reproduce steps

sratnesh@fm2r81s1gaudi:/workspace/GenAIExamples/FaqGen/ui$ export BACKEND_SERVICE_ENDPOINT="http://${host_ip}:8888/v1/faqgen"
sratnesh@fm2r81s1gaudi:
/workspace/GenAIExamples/FaqGen/ui$ docker build -t opea/faqgen-react-ui:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy --build-arg BACKEND_SERVICE_ENDPOINT=$BACKEND_SERVICE_ENDPOINT -f docker/Dockerfile.react .
[+] Building 79.1s (14/14) FINISHED docker:default
=> [internal] load build definition from Dockerfile.react 0.0s
=> => transferring dockerfile: 453B 0.0s
=> WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1) 0.0s
=> [internal] load metadata for docker.io/library/nginx:alpine 0.6s
=> [internal] load metadata for docker.io/library/node:latest 0.7s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 47.17kB 0.0s
=> [vite-app 1/5] FROM docker.io/library/node:latest@sha256:1745a99b66da41b5ccd6f7be3810f74ddab16eb4579de10de378adb50d2e6e6f 26.3s
=> => resolve docker.io/library/node:latest@sha256:1745a99b66da41b5ccd6f7be3810f74ddab16eb4579de10de378adb50d2e6e6f 0.0s
=> => sha256:54c7be425079efba0003054ee884bf72f1ffebca733bedd6f077d2809ee9aa6f 23.87MB / 23.87MB 1.2s
=> => sha256:8b2b79dcd4164985acb914c82222c2a1e8277399a2b02c681109a04327baaf5b 2.49kB / 2.49kB 0.0s
=> => sha256:b536d17a0f8a33c85b1ad262f50d3ffd82446c46c2240ba7657b9e66f3817d8d 6.39kB / 6.39kB 0.0s
=> => sha256:0a96bdb8280554b560ffee0f2e5f9843dc7b625f28192021ee103ecbcc2d629b 48.50MB / 48.50MB 0.9s
=> => sha256:7aa8176e6d893aff4b57b2c22574ec2afadff4673b8e0954e275244bfd3d7bc1 64.39MB / 64.39MB 1.9s
=> => sha256:1745a99b66da41b5ccd6f7be3810f74ddab16eb4579de10de378adb50d2e6e6f 6.41kB / 6.41kB 0.0s
=> => sha256:1523f4b3f5602bf41caf8d8e649536ac0b3e56984c81a9f518fb20c6516ca075 211.31MB / 211.31MB 3.8s
=> => extracting sha256:0a96bdb8280554b560ffee0f2e5f9843dc7b625f28192021ee103ecbcc2d629b 3.2s
=> => sha256:2b4750555286bf39334e46fe234e32dd75330a37d165b081c33f8e732164744c 3.32kB / 3.32kB 1.3s
=> => sha256:2c6e53e173f1a1a5e0d1e103944f56e65085c9a77b50cf1fae147edaea0e7ba9 57.16MB / 57.16MB 2.9s
=> => sha256:d51d3fd8ab39481c52cd9474ac6314f91cd67494112cc293cef62beb07e25c2f 1.25MB / 1.25MB 2.1s
=> => sha256:5b99c0c66ceafcca5439fcbad64a95db5d77613864175aa9d56233c67901da16 446B / 446B 2.2s
=> => extracting sha256:54c7be425079efba0003054ee884bf72f1ffebca733bedd6f077d2809ee9aa6f 1.0s
=> => extracting sha256:7aa8176e6d893aff4b57b2c22574ec2afadff4673b8e0954e275244bfd3d7bc1 4.1s
=> => extracting sha256:1523f4b3f5602bf41caf8d8e649536ac0b3e56984c81a9f518fb20c6516ca075 11.7s
=> => extracting sha256:2b4750555286bf39334e46fe234e32dd75330a37d165b081c33f8e732164744c 0.0s
=> => extracting sha256:2c6e53e173f1a1a5e0d1e103944f56e65085c9a77b50cf1fae147edaea0e7ba9 4.4s
=> => extracting sha256:d51d3fd8ab39481c52cd9474ac6314f91cd67494112cc293cef62beb07e25c2f 0.1s
=> => extracting sha256:5b99c0c66ceafcca5439fcbad64a95db5d77613864175aa9d56233c67901da16 0.0s
=> [stage-1 1/3] FROM docker.io/library/nginx:alpine@sha256:41523187cf7d7a2f2677a80609d9caa14388bf5c1fbca9c410ba3de602aaaab4 0.0s
=> [vite-app 2/5] COPY . /usr/app 0.6s
=> [vite-app 3/5] WORKDIR /usr/app/react 0.0s
=> [vite-app 4/5] RUN ["npm", "install"] 27.3s
=> [vite-app 5/5] RUN ["npm", "run", "build"] 23.4s
=> CACHED [stage-1 2/3] COPY --from=vite-app /usr/app/react/nginx.conf /etc/nginx/conf.d/default.conf 0.0s
=> [stage-1 3/3] COPY --from=vite-app /usr/app/react/dist /usr/share/nginx/html 0.0s
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:5cc8faff3268bf504ac93d14a36f2b5c524d90c6da85a167946b40367883db7d 0.0s
=> => naming to docker.io/opea/faqgen-react-ui:latest 0.0s

1 warning found (use docker --debug to expand):

  • FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1)

Raw log

sratnesh@fm2r81s1gaudi:~/workspace/GenAIExamples/FaqGen/ui$ export BACKEND_SERVICE_ENDPOINT="http://${host_ip}:8888/v1/faqgen"
sratnesh@fm2r81s1gaudi:~/workspace/GenAIExamples/FaqGen/ui$ docker build -t opea/faqgen-react-ui:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy --build-arg BACKEND_SERVICE_ENDPOINT=$BACKEND_SERVICE_ENDPOINT -f docker/Dockerfile.react .
[+] Building 79.1s (14/14) FINISHED                                                                                                                                                                       docker:default
 => [internal] load build definition from Dockerfile.react                                                                                                                                                          0.0s
 => => transferring dockerfile: 453B                                                                                                                                                                                0.0s
 => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1)                                                                                                                                      0.0s
 => [internal] load metadata for docker.io/library/nginx:alpine                                                                                                                                                     0.6s
 => [internal] load metadata for docker.io/library/node:latest                                                                                                                                                      0.7s
 => [internal] load .dockerignore                                                                                                                                                                                   0.0s
 => => transferring context: 2B                                                                                                                                                                                     0.0s
 => [internal] load build context                                                                                                                                                                                   0.0s
 => => transferring context: 47.17kB                                                                                                                                                                                0.0s
 => [vite-app 1/5] FROM docker.io/library/node:latest@sha256:1745a99b66da41b5ccd6f7be3810f74ddab16eb4579de10de378adb50d2e6e6f                                                                                      26.3s
 => => resolve docker.io/library/node:latest@sha256:1745a99b66da41b5ccd6f7be3810f74ddab16eb4579de10de378adb50d2e6e6f                                                                                                0.0s
 => => sha256:54c7be425079efba0003054ee884bf72f1ffebca733bedd6f077d2809ee9aa6f 23.87MB / 23.87MB                                                                                                                    1.2s
 => => sha256:8b2b79dcd4164985acb914c82222c2a1e8277399a2b02c681109a04327baaf5b 2.49kB / 2.49kB                                                                                                                      0.0s
 => => sha256:b536d17a0f8a33c85b1ad262f50d3ffd82446c46c2240ba7657b9e66f3817d8d 6.39kB / 6.39kB                                                                                                                      0.0s
 => => sha256:0a96bdb8280554b560ffee0f2e5f9843dc7b625f28192021ee103ecbcc2d629b 48.50MB / 48.50MB                                                                                                                    0.9s
 => => sha256:7aa8176e6d893aff4b57b2c22574ec2afadff4673b8e0954e275244bfd3d7bc1 64.39MB / 64.39MB                                                                                                                    1.9s
 => => sha256:1745a99b66da41b5ccd6f7be3810f74ddab16eb4579de10de378adb50d2e6e6f 6.41kB / 6.41kB                                                                                                                      0.0s
 => => sha256:1523f4b3f5602bf41caf8d8e649536ac0b3e56984c81a9f518fb20c6516ca075 211.31MB / 211.31MB                                                                                                                  3.8s
 => => extracting sha256:0a96bdb8280554b560ffee0f2e5f9843dc7b625f28192021ee103ecbcc2d629b                                                                                                                           3.2s
 => => sha256:2b4750555286bf39334e46fe234e32dd75330a37d165b081c33f8e732164744c 3.32kB / 3.32kB                                                                                                                      1.3s
 => => sha256:2c6e53e173f1a1a5e0d1e103944f56e65085c9a77b50cf1fae147edaea0e7ba9 57.16MB / 57.16MB                                                                                                                    2.9s
 => => sha256:d51d3fd8ab39481c52cd9474ac6314f91cd67494112cc293cef62beb07e25c2f 1.25MB / 1.25MB                                                                                                                      2.1s
 => => sha256:5b99c0c66ceafcca5439fcbad64a95db5d77613864175aa9d56233c67901da16 446B / 446B                                                                                                                          2.2s
 => => extracting sha256:54c7be425079efba0003054ee884bf72f1ffebca733bedd6f077d2809ee9aa6f                                                                                                                           1.0s
 => => extracting sha256:7aa8176e6d893aff4b57b2c22574ec2afadff4673b8e0954e275244bfd3d7bc1                                                                                                                           4.1s
 => => extracting sha256:1523f4b3f5602bf41caf8d8e649536ac0b3e56984c81a9f518fb20c6516ca075                                                                                                                          11.7s
 => => extracting sha256:2b4750555286bf39334e46fe234e32dd75330a37d165b081c33f8e732164744c                                                                                                                           0.0s
 => => extracting sha256:2c6e53e173f1a1a5e0d1e103944f56e65085c9a77b50cf1fae147edaea0e7ba9                                                                                                                           4.4s
 => => extracting sha256:d51d3fd8ab39481c52cd9474ac6314f91cd67494112cc293cef62beb07e25c2f                                                                                                                           0.1s
 => => extracting sha256:5b99c0c66ceafcca5439fcbad64a95db5d77613864175aa9d56233c67901da16                                                                                                                           0.0s
 => [stage-1 1/3] FROM docker.io/library/nginx:alpine@sha256:41523187cf7d7a2f2677a80609d9caa14388bf5c1fbca9c410ba3de602aaaab4                                                                                       0.0s
 => [vite-app 2/5] COPY . /usr/app                                                                                                                                                                                  0.6s
 => [vite-app 3/5] WORKDIR /usr/app/react                                                                                                                                                                           0.0s
 => [vite-app 4/5] RUN ["npm", "install"]                                                                                                                                                                          27.3s
 => [vite-app 5/5] RUN ["npm", "run", "build"]                                                                                                                                                                     23.4s
 => CACHED [stage-1 2/3] COPY --from=vite-app /usr/app/react/nginx.conf /etc/nginx/conf.d/default.conf                                                                                                              0.0s
 => [stage-1 3/3] COPY --from=vite-app /usr/app/react/dist /usr/share/nginx/html                                                                                                                                    0.0s
 => exporting to image                                                                                                                                                                                              0.0s
 => => exporting layers                                                                                                                                                                                             0.0s
 => => writing image sha256:5cc8faff3268bf504ac93d14a36f2b5c524d90c6da85a167946b40367883db7d                                                                                                                        0.0s
 => => naming to docker.io/opea/faqgen-react-ui:latest                                                                                                                                                              0.0s

 1 warning found (use docker --debug to expand):
 - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1)
@ShankarRIntel ShankarRIntel added the bug Something isn't working label Jan 4, 2025
@xiguiw
Copy link
Collaborator

xiguiw commented Jan 6, 2025

@ShankarRIntel
What's you point by "Building the faqgen-react-ui when building the faqgen example"?

Do you mean it automatically builds faqgen-react-ui when building the faqgen example. But you don't want to build faqgen-react-ui? Or you mean some other things?

@xiguiw
Copy link
Collaborator

xiguiw commented Jan 6, 2025

@ShankarRIntel

docker build -t opea/faqgen-react-ui:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy --build-arg BACKEND_SERVICE_ENDPOINT=$BACKEND_SERVICE_ENDPOINT -f docker/Dockerfile.react .

What's your code base? I did not find this build command in 1.1

Could you show me where the build command is from?
Please provide some more information about you code base, which branch, tag, commit ID of your code etc.

Thanks!

@xiguiw xiguiw self-assigned this Jan 6, 2025
@yinghu5 yinghu5 added the aitce label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aitce bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants