uber / aresdb

A GPU-powered real-time analytics storage and query engine.
https://eng.uber.com/aresdb/
Apache License 2.0
3.02k stars 234 forks source link

Failed to use swagger in docker #320

Closed zingdle closed 4 years ago

zingdle commented 5 years ago

Describe the bug Failed to use swagger in docker

To Reproduce

Chrome console output:

Refused to apply style from 'http://my-ip:9374/node_modules/swagger-ui-dist/swagger-ui.css' because its MIME type ('text/plain') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
(index):14 GET http://my-ip:9374/node_modules/swagger-ui-dist/swagger-ui-bundle.js net::ERR_ABORTED 404 (Not Found)
(index):15 GET http://my-ip:9374/node_modules/swagger-ui-dist/swagger-ui-standalone-preset.js net::ERR_ABORTED 404 (Not Found)
ceciliacsilva commented 4 years ago

I was having the same problem, I fixed installing the necessary js packages.

# cd api/ui
# npm install
zingdle commented 4 years ago

Thanks @ceciliacsilva ! It works like a charm.

In Dockerfile L34 it has done a npm-install. Don't know why we have to do it manually.