Skip to content
This repository has been archived by the owner on Sep 11, 2018. It is now read-only.

Docker container issue #1320

Open
pbhisay opened this issue Aug 1, 2017 · 1 comment
Open

Docker container issue #1320

pbhisay opened this issue Aug 1, 2017 · 1 comment

Comments

@pbhisay
Copy link

pbhisay commented Aug 1, 2017

I've been using the boiler plate version 3.0.0-alpha.3 for my project.

I still have the raw un-changed version which I used to create a docker container just for testing.

After I convert the app into a docker image successfully and also run it, the logs show 'webpack compiled successfully', but when i try to hit the url (localhost:3000), the browser just keeps loading and loading. It fetches the name of the project right which you can see on the browser tab, but the page never really loads and the browser spinner stops to a blank page after 3-5 mins.

I use this command to create container from image:
docker run -p 3000:3000 -d

Dockerfile:

FROM nonprod.dtr.trusted.visa.com/cybs/base-rhel72

RUN yum install -y nodejs && yum clean all

RUN npm config set proxy null; npm config set https-proxy null; npm config set strict-ssl false;  
npm config set registry <corporate_registry>
RUN mkdir -p /usr/src/app


WORKDIR /usr/src/app

COPY package.json /usr/src/app

RUN npm install node-sass --sass-binary-site=<corporate-url>

RUN npm install

COPY . /usr/src/app

EXPOSE 3000

ENTRYPOINT ["npm", "start"]

What could be the issue? Any ideas?

UPDATE:

I tried grabbing the latest code as a new project and creating a docker container and it worked like a charm. Now the only thing left is to find out what significantly changed from version 3.0.0-alpha.3 to the latest version I downloaded today. Help on that would be GREAT! Thanks!

@pbhisay
Copy link
Author

pbhisay commented Aug 3, 2017

So the new version works fine, but not the old one, I'm not sure what is causing it, there are plenty configurations happening so it's tough to debug what's breaking it since there are no server logs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant