Skip to content

Commit

Permalink
fix(build): docker compose environments (cortexproject#6099)
Browse files Browse the repository at this point in the history
Fixed cortex dockerfile and updated consul docker image tag so that
docker compose is able to successfully pull consul and swift images.

Removed invalid enable_alertmanager_v2 cortex config param from
microservice mode config files to fix cortex start up.

cleanup: removed 'version' compose tag to silence deprecation warning

Signed-off-by: Doupamo Eradiri <[email protected]>
  • Loading branch information
deradiri authored Jul 23, 2024
1 parent e68ad87 commit 69996b6
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ ruler:
store: memberlist

alertmanager_url: http://alertmanager:8010/alertmanager
enable_alertmanager_v2: false

ruler_storage:
backend: s3
Expand Down
2 changes: 1 addition & 1 deletion development/tsdb-blocks-storage-s3-gossip/dev.dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM golang:1.19
ENV CGO_ENABLED=0
RUN go get github.com/go-delve/delve/cmd/dlv
RUN go install github.com/go-delve/delve/cmd/dlv@latest

FROM alpine:3.18

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.4'
services:

consul:
image: consul
image: consul:1.15.4
command: [ "agent", "-dev" ,"-client=0.0.0.0", "-log-level=info" ]
ports:
- 8500:8500
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.4'
services:

consul:
image: consul
image: consul:1.15.4
command: [ "agent", "-dev" ,"-client=0.0.0.0", "-log-level=info" ]
ports:
- 8500:8500
Expand Down
1 change: 0 additions & 1 deletion development/tsdb-blocks-storage-s3/config/cortex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ ruler:
host: consul:8500

alertmanager_url: http://alertmanager-1:8031/alertmanager,http://alertmanager-2:8032/alertmanager,http://alertmanager-3:8033/alertmanager
enable_alertmanager_v2: false

ruler_storage:
backend: s3
Expand Down
2 changes: 1 addition & 1 deletion development/tsdb-blocks-storage-s3/dev.dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM golang:1.19
ENV CGO_ENABLED=0
RUN go get github.com/go-delve/delve/cmd/dlv
RUN go install github.com/go-delve/delve/cmd/dlv@latest

FROM alpine:3.19

Expand Down
2 changes: 1 addition & 1 deletion development/tsdb-blocks-storage-s3/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.4'
services:

consul:
image: consul
image: consul:1.15.4
command: [ "agent", "-dev" ,"-client=0.0.0.0", "-log-level=info" ]
ports:
- 8500:8500
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
version: '3.4'
services:

consul:
image: consul
image: consul:1.15.4
command: [ "agent", "-dev" ,"-client=0.0.0.0", "-log-level=info" ]
ports:
- 8500:8500

swift:
image: beaukode/docker-swift-onlyone-authv2-keystone
image: beaukode/docker-swift-onlyone-authv2-keystone:latest
volumes:
- .data-swift:/srv:delegated
ports:
Expand Down

0 comments on commit 69996b6

Please sign in to comment.