thank’s, great work and good idea!
I tried your Dockerfile and there was a little problem which leaded to not being able to run the container.
You used the ARG variable
and then used it for executing the miner:
CMD ./SmartMiner.$MINER_VERSION -cd $DEVICE …
That’s the right idea but the problem is:
ARG variables are only usable during building the container. When I wanted to start the container it didn’t know this variable and so it couldn’t find the executable file.
The workaround is easy:
use an environment variable which points to the arg variable:
You can test the different behaviour if you start the container and try
Without using the env variable this command will output nothing because the variable is not defined. Using the env command in Dockerfile leads to a known environment variable.
But that’s the only issue. Then it worked
I like your suggestion to put the Dockerfile and Docker container on my GitHub Repo and Docker Hub to have it on one place. I already pushed it there:
https://github.com/sh39sxn/mining-aion-coins/blob/master/aion-gpu-smartminer.Dockerfile and https://github.com/sh39sxn/mining-aion-coins/blob/master/aion-gpu-smartminer.env
And adjusted the docker-compose.yml
I mentioned your repo in the Dockerfile and Docker Hub because I don’t want to steal any code.
If don’t want to be linked just tell me and I remove it.
And thank’s for donations. I’m glad that the Containers are useful for you. If you donate some of your mined coins the address will be:
You can also see the address on DockerHub.
In the meanwhile I stopped mining. I don’t have the equipment to mine anything anymore. The hashrate and difficult is too high for me, so it doesn’t make any sense for me anymore
Maybe I will focus on other projects, too. And create some more docker setups