zalando / zally

A minimalistic, simple-to-use API linter
https://zalando.github.io/zally
MIT License
906 stars 145 forks source link

using docker-compose file and ending with a blank page for zally web-ui #1406

Open franckleveque opened 2 years ago

franckleveque commented 2 years ago

Hi,

I have tried to use the docker compose file of the repository, but it seems the web ui doesn't work.

The only thing I have is a blank screen :

image

Console Show only : bundle.js:1 Uncaught SyntaxError: Unexpected token '<' (at bundle.js:1:1)

nitin-vavdiya commented 2 years ago

Hey, Change web-ui docker file as below:

FROM registry.opensource.zalan.do/library/node-18-alpine:latest
MAINTAINER "http://zalando.github.io/"
COPY ./ ./
RUN yarn
RUN yarn build
EXPOSE 3000
CMD ["yarn", "start"]

after that go to the root directory of the project and run the below command

  1. docker-compose build
  2. docker-compose up

It is working for me with about docker file: image

eddpascoal commented 4 weeks ago

@nitin-vavdiya thanks for the workaround.. it works! Without this workaround the issue remains. 🤔 wonder why this approach was not applied to master. Any reason why?

nitin-vavdiya commented 4 weeks ago

@nitin-vavdiya thanks for the workaround.. it works! Without this workaround the issue remains. 🤔 wonder why this approach was not applied to master. Any reason why?

Created PR: https://github.com/zalando/zally/pull/1509