agicommies / synthia

Commune's synthetic data generation subnet
MIT No Attribution
11 stars 5 forks source link

Cannot create Config.env #8

Open Thetermin4tor opened 2 months ago

Thetermin4tor commented 2 months ago

Describe the bug

Every time i set up a new miner with docker run there is no config.env Folder anymore or even env/. I followed the Github steps even tho there is the tutorial now.

To Reproduce

Steps to reproduce the behavior

apt update apt install python3-pip pip install communex --upgrade apt install docker.io docker pull ghcr.io/agicommies/synthia:33b8ed8 docker run -v ~/.commune:/root/.commune -it -p 8000:8000 ghcr.io/agicommies/synthia:33b8ed8 poetry install poetry shell

Expected behavior

cd /app ls --then i would like to see the Config.env or the /env file but i dont so i cant fullfill setting up the variabels synthia

Specs

PsicoThePato commented 2 months ago

The canonical way of doing this using docker is to just set the config as enviroment variables, as mentioned on the Readme:

You can pass enviroments variables to docker with -e <VARIABLE>=<value>. e.g docker run -e ANTHROPIC_API_KEY=<your-anthropic-api-key> -v ~/.commune:/root/.commune -it ghcr.io/agicommies/synthia:33b8ed8

If you'd like, you can also map your local config file to the docker container, like it's done for your keys. It would look something like this:

docker run -v ~/.commune:/root/.commune -v ./config:/app/config -it ghcr.io/agicommies/synthia:33b8ed8