Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Documentation #349

Open
unintended-consequences opened this issue Aug 2, 2022 · 4 comments
Open

Docker Documentation #349

unintended-consequences opened this issue Aug 2, 2022 · 4 comments

Comments

@unintended-consequences
Copy link

unintended-consequences commented Aug 2, 2022

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?

@unintended-consequences
Copy link
Author

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.

@djerfy
Copy link
Contributor

djerfy commented Aug 25, 2022

@unintended-consequences your server is already in your known_hosts file?

@andrius-nordcode
Copy link

@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

@DeflateAwning
Copy link

You should add a "How to run with Docker" section to the README

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants