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

Cannot create Config.env #8

Open
Thetermin4tor opened this issue Apr 29, 2024 · 1 comment
Open

Cannot create Config.env #8

Thetermin4tor opened this issue Apr 29, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Thetermin4tor
Copy link

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

  • Ubuntu 24.02
  • Package Version: synthia 0.1.0
  • Python Version: python3 is already the newest version (3.9.2-3).
@Thetermin4tor Thetermin4tor added the bug Something isn't working label Apr 29, 2024
@PsicoThePato
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants