Skip to content

Commit 1356618

Browse files
committed
Fix docker setup
1 parent 521a4b7 commit 1356618

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ COPY --from=build /rails /rails
5757

5858
# Set up non-root user
5959
RUN useradd rails --create-home --shell /bin/bash && \
60-
chown -R rails:rails log tmp
60+
chown -R rails:rails log tmp storage
6161
USER rails:rails
6262

63+
# Set up databases (creates SQLite files even when validation disabled)
64+
RUN DISABLE_DATABASE_ENVIRONMENT_CHECK=1 bundle exec rails db:setup db:schema:load:queue
65+
6366
CMD ["bundle", "exec", "clockwork", "config/derive_ethscriptions_blocks.rb"]

docker-compose/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ services:
2828
L1_RPC_URL: ${L1_RPC_URL}
2929
L1_GENESIS_BLOCK: ${L1_GENESIS_BLOCK}
3030
L1_PREFETCH_FORWARD: ${L1_PREFETCH_FORWARD:-200}
31-
L1_PREFETCH_THREADS: ${L1_PREFETCH_THREADS:-2}
31+
L1_PREFETCH_THREADS: ${L1_PREFETCH_THREADS:-10}
3232
VALIDATION_ENABLED: ${VALIDATION_ENABLED:-false}
3333
JOB_CONCURRENCY: ${JOB_CONCURRENCY:-2}
3434
STORAGE_VERIFICATION_THREADS: ${STORAGE_VERIFICATION_THREADS:-10}

0 commit comments

Comments
 (0)