First shot at Dockerizing + getMacLinux() function fixes #155
Conversation
Thanks man! Really appreciate, I hope to test it quickly to release with the next Minera version. |
Probably easiest way to test:
EDIT: Instead of doing the build yourself, you may opt to just run the |
Note: I think I hardcoded my Docker Hub repo name in the |
It seems like it got merged but I don't see a dockerfile in the current master branch. |
I tried the image in docker hub. Didn't work for me.
|
Don't know it was made by @trinitronx I just merged it in the master branch. |
@alberttwong : Sorry about the lack of documentation, I realized that this particular container needs a bit of extra options in order to start. Because it uses SystemD inside the container, you need to run it with a couple options:
I put a comment on the appropriate docker issue #7459 detailing my testing & findings on how to get SystemD working inside a docker container. So to start this, you need to do something like this:
Note that you may also opt to avoid the You may also wish to check out the run script I added to this repo under |
Changes:
Dockerfile
to install & getdebian:stretch
SystemD
-based docker container with Minera up and running, found and fixed the following issue:getMacLinux()
function to always return first thing that looks like a MAC address fromnetstat -ie
output. (Some Unix* flavors do not always haveHWAddr
orether
in front, so pattern matching works best).container=docker
environment variable (must be set for SystemD to work inside Docker)redis
' (for future Redis cluster scalability & ability to start / stop the Minera container independently while leaving upredis
container to save Redis data)If you appreciate the work, I do accept tips: