Skip to content

Conversation

@glyh
Copy link
Member

@glyh glyh commented Oct 22, 2025

Here's an example docker compose using such daemon.

services:
  generate_wallet_key:
    image: 'daemon-jemalloc-prof:latest'
    # image: 'gcr.io/o1labs-192920/mina-daemon:3.3.0-beta1-lyh-memtrace-5a0d9fa-noble-mainnet'
    environment:
      MINA_PRIVKEY_PASS: PssW0rD
    entrypoint: []
    command: >
      bash -c '
        mina advanced generate-keypair --privkey-path /data/.mina-config/keys/wallet-key
        chmod -R 0700 /data/.mina-config/keys
        chmod -R 0600 /data/.mina-config/keys/wallet-key
      '
    volumes:
      - './node/mina-config:/data/.mina-config'
  mina_block_producer:
    image:  'daemon-jemalloc-prof:latest'
    restart: always
    environment:
      MINA_PRIVKEY_PASS: PssW0rD
    entrypoint: []
    command: >
      bash -c '
        mina daemon \
             --peer-list-url https://bootnodes.minaprotocol.com/networks/mainnet.txt \
             --block-producer-key /data/.mina-config/keys/wallet-key \
             --seed
      '
    # use  --peer-list-url https://bootnodes.minaprotocol.com/networks/devnet.txt for Devnet
    volumes:
      - './node/mina-config:/data/.mina-config'
      - './rundir:/rundir'
    ports:
      - '8302:8302'
    depends_on:
      generate_wallet_key:
        condition: service_completed_successfully

In ./rundir, there should be a file named like below for each executable exited.

-rw-r--r-- 1 root  root  1490554 Oct 22 07:17 jeprof.1.0.f.heap
-rw-r--r-- 1 root  root   234527 Oct 22 06:49 jeprof.20.0.f.heap
-rw-r--r-- 1 root  root   252784 Oct 22 07:17 jeprof.241.0.f.heap

First number seems to be corresponding to PID, not sure about the 2nd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants