AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

Update setup.md so files are accessible within Docker

Open MauroDruwel opened this issue 2 years ago • 1 comments

Change the workspace folder from /app/auto_gpt_workspace folder to /app/autogpt/auto_gpt_workspace folder so it can access the files correctly. See https://github.com/Significant-Gravitas/Auto-GPT/issues/3768#issuecomment-1537460086

Background

See https://github.com/Significant-Gravitas/Auto-GPT/issues/3768

Changes

Edited docker-compose.yml. - ./auto_gpt_workspace:/app/auto_gpt_workspace to - ./auto_gpt_workspace:/app/autogpt/auto_gpt_workspace

Documentation

By running the docker-compose run --rm auto-gpt command, the files located in the local auto_gpt_workspace folder will be in the /app/auto_gpt_workspace folder. As you can see in the snippet with the VS code extension below: Screenshot from 2023-05-07 16-39-06 But AutoGPT searches in the /app/autogpt/auto_gpt_workspace folder... Screenshot from 2023-05-07 16-38-11 So what I did is I changed the docker-compose.yml so that it uses /app/autogpt/auto_gpt_workspace folder and not just /app/auto_gpt_workspace as in the screenshot below: Screenshot from 2023-05-07 16-50-33

Test Plan

Tested it and i saw the files in the correct folder in VS Code.

PR Quality Checklist

  • [ x ] My pull request is atomic and focuses on a single change.
  • [ x ] I have thoroughly tested my changes with multiple different prompts.
  • [ x ] I have considered potential risks and mitigations for my changes.
  • [ x ] I have documented my changes clearly and comprehensively.
  • [ x ] I have not snuck in any "extra" small tweaks changes

MauroDruwel avatar May 07 '23 15:05 MauroDruwel

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 7, 2023 3:08pm

vercel[bot] avatar May 07 '23 15:05 vercel[bot]

fixed in another pr

ntindle avatar May 10 '23 05:05 ntindle