Skip to content
This repository was archived by the owner on Feb 12, 2026. It is now read-only.

Commit b2d36d1

Browse files
committed
chore: renaming dockerfiles and compose
1 parent 59c1055 commit b2d36d1

11 files changed

Lines changed: 110 additions & 44 deletions

‎docker-compose.tips.yml‎

Lines changed: 0 additions & 43 deletions
This file was deleted.

‎docker/Dockerfile.audit‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
FROM rust:1-bookworm AS base
2+
3+
RUN apt-get update && apt-get -y upgrade && apt-get install -y libclang-dev pkg-config libsasl2-dev libssl-dev
4+
5+
RUN cargo install cargo-chef --locked
6+
WORKDIR /app
7+
8+
FROM base AS planner
9+
COPY . .
10+
RUN cargo chef prepare --recipe-path recipe.json
11+
12+
FROM base AS builder
13+
COPY --from=planner /app/recipe.json recipe.json
14+
15+
RUN --mount=type=cache,target=/usr/local/cargo/registry \
16+
--mount=type=cache,target=/usr/local/cargo/git \
17+
--mount=type=cache,target=/app/target \
18+
cargo chef cook --recipe-path recipe.json
19+
20+
COPY . .
21+
RUN --mount=type=cache,target=/usr/local/cargo/registry \
22+
--mount=type=cache,target=/usr/local/cargo/git \
23+
--mount=type=cache,target=/app/target \
24+
cargo build -p audit-bin && \
25+
cp target/debug/audit /tmp/audit
26+
27+
FROM debian:bookworm
28+
29+
RUN apt-get update && apt-get install -y libssl3 ca-certificates && rm -rf /var/lib/apt/lists/*
30+
31+
WORKDIR /app
32+
33+
COPY --from=builder /tmp/audit /app/audit
34+
35+
ENTRYPOINT ["/app/audit"]

‎docker/Dockerfile.ingress-rpc‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
FROM rust:1-bookworm AS base
2+
3+
RUN apt-get update && apt-get -y upgrade && apt-get install -y libclang-dev pkg-config libsasl2-dev libssl-dev
4+
5+
RUN cargo install cargo-chef --locked
6+
WORKDIR /app
7+
8+
FROM base AS planner
9+
COPY . .
10+
RUN cargo chef prepare --recipe-path recipe.json
11+
12+
FROM base AS builder
13+
COPY --from=planner /app/recipe.json recipe.json
14+
15+
RUN --mount=type=cache,target=/usr/local/cargo/registry \
16+
--mount=type=cache,target=/usr/local/cargo/git \
17+
--mount=type=cache,target=/app/target \
18+
cargo chef cook --recipe-path recipe.json
19+
20+
COPY . .
21+
RUN --mount=type=cache,target=/usr/local/cargo/registry \
22+
--mount=type=cache,target=/usr/local/cargo/git \
23+
--mount=type=cache,target=/app/target \
24+
cargo build -p ingress-rpc-bin && \
25+
cp target/debug/ingress-rpc /tmp/ingress-rpc
26+
27+
FROM debian:bookworm
28+
29+
RUN apt-get update && apt-get install -y libssl3 ca-certificates && rm -rf /var/lib/apt/lists/*
30+
31+
WORKDIR /app
32+
33+
COPY --from=builder /tmp/ingress-rpc /app/ingress-rpc
34+
35+
ENTRYPOINT ["/app/ingress-rpc"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ services:
7272
/usr/bin/mc mb minio/tips;
7373
/usr/bin/mc anonymous set public minio/tips;
7474
exit 0;
75-
"
75+
"
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
services:
2+
ingress-rpc:
3+
build:
4+
context: ..
5+
dockerfile: docker/Dockerfile.ingress-rpc
6+
container_name: tips-ingress-rpc
7+
ports:
8+
- "8080:8080"
9+
- "8081:8081"
10+
- "9002:9002"
11+
env_file:
12+
- ../.env.docker
13+
volumes:
14+
- ./kafka-properties/ingress-bundles-kafka-properties:/etc/kafka/ingress-bundles-kafka-properties:ro
15+
- ./kafka-properties/ingress-audit-kafka-properties:/etc/kafka/ingress-audit-kafka-properties:ro
16+
- ./kafka-properties/ingress-user-operation-consumer-kafka-properties:/etc/kafka/ingress-user-operation-consumer-kafka-properties:ro
17+
restart: unless-stopped
18+
19+
audit:
20+
build:
21+
context: ..
22+
dockerfile: docker/Dockerfile.audit
23+
container_name: tips-audit
24+
env_file:
25+
- ../.env.docker
26+
volumes:
27+
- ./kafka-properties/audit-kafka-properties:/etc/kafka/audit-kafka-properties:ro
28+
restart: unless-stopped
29+
30+
ui:
31+
build:
32+
context: ..
33+
dockerfile: ui/tips/Dockerfile
34+
ports:
35+
- "3000:3000"
36+
container_name: tips-ui
37+
env_file:
38+
- ../.env.docker
39+
restart: unless-stopped
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)