From 158dbc8235ff7f8674e0b3f5e58c15d8398113af Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 1 Apr 2023 11:32:04 +0200 Subject: [PATCH] release the fantom --- fantom-archive.yml | 1 + fantom/Dockerfile | 2 +- fantom/scripts/entrypoint.sh | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/fantom-archive.yml b/fantom-archive.yml index 6e57b516..7fc0319d 100644 --- a/fantom-archive.yml +++ b/fantom-archive.yml @@ -8,6 +8,7 @@ services: dockerfile: Dockerfile environment: - SNAPSHOT_URL_DISABLED=https://download.fantom.network/opera_5may22.tgz + - CACHE_SIZE=${FANTOM_CACHE_SIZE} volumes: - "fantom-archive:/datadir" expose: diff --git a/fantom/Dockerfile b/fantom/Dockerfile index 3796a3f4..7dd74d48 100644 --- a/fantom/Dockerfile +++ b/fantom/Dockerfile @@ -1,5 +1,5 @@ # Build Fantom in a stock Go builder container -FROM golang:1.17-alpine as builder +FROM golang:1.19-alpine as builder # Install packages we need RUN apk add --no-cache make gcc musl-dev linux-headers git diff --git a/fantom/scripts/entrypoint.sh b/fantom/scripts/entrypoint.sh index de3d2bec..eb576ce9 100644 --- a/fantom/scripts/entrypoint.sh +++ b/fantom/scripts/entrypoint.sh @@ -38,4 +38,5 @@ opera \ --nousb \ --db.migration.mode reformat \ --db.preset pbl-1 \ + --cache=${CACHE_SIZE:-16000} \ --tracenode