Skip to content

Commit bf4fe0f

Browse files
authored
support additional-config file in splice images (#3486)
Signed-off-by: Itai Segall <itai.segall@digitalasset.com>
1 parent b773ed1 commit bf4fe0f

File tree

13 files changed

+56
-123
lines changed

13 files changed

+56
-123
lines changed

cluster/images/canton-cometbft-sequencer/app.conf

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

cluster/images/canton-domain/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,9 @@ COPY app.conf bootstrap.sc /app/
1818

1919
HEALTHCHECK --start-period=10m \
2020
CMD grpcurl -plaintext localhost:5061 grpc.health.v1.Health/Check && grpcurl -plaintext localhost:5062 grpc.health.v1.Health/Check || exit 1
21+
22+
# Not upstreamed on purpose, this is the Splice part to allow easy overrides from within Splice:
23+
COPY additional-config.conf /app/
24+
USER root
25+
RUN chown -R nonroot:nonroot /app/additional-config.conf
26+
USER nonroot
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Configurations here will be applied after app.conf, and before any ADDITIONAL_CONFIG env vars
2+
# Please use this file for temporary changes that require quick iterations. Once made permanent,
3+
# please upstream the change to the Canton repo.
4+

cluster/images/canton-domain/app.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is frozen, and will be deleted soon (in favor of its copy upstream in Canton repo).
2+
# Please DO NOT modify this file. For quick iterations on config changes, use additional-config.conf.
3+
# For permanent ones, please upstream the change to Canton repo.
4+
15
include required(file("/app/storage.conf"))
26

37
canton {

cluster/images/canton-mediator/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,9 @@ EXPOSE 5007
1111
EXPOSE 10013
1212

1313
COPY app.conf /app/
14+
15+
# Not upstreamed on purpose, this is the Splice part to allow easy overrides from within Splice:
16+
COPY additional-config.conf /app/
17+
USER root
18+
RUN chown -R nonroot:nonroot /app/additional-config.conf
19+
USER nonroot
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Configurations here will be applied after app.conf, and before any ADDITIONAL_CONFIG env vars
2+
# Please use this file for temporary changes that require quick iterations. Once made permanent,
3+
# please upstream the change to the Canton repo.
4+

cluster/images/canton-mediator/app.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is frozen, and will be deleted soon (in favor of its copy upstream in Canton repo).
2+
# Please DO NOT modify this file. For quick iterations on config changes, use additional-config.conf.
3+
# For permanent ones, please upstream the change to Canton repo.
4+
15
include required(file("/app/storage.conf"))
26

37
canton {

cluster/images/canton-participant/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,9 @@ COPY app.conf /app/
1616

1717
HEALTHCHECK --start-period=10m \
1818
CMD grpcurl -plaintext localhost:5061 grpc.health.v1.Health/Check || exit 1
19+
20+
# Not upstreamed on purpose, this is the Splice part to allow easy overrides from within Splice:
21+
COPY additional-config.conf /app/
22+
USER root
23+
RUN chown -R nonroot:nonroot /app/additional-config.conf
24+
USER nonroot
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Configurations here will be applied after app.conf, and before any ADDITIONAL_CONFIG env vars
2+
# Please use this file for temporary changes that require quick iterations. Once made permanent,
3+
# please upstream the change to the Canton repo.
4+

cluster/images/canton-participant/app.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is frozen, and will be deleted soon (in favor of its copy upstream in Canton repo).
2+
# Please DO NOT modify this file. For quick iterations on config changes, use additional-config.conf.
3+
# For permanent ones, please upstream the change to Canton repo.
4+
15
include required(file("/app/storage.conf"))
26

37
canton {

0 commit comments

Comments
 (0)