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

imageprovider container image is not included in the build #1547

Closed
dmitchsplunk opened this issue Apr 23, 2024 · 0 comments · Fixed by #1552
Closed

imageprovider container image is not included in the build #1547

dmitchsplunk opened this issue Apr 23, 2024 · 0 comments · Fixed by #1552
Assignees
Labels
bug Something isn't working

Comments

@dmitchsplunk
Copy link

Bug Report

Which version of the demo you are using?

Release 1.9.0

Symptom

build-images.yml doesn't include the new imageprovider image, so this image is missing from the ghcr.io repository. This forces the image to be built locally from source when using Docker.

What is the expected behavior?

All images required by docker-compose.yml are available in ghcr.io

What is the actual behavior?

The imageprovider image is missing from ghcr.io

Reproduce

% docker pull ghcr.io/open-telemetry/demo:1.9.0-imageprovider
Error response from daemon: manifest unknown

% docker pull ghcr.io/open-telemetry/demo:latest-imageprovider
Error response from daemon: manifest unknown

% docker compose up --no-build
[+] Running 1/1
 ! imageprovider Warning                                                                                                                                                                    0.6s 
[+] Running 16/0
 ✔ Container redis-cart               Created                                                                                                                                               0.0s 
 ✔ Container kafka                    Created                                                                                                                                               0.0s 
 ✔ Container flagd                    Created                                                                                                                                               0.0s 
 ✔ Container otel-col                 Created                                                                                                                                               0.0s 
 ✔ Container frauddetection-service   Created                                                                                                                                               0.0s 
 ✔ Container product-catalog-service  Created                                                                                                                                               0.0s 
 ✔ Container ad-service               Created                                                                                                                                               0.0s 
 ✔ Container payment-service          Created                                                                                                                                               0.0s 
 ✔ Container cart-service             Created                                                                                                                                               0.0s 
 ✔ Container email-service            Created                                                                                                                                               0.0s 
 ⠋ Container imageprovider            Creating                                                                                                                                              0.0s 
 ✔ Container currency-service         Created                                                                                                                                               0.0s 
 ✔ Container quote-service            Created                                                                                                                                               0.0s 
 ✔ Container accounting-service       Created                                                                                                                                               0.0s 
 ✔ Container shipping-service         Created                                                                                                                                               0.0s 
 ✔ Container checkout-service         Created                                                                                                                                               0.0s 
 ✔ Container recommendation-service   Created                                                                                                                                               0.0s 
Error response from daemon: No such image: ghcr.io/open-telemetry/demo:latest-imageprovider

% docker compose up --force-recreate --remove-orphans --detach
[+] Running 1/1
 ! imageprovider Warning                                                                                                                                                                    0.6s 
[+] Building 2.1s (14/14) FINISHED                                                                                                                                          docker:desktop-linux
 => [imageprovider internal] load build definition from Dockerfile                                                                                                                          0.0s
 => => transferring dockerfile: 997B                                                                                                                                                        0.0s
 => [imageprovider internal] load metadata for docker.io/library/nginx:1.25.3                                                                                                               1.7s
 => [imageprovider auth] library/nginx:pull token for registry-1.docker.io                                                                                                                  0.0s
 => [imageprovider internal] load .dockerignore                                                                                                                                             0.0s
 => => transferring context: 1.18kB                                                                                                                                                         0.0s
 => ERROR [imageprovider] importing cache manifest from ghcr.io/open-telemetry/demo:1.9.0-imageprovider                                                                                     0.4s
 => [imageprovider 1/7] FROM docker.io/library/nginx:1.25.3@sha256:c7a6ad68be85142c7fe1089e48faa1e7c7166a194caa9180ddea66345876b9d2                                                         0.0s
 => [imageprovider internal] load build context                                                                                                                                             0.0s
 => => transferring context: 1.13kB                                                                                                                                                         0.0s
 => CACHED [imageprovider 2/7] RUN apt-get update ; apt-get install lsb-release --no-install-recommends --no-install-suggests -y                                                            0.0s
 => CACHED [imageprovider 3/7] RUN echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] http://nginx.org/packages/mainline/debian `lsb_release -cs` nginx" | tee /etc/apt/s  0.0s
 => CACHED [imageprovider 4/7] RUN apt-get update ; apt-get install nginx-module-otel --no-install-recommends --no-install-suggests -y                                                      0.0s
 => CACHED [imageprovider 5/7] RUN mkdir /static                                                                                                                                            0.0s
 => CACHED [imageprovider 6/7] COPY src/imageprovider/static /static                                                                                                                        0.0s
 => CACHED [imageprovider 7/7] COPY src/imageprovider/nginx.conf.template /nginx.conf.template                                                                                              0.0s
 => [imageprovider] exporting to image                                                                                                                                                      0.0s
 => => exporting layers                                                                                                                                                                     0.0s
 => => writing image sha256:90c08934346a4e7a59a734a9d07dcae678e2d3fc2c46d95b6ff109a9e09d7b78                                                                                                0.0s
 => => naming to ghcr.io/open-telemetry/demo:latest-imageprovider                                                                                                                           0.0s
------
 > [imageprovider] importing cache manifest from ghcr.io/open-telemetry/demo:1.9.0-imageprovider:

Additional Context

The application works fine with Docker when building imageprovider locally, but I don't think it will work for a Kubernetes deployment, since it requires the images to be available in the repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants