electracoin-ECA / electra-archive

This repository is no longer in use.
MIT License
29 stars 31 forks source link

Attempt to create Electra headless docker wallet #11

Closed nemo83 closed 6 years ago

nemo83 commented 6 years ago

Attempting to build a docker headless image for electra wallet

nemo83 commented 6 years ago

Image is built successfully, but it terminates (apparently w/o errors) right after starting... wondering if it's because of the daemon ...

alediaferia commented 6 years ago

If the wallet started successfully you can inspect ~/.Electra/debug.log for more info

nicofly commented 6 years ago

Really interesting. Need help ?

N

Da: Giovanni Gargiulo notifications@github.com Risposta: Electra-project/Electra reply@reply.github.com Data: giovedì 8 febbraio 2018 00:48 A: Electra-project/Electra Electra@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Oggetto: Re: [Electra-project/Electra] Attempt to create Electra headless docker wallet (#11)

Image is built successfully, but it terminates (apparently w/o errors) right after starting... wondering if it's because of the daemon ...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/Electra-project/Electra/pull/11#issuecomment-363951700, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AD_MstnWis1qR9oyrkfnD9rreIpjH1dWks5tSjZEgaJpZM4R9lE8. {"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/Electra-project/Electra","title":"Electra-project/Electra","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/Electra-project/Electra"}},"updates":{"snippets":[{"icon":"PERSON","message":"@nemo83 in #11: Image is built successfully, but it terminates (apparently w/o errors) right after starting... wondering if it's because of the daemon ...\r\n"}],"action":{"name":"View Pull Request","url":"https://github.com/Electra-project/Electra/pull/11#issuecomment-363951700"}}}

nemo83 commented 6 years ago

Yeah,

I started work on this last night and will come back to this later on.

But feel free to jump in and try to figure out why it terminates straight after docker starts the image.

Steps to reproduce are

  1. checkout the branch
  2. cd to project root folder
  3. run docker build -t electracoin/electra:headless . (this may take a while)
  4. create a Electra.conf in your ~/.Electra (you can re-use the one from the project)
  5. start the docker image docker run -d -v ~/.Electra:/root/.Electra electracoin/electra:headless

You can notice how prints the container id and then terminates right after.... :-(

nemo83 commented 6 years ago

Added workaround. seems to be working. Will confirm once the full blockchain has been downloaded.

nemo83 commented 6 years ago

Right, thanks to @alediaferia that found out that by simply deleting the line daemon=1 from the Electra.conf fixed the issue.

I'm so happy we have a Electra-qt running in docker.

Please do not merge yet as I need to update documentation et cetera and maybe provide env vars to configure wallet at launch time.

nemo83 commented 6 years ago

@alediaferia @AlejandroVera I've updated the PR with some findings and I've also updated documentation. This is ready to be re-reviewed and merged.

nemo83 commented 6 years ago

This is ready to be shipped