Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Local built catalogue container failed to load pictures of socks #39

Open
ghost opened this issue Nov 7, 2017 · 0 comments
Open

Local built catalogue container failed to load pictures of socks #39

ghost opened this issue Nov 7, 2017 · 0 comments
Labels

Comments

@ghost
Copy link

ghost commented Nov 7, 2017

Step to reproduce the problem:

  1. Freshly clone catalogue and microservice-demo from github.
    git clone https://github.com/microservices-demo/microservices-demo.git
    git clone https://github.com/microservices-demo/catalogue.git
  2. Go to catalogue repo and run docker-compose build. If succeeded, the instruction will build image "weaveworksdemos/catalogue-dev:latest" and "weaveworksdemos/catalogue-dev-db:latest"
  3. Go to microservices-demo repo and change file deploy/docker-compose/docker-compose.yml. We want to use local images instead of images in the hub. Replace "weaveworksdemos/catalogue" to "weaveworksdemos/catalogue-dev:latest", weaveworksdemos/catalogue-db to "weaveworksdemos/catalogue-dev-db:latest"
  4. Run quickstart command docker-compose -f deploy/docker-compose/docker-compose.yml up -d in the microservices-demo repo
  5. (IMPORTANT) Access the sock shop by using chrome incognito mode to prevent caching the photo. Every time you want to access the sock shop again, it's recommend to always close incognito window and access the shop in a new incognito window to prevent further caching.

Actual behavior:
All of the photos for the sock items cannot be accessed with a 404 not found error. Originally I didn't find this bug because at first, I used the default microservice-demo configuration and the browser startes to caching those images from that point. If I don't clean the cache, the sock shop will function normally even after I replace them with the local images (because of the browser caching).

@ghost ghost changed the title local built catalogue container failed to load pictures of socks [bug] [deployment] local built catalogue container failed to load pictures of socks Nov 7, 2017
@ghost ghost changed the title [bug] [deployment] local built catalogue container failed to load pictures of socks [bug] local built catalogue container failed to load pictures of socks Nov 7, 2017
@pidster pidster added the bug label Nov 20, 2017
@pidster pidster changed the title [bug] local built catalogue container failed to load pictures of socks Local built catalogue container failed to load pictures of socks Nov 20, 2017
DailunCheng pushed a commit to DailunCheng/catalogue that referenced this issue Jan 16, 2018
…om-build catalogue image). The problem is the wrong workdir. Originally it was "/go". Now it is "/", like the

hub image. Confirmed it works on local machine.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant