AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

docker --install-plugin-deps

Open rcpilotp51 opened this issue 2 years ago • 4 comments

how do you install the plugins on docker instance? Thanks

rcpilotp51 avatar Apr 28 '23 16:04 rcpilotp51

Hi @rcpilotp51,

To install and add plugins to your AutoGPT instance running in Docker, you can follow the steps below:

  1. Download and extract the Auto-GPT-Plugins repository to your local machine.

  2. Update your docker-compose.yml file to include the appropriate volume mounts. Your updated docker-compose.yml should look like this:

version: "3.9" services: auto-gpt: image: significantgravitas/auto-gpt:0.2.2 depends_on: - redis env_file: - .env environment: MEMORY_BACKEND: ${MEMORY_BACKEND:-redis} REDIS_HOST: ${REDIS_HOST:-redis} volumes: - ./:/app - ./data:/app/data - ./plugins:/app/plugins profiles: ["exclude-from-up"] redis: image: "redis/redis-stack-server:latest"

In the volumes section of the auto-gpt service, we've added the following lines:

  - ./data:/app/data
  - ./plugins:/app/plugins

These lines mount the data and plugins directories from your local machine to the container at /app/data and /app/plugins, respectively.

  1. Run the following commands to update your Docker containers with the new configuration and mount the volumes correctly:

docker-compose down docker-compose up -d

  1. Copy the extracted plugins to the /app/plugins directory inside the container. You can do this with the following command, replacing CONTAINER_ID with the ID of your AutoGPT container and /path/to/your/extracted/plugins with the path where you extracted the Auto-GPT-Plugins repository:

docker cp /path/to/your/extracted/plugins CONTAINER_ID:/app/plugins

After completing these steps, the plugins should be properly installed and added to your AutoGPT instance running in Docker. If you have any further questions or need assistance, feel free to ask.

kkilatesGPT avatar Apr 29 '23 06:04 kkilatesGPT

Transferring issue to main repo

ntindle avatar Apr 30 '23 00:04 ntindle

How did you install the requirements for the plugins? I tried to use the Instagram plugin but couldn't install the instant requirement

KenWuqianghao avatar May 07 '23 17:05 KenWuqianghao

The correct way to run it in docker is like this: docker-compose run --rm auto-gpt --install-plugin-deps. Make sure you have the plugins already configured locally and you update docker-compose.yml to have : volumes:

  • ./:/app
  • ./data:/app/data
  • ./plugins:/app/plugins

jeffmercury avatar May 11 '23 01:05 jeffmercury

Using --install-plugin-deps does absolutely nothing, either on stable-0.3.1 or master branches. AutoGPT fails to find dependencies when using plugins. I was attempting to use the Auto-Web-Interaction-Plugin, and while AutoGPT does find it:

Plugins found: 1
--------------------
  Auto-Web-Interaction-Plugin: 0.1.0 - Auto-GPT Web Interaction Plugin: Interact with websites.

It nonetheless is unable to continue, because that plugin depends on Playwright, and --install-plugin-deps does not have any affect on the docker environment. It's as if it just silently fails.

VisionaryMind avatar May 18 '23 16:05 VisionaryMind

@VisionaryMind make sure to add the volumes listed above, ensure your docker image is up to date, and that your local plugins are up-to-date. Run the command locally and see if you can use the plugins, if you can, you should be able to run the docker-compose run --rm auto-gpt --install-plugin-deps in docker.

jeffmercury avatar Jun 01 '23 13:06 jeffmercury

This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days.

github-actions[bot] avatar Sep 06 '23 21:09 github-actions[bot]

This issue was closed automatically because it has been stale for 10 days with no activity.

github-actions[bot] avatar Sep 19 '23 01:09 github-actions[bot]