Skip to content

Learning more about crypto, trading, and deep learning with GPUs and K8s.

License

Notifications You must be signed in to change notification settings

onelapahead/ethernetes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ethernetes

Learning more about crypto, trading, and deep learning with GPUs and K8s.

Getting Started

Requirements

Docker

sudo docker login ghcr.io
sudo systemctl daemon-reload
sudo systemctl restart docker

Mining

sudo nvidia-docker run -p 127.0.0.1:3333:3333/tcp --restart=always --detach=true --gpus=0 --name=ethminer ghcr.io/hfuss/miner:latest

To test the API server:

echo '{"id":0,"jsonrpc":"2.0","method":"miner_ping"}' | netcat 127.0.0.1 3333

Real-Time Logs

sudo docker logs ethminer --follow --since 10s

Monitoring via DataDog

sudo nvidia-docker run -d --gpus=all \
  --restart always \
  --name datadog-agent \
  -v /var/run/docker.sock:/var/run/docker.sock:ro \
  -v /proc/:/host/proc/:ro \
  -v /sys/fs/cgroup/:/host/sys/fs/cgroup:ro \
  -v /opt/datadog-agent-conf.d:/conf.d:ro \
  -v /opt/datadog-agent-checks.d:/checks.d:ro \
  -e DD_API_KEY=${DD_API_KEY} \
  -e DD_SITE=datadoghq.com \
  ghcr.io/hfuss/datadog-agent:latest