chiadog
chiadog copied to clipboard
Docker Documentation
I'm trying to spin up a new instance via docker-compose. There doesn't seem to be much documentation.
Have tried the following:
version: "3.7"
services:
chiadog:
image: "ghcr.io/martomi/chiadog:latest"
container_name: "chiadog"
volumes:
- ~/chiadog/config:/root/.chiadog
environment:
- TZ=$TZ
I've put a config.yaml into the config folder but I am getting this error:
/chiadog/venv/lib/python3.10/site-packages/paramiko/transport.py:236: CryptographyDeprecationWarning: Blowfish has been deprecated
"class": algorithms.Blowfish,
[2022-08-02 19:24:25] [ INFO] --- Starting Chiadog (unknown) (main.py:54)
[2022-08-02 19:24:25] [ INFO] --- Connected (version 2.0, client OpenSSH_8.9p1) (transport.py:1873)
Traceback (most recent call last):
File "/chiadog/main.py", line 113, in <module>
init(conf)
File "/chiadog/main.py", line 58, in init
log_consumer = create_log_consumer_from_config(chia_logs_config)
File "/chiadog/src/chia_log/log_consumer.py", line 234, in create_log_consumer_from_config
platform, path = get_host_info(
File "/chiadog/src/chia_log/log_consumer.py", line 187, in get_host_info
client.connect(hostname=host, username=user, port=port)
File "/chiadog/venv/lib/python3.10/site-packages/paramiko/client.py", line 415, in connect
self._policy.missing_host_key(
File "/chiadog/venv/lib/python3.10/site-packages/paramiko/client.py", line 825, in missing_host_key
raise SSHException(
paramiko.ssh_exception.SSHException: Server 'x.x.xx.xx' not found in known_hosts
Which suggests I need to feed the docker some SSH keys?
Have tried mapping known_hosts to:
/etc/ssh /root/.ssh
Docker container itself works as I can get the file_log_consumer to run. But the network_log_consumer is not a happy bunny.
@unintended-consequences your server is already in your known_hosts file?
@unintended-consequences this is docker-compose.yml that works for me
version: "3"
services:
chiadog:
image: 'ghcr.io/martomi/chiadog:latest'
container_name: chiadog
volumes:
- ~/.config/chiadog/:/root/.chiadog/
- ~/.chia/mainnet/log/:/root/.chia/mainnet/log:ro
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
You should add a "How to run with Docker" section to the README