Conversation
8ball030
left a comment
There was a problem hiding this comment.
great great effort, heroic in fact however quite a few feedback points where stuff has been halucinated
docs/deployment.md
Outdated
| echo 'export BLOCK_EXPLORER_API_KEY="your_api_key"' >> ~/.bashrc | ||
| echo 'export BLOCK_EXPLORER_URL="your_explorer_url"' >> ~/.bashrc | ||
| source ~/.bashrc |
docs/deployment.md
Outdated
| 1. Create a systemd service file: | ||
| ```ini | ||
| [Unit] | ||
| Description=Auto Dev Service | ||
| After=network.target | ||
|
|
||
| [Service] | ||
| Type=simple | ||
| User=autodev | ||
| Environment=BLOCK_EXPLORER_API_KEY=your_api_key | ||
| Environment=BLOCK_EXPLORER_URL=your_explorer_url | ||
| WorkingDirectory=/home/autodev/auto_dev | ||
| ExecStart=/usr/local/bin/adev your_command | ||
| Restart=always | ||
|
|
||
| [Install] | ||
| WantedBy=multi-user.target | ||
| ``` | ||
|
|
||
| 2. Enable and start the service: | ||
| ```bash | ||
| sudo systemctl enable autodev | ||
| sudo systemctl start autodev | ||
| ``` | ||
|
|
||
| ### Monitoring | ||
| Monitor your deployment using: | ||
| ```bash | ||
| sudo systemctl status autodev | ||
| journalctl -u autodev -f | ||
| ``` | ||
|
|
||
| ## Docker Deployment (Optional) | ||
|
|
||
| While auto_dev doesn't currently provide official Docker images, you can containerize your auto_dev projects using this example configuration: | ||
|
|
||
| 1. Create a Dockerfile: | ||
| ```dockerfile | ||
| FROM python:3.11-slim | ||
|
|
||
| # Install system dependencies | ||
| RUN apt-get update && apt-get install -y \ | ||
| git \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Install auto_dev | ||
| RUN pip install autonomy-dev[all] | ||
|
|
||
| # Set working directory | ||
| WORKDIR /app | ||
|
|
||
| # Copy your project files | ||
| COPY . . | ||
|
|
||
| # Set environment variables | ||
| ENV BLOCK_EXPLORER_API_KEY=your_api_key | ||
| ENV BLOCK_EXPLORER_URL=your_explorer_url | ||
|
|
||
| # Run your command | ||
| CMD ["adev", "your_command"] | ||
| ``` | ||
|
|
||
| 2. Build and run: | ||
| ```bash | ||
| docker build -t auto_dev . | ||
| docker run -e BLOCK_EXPLORER_API_KEY=your_key auto_dev | ||
| ``` | ||
|
|
||
| ### Docker Compose | ||
| For more complex setups, use docker-compose: | ||
|
|
||
| ```yaml | ||
| version: '3' | ||
| services: | ||
| auto_dev: | ||
| build: . | ||
| environment: | ||
| - BLOCK_EXPLORER_API_KEY=${BLOCK_EXPLORER_API_KEY} | ||
| - BLOCK_EXPLORER_URL=${BLOCK_EXPLORER_URL} | ||
| volumes: | ||
| - .:/app | ||
| ``` | ||
|
|
docs/deployment.md
Outdated
| 3. **Service Issues** | ||
| ```bash | ||
| # Check service logs | ||
| journalctl -u autodev -n 100 |
There was a problem hiding this comment.
why do? We already generate docker-compose configurations as part of the run_mas.sh script?
docs/index.md
Outdated
| # Project Status Badges | ||
|
|
||
| [](https://github.com/8ball030/auto_dev/actions/workflows/common_check.yaml) | ||
|
|
||
|
|
||
| # Autonomy Dev | ||
|
|
||
| Tooling to speed up open-autonomy development. | ||
|
|
||
|
|
||
| ## TLDR | ||
|
|
||
| ```bash | ||
| # install | ||
| pip install autonomy-dev[all] | ||
| ``` |
There was a problem hiding this comment.
this entire page is a duplication of the readme right?
Can we instead reference the read me to avoid duplication which will immeidately lead to issues
docs/installation.md
Outdated
| # Create a repo & a simple webserver agent | ||
| adev repo scaffold fun_new_hack && \ | ||
| cd fun_new_hack && \ | ||
| adev create author/cool_agent \ |
There was a problem hiding this comment.
lets ensure that publish command group is much better @xiuxiuxar can you please look at this one?
Its the piblish command which is currently causing stuff to fall over anyhow
docs/usage.md
Outdated
| 2. **Dependency Management** | ||
| ```bash | ||
| # Update specific dependencies | ||
| adev deps update -p . --packages "package1,package2" |
docs/usage.md
Outdated
| adev deps update -p . --packages "package1,package2" | ||
|
|
||
| # Check for outdated dependencies | ||
| adev deps check -p . |
docs/usage.md
Outdated
| adev deps check -p . | ||
|
|
||
| # Update all dependencies | ||
| adev deps update -p . --all |
There was a problem hiding this comment.
--all not sure if the -p and . are necessary flags / arguments
docs/usage.md
Outdated
| # Prepare release | ||
| git checkout main | ||
| git pull | ||
| adev release --dry-run # Check what would be released |
auto_dev/handler/scaffolder.py
Outdated
| persistent_schemas = [ | ||
| schema for schema, details in schemas.items() if details.get("x-persistent") | ||
| ] | ||
| persistent_schemas = [schema for schema, details in schemas.items() if details.get("x-persistent")] |
There was a problem hiding this comment.
pretty sure this line is too long
Uh oh!
There was an error while loading. Please reload this page.