Skip to content

docker-compose not working #17

Description

@debuss

Hi,

I cloned the repo and launch the docker-compose command : docker compose up --build.
There was an error :

dependency cycle detected: api -> otel-collector -> api

I tried to modify the docker-compose.yml to remove the depends_on part from the otel-collector section.
Now there is an other error :

[+] Building 4.9s (16/16) FINISHED
 => [internal] load local bake definitions                             0.0s
 => => reading from stdin 2.34kB                                       0.0s
 => [ingest internal] load build definition from Dockerfile            0.1s
 => => transferring dockerfile: 453B                                   0.0s
 => [alerting internal] load build definition from Dockerfile          0.1s
 => => transferring dockerfile: 706B                                   0.0s
 => [api internal] load build definition from Dockerfile               0.1s
 => => transferring dockerfile: 722B                                   0.0s
 => [web internal] load build definition from Dockerfile               0.1s
 => => transferring dockerfile: 910B                                   0.0s
 => [otel-collector internal] load build definition from Dockerfile    0.1s
 => => transferring dockerfile: 211B                                   0.0s
 => [otel-collector internal] load metadata for docker.io/otel/opente  4.6s
 => [ingest internal] load metadata for docker.io/library/debian:book  3.1s
 => CANCELED [ingest internal] load metadata for docker.io/library/ru  4.7s
 => CANCELED [api internal] load metadata for docker.io/oven/bun:1.3.  4.7s
 => CANCELED [api internal] load metadata for docker.io/oven/bun:1.3.  4.7s
 => CANCELED [web internal] load metadata for docker.io/library/nginx  4.7s
 => [otel-collector internal] load .dockerignore                       0.0s
 => => transferring context: 213B                                      0.0s
 => [otel-collector internal] load build context                       0.0s
 => => transferring context: 2B                                        0.0s
 => CANCELED [otel-collector 1/2] FROM docker.io/otel/opentelemetry-c  0.0s
 => => resolve docker.io/otel/opentelemetry-collector-contrib:latest@  0.0s
 => ERROR [otel-collector 2/2] COPY collector-config.yaml /etc/otelco  0.0s
------
 [otel-collector 2/2] COPY collector-config.yaml /etc/otelcol/config.yaml:
------
> [+] up 0/5
 ⠙ Image maple-ingest         Building                                  4.9s
 ⠙ Image maple-alerting       Building                                  4.9s
 ⠙ Image maple-otel-collector Building                                  4.9s
 ⠙ Image maple-api            Building                                  4.9s
 ⠙ Image maple-web            Building                                  4.9s
Dockerfile:3

--------------------

   1 |     FROM otel/opentelemetry-collector-contrib:latest

   2 |

   3 | >>> COPY collector-config.yaml /etc/otelcol/config.yaml

   4 |

   5 |     EXPOSE 4317 4318 13133

--------------------

target otel-collector: failed to solve: failed to compute cache key: failed to calculate checksum of ref 3dkmvr904madb6y0ghi0jychg::pewwuqyot6f4vv7khevxw0682: "/collector-config.yaml": not found

Seems like files are missing.

Also I add to create an empty .env file in the root folder, else it wouldn't start docker-compose.
(This is not indicated in the README.md)

I did not push the tests further.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions