Skip to content

Commit db96927

Browse files
abaillyAnviking
authored andcommitted
Integrate tracer image in Makefile
1 parent 415151e commit db96927

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

compose/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ help:
4444
@echo " make anti testnet=example_10.2.1 password='password1234'"
4545
@echo
4646

47-
build: TESTNET build-image build-config build-sidecar ## Build cardano-node, config and sidecar container image
47+
build: TESTNET build-image build-config build-sidecar build-tracer ## Build cardano-node, config, sidecar, and tracer images
4848

4949
build-image: TESTNET ## Build cardano-node container image
5050
ln -snf testnets/${testnet}/testnet.yaml .testnet.yaml ; cd testnets/${testnet} ; docker compose build
@@ -55,6 +55,9 @@ build-config: TESTNET ## Build config container image
5555
build-sidecar: TESTNET ## Build sidecar container image
5656
docker build -f sidecar/Dockerfile -t ${registry}${testnet}_sidecar:latest sidecar/
5757

58+
build-tracer: TESTNET ## Build tracer container image
59+
docker build -f tracer/Dockerfile -t ${registry}${testnet}_tracer:latest tracer/
60+
5861
push: TESTNET push-image push-config push-sidecar ## Push cardano-node, config and sidecar container image
5962

6063
push-image: TESTNET ## Push cardano-node container image

compose/testnets/example_10.2.1/docker-compose.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,20 @@ x-env: &env
1414

1515
services:
1616
tracer:
17-
image: cardano-tracer:latest
17+
image: ${registry}${testnet}_tracer:latest
18+
restart: on-failure
19+
hostname: tracer.example
1820
container_name: tracer
1921
volumes:
2022
- tracer:/opt/cardano-tracer
2123
ports:
2224
- "4000:4000"
23-
command:
25+
command:
2426
- "--config"
2527
- "tracer-config.yaml"
2628
build:
27-
context: "../../"
28-
dockerfile: "Dockerfile.tracer.source"
29+
context: "../../tracer"
30+
dockerfile: "Dockerfile"
2931

3032
p1:
3133
<<: *base
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)