Skip to content

Commit 55cff04

Browse files
authored
graph-node docker image (#5712)
updated all images to bookworm fixed dockerfile syntax deprecations
1 parent 5e995bf commit 55cff04

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

docker/Dockerfile

+22-22
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# by running something like the following
55
# docker build --target STAGE -f docker/Dockerfile .
66

7-
FROM golang:bullseye as envsubst
7+
FROM golang:bookworm AS envsubst
88

99
# v1.2.0
1010
ARG ENVSUBST_COMMIT_SHA=16035fe3571ad42c7796bf554f978bb2df64231b
@@ -13,7 +13,7 @@ ARG ENVSUBST_COMMIT_SHA=16035fe3571ad42c7796bf554f978bb2df64231b
1313
RUN go install github.com/a8m/envsubst/cmd/envsubst@$ENVSUBST_COMMIT_SHA \
1414
&& strip -g /go/bin/envsubst
1515

16-
FROM rust:bullseye as graph-node-build
16+
FROM rust:bookworm AS graph-node-build
1717

1818
ARG COMMIT_SHA=unknown
1919
ARG REPO_NAME=unknown
@@ -44,48 +44,48 @@ RUN apt-get update \
4444
&& echo "CARGO_DEV_BUILD='$CARGO_DEV_BUILD'" >> /etc/image-info
4545

4646
# Debug image to access core dumps
47-
FROM graph-node-build as graph-node-debug
47+
FROM graph-node-build AS graph-node-debug
4848
RUN apt-get update \
4949
&& apt-get install -y curl gdb postgresql-client
5050

5151
COPY docker/Dockerfile /Dockerfile
5252
COPY docker/bin/* /usr/local/bin/
5353

5454
# The graph-node runtime image with only the executable
55-
FROM debian:bookworm-20241111-slim as graph-node
56-
ENV RUST_LOG ""
57-
ENV GRAPH_LOG ""
58-
ENV EARLY_LOG_CHUNK_SIZE ""
59-
ENV ETHEREUM_RPC_PARALLEL_REQUESTS ""
60-
ENV ETHEREUM_BLOCK_CHUNK_SIZE ""
61-
62-
ENV postgres_host ""
63-
ENV postgres_user ""
64-
ENV postgres_pass ""
65-
ENV postgres_db ""
66-
ENV postgres_args "sslmode=prefer"
55+
FROM debian:bookworm-20241111-slim AS graph-node
56+
ENV RUST_LOG=""
57+
ENV GRAPH_LOG=""
58+
ENV EARLY_LOG_CHUNK_SIZE=""
59+
ENV ETHEREUM_RPC_PARALLEL_REQUESTS=""
60+
ENV ETHEREUM_BLOCK_CHUNK_SIZE=""
61+
62+
ENV postgres_host=""
63+
ENV postgres_user=""
64+
ENV postgres_pass=""
65+
ENV postgres_db=""
66+
ENV postgres_args="sslmode=prefer"
6767
# The full URL to the IPFS node
68-
ENV ipfs ""
68+
ENV ipfs=""
6969
# The etherum network(s) to connect to. Set this to a space-separated
7070
# list of the networks where each entry has the form NAME:URL
71-
ENV ethereum ""
71+
ENV ethereum=""
7272
# The role the node should have, one of index-node, query-node, or
7373
# combined-node
74-
ENV node_role "combined-node"
74+
ENV node_role="combined-node"
7575
# The name of this node
76-
ENV node_id "default"
76+
ENV node_id="default"
7777
# The ethereum network polling interval (in milliseconds)
78-
ENV ethereum_polling_interval ""
78+
ENV ethereum_polling_interval=""
7979

8080
# The location of an optional configuration file for graph-node, as
8181
# described in ../docs/config.md
8282
# Using a configuration file is experimental, and the file format may
8383
# change in backwards-incompatible ways
84-
ENV GRAPH_NODE_CONFIG ""
84+
ENV GRAPH_NODE_CONFIG=""
8585

8686
# Disable core dumps; this is useful for query nodes with large caches. Set
8787
# this to anything to disable coredumps (via 'ulimit -c 0')
88-
ENV disable_core_dumps ""
88+
ENV disable_core_dumps=""
8989

9090
# HTTP port
9191
EXPOSE 8000

0 commit comments

Comments
 (0)