Skip to content

Dockerfile build issues - #314

Closed
tomasvanagas wants to merge 5 commits into
spesmilo:masterfrom
kaunofakultetas:master
Closed

tomasvanagas wants to merge 5 commits into
spesmilo:masterfrom
kaunofakultetas:master

Conversation

@tomasvanagas

Copy link
Copy Markdown

Hello,

Dockerfile did not built, I've added a fix to make Dockerfile build

Best,
Tomas

@tomasvanagas

Copy link
Copy Markdown
Author

After tinkering little bit more I noticed that it still was not building properly from source code. So I made a complete rewrite of the Dockerfile as well removing multi-stage building process so the build process would be simplified as much as possible.

For the context here is my docker-compose.yml in which I am tinkering with my forked chain:

  knfcoin-electrumx:
    container_name: knfcoin-electrumx
    image: knfcoin-electrumx
    build:
      context: ./knfcoin-electrumx
      dockerfile: ./contrib/Dockerfile
    ports:
      - "49002:49002"
    volumes:
      - ./DATA/electrumx:/data
    environment:
      - COIN=KNFcoin
      - NET=mainnet
      - DAEMON_URL=http://user:pass@knfcoin-fullnode:19332

      # Cache tuning
      - CACHE_MB=2000 # 2GB RAM

      # Unlimited-ish sessions
      - MAX_SESSIONS=1000000
      - SESSION_TIMEOUT=600
      - MAX_RECV=10000000
      - MAX_SEND=10000000
      - COST_SOFT_LIMIT=0
      - COST_HARD_LIMIT=0
      - REQUEST_SLEEP=0
      - INITIAL_CONCURRENT=1000000
      - BANDWIDTH_UNIT_COST=1000000000
      - REQUEST_TIMEOUT=30
    restart: unless-stopped




class KNFcoin(Coin):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please keep this PR focused on the dockerfile improvements?
I see you opened the PR with your master branch as base branch. You might need to create a separate branch for this. (which is best practice btw)

@tomasvanagas

Copy link
Copy Markdown
Author

Upsie, my bad. Ok, I will create a separate pull request a little bit later

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