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

Docker Cleanup #100

Merged
merged 2 commits into from
Apr 26, 2023
Merged

Docker Cleanup #100

merged 2 commits into from
Apr 26, 2023

Conversation

ceramicwhite
Copy link
Contributor

@ceramicwhite ceramicwhite commented Apr 26, 2023

  • remove version from registry image so latest tag is always pulled

  • include init so processes aren't running as pid 1

  • add optional persistent volumes for agents and workspaces

  • Clamp layers from scratch on runner

  • move deps from frontend to own build step for faster builds when using cached in CI

- remove version from registry image so latest tag is always pulled

- include init so processes aren't running as pid 1

-  add optional persistent volumes for agents and workspaces
- Clamp layers from scratch on runner

- move deps from frontend to own build step for faster builds when using cached in CI
@ceramicwhite
Copy link
Contributor Author

Mounting the volumes for some reason is throwing errors despite the containers have full read-write and the Objective Work Log fails to print so I commented it out but maybe you want to just remove it completely.

2023-04-25 18:55:05 agent-llm-backend-1   | ERROR:    Exception in ASGI application
2023-04-25 18:55:05 agent-llm-backend-1   | Traceback (most recent call last):
2023-04-25 18:55:05 agent-llm-backend-1   |   File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 436, in run_asgi
2023-04-25 18:55:05 agent-llm-backend-1   |     result = await app(  # type: ignore[func-returns-value]
2023-04-25 18:55:05 agent-llm-backend-1   |   File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
2023-04-25 18:55:05 agent-llm-backend-1   |     return await self.app(scope, receive, send)
2023-04-25 18:55:05 agent-llm-backend-1   |   File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 276, in __call__
2023-04-25 18:55:05 agent-llm-backend-1   |     await super().__call__(scope, receive, send)
2023-04-25 18:55:05 agent-llm-backend-1   |   File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 122, in __call__
2023-04-25 18:55:05 agent-llm-backend-1   |     await self.middleware_stack(scope, receive, send)
2023-04-25 18:55:05 agent-llm-backend-1   |   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in __call__
2023-04-25 18:55:05 agent-llm-backend-1   |     raise exc
2023-04-25 18:55:05 agent-llm-backend-1   |   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in __call__
2023-04-25 18:55:05 agent-llm-backend-1   |     await self.app(scope, receive, _send)
2023-04-25 18:55:05 agent-llm-backend-1   |   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 92, in __call__
2023-04-25 18:55:05 agent-llm-backend-1   |     await self.simple_response(scope, receive, send, request_headers=headers)
2023-04-25 18:55:05 agent-llm-backend-1   |   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 147, in simple_response
2023-04-25 18:55:05 agent-llm-backend-1   |     await self.app(scope, receive, send)
2023-04-25 18:55:05 agent-llm-backend-1   |   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
2023-04-25 18:55:05 agent-llm-backend-1   |     raise exc
2023-04-25 18:55:05 agent-llm-backend-1   |   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
2023-04-25 18:55:05 agent-llm-backend-1   |     await self.app(scope, receive, sender)
2023-04-25 18:55:05 agent-llm-backend-1   |   File "/usr/local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
2023-04-25 18:55:05 agent-llm-backend-1   |     raise e
2023-04-25 18:55:05 agent-llm-backend-1   |   File "/usr/local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
2023-04-25 18:55:05 agent-llm-backend-1   |     await self.app(scope, receive, send)
2023-04-25 18:55:05 agent-llm-backend-1   |   File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 718, in __call__
2023-04-25 18:55:05 agent-llm-backend-1   |     await route.handle(scope, receive, send)
2023-04-25 18:55:05 agent-llm-backend-1   |   File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
2023-04-25 18:55:05 agent-llm-backend-1   |     await self.app(scope, receive, send)
2023-04-25 18:55:05 agent-llm-backend-1   |   File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 66, in app
2023-04-25 18:55:05 agent-llm-backend-1   |     response = await func(request)
2023-04-25 18:55:05 agent-llm-backend-1   |   File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 237, in app
2023-04-25 18:55:05 agent-llm-backend-1   |     raw_response = await run_endpoint_function(
2023-04-25 18:55:05 agent-llm-backend-1   |   File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 163, in run_endpoint_function
2023-04-25 18:55:05 agent-llm-backend-1   |     return await dependant.call(**values)
2023-04-25 18:55:05 agent-llm-backend-1   |   File "/app/app.py", line 190, in get_task_status
2023-04-25 18:55:05 agent-llm-backend-1   |     status = CFG.agent_instances[agent_name].get_status()
2023-04-25 18:55:05 agent-llm-backend-1   |   File "/app/AgentLLM.py", line 161, in get_status
2023-04-25 18:55:05 agent-llm-backend-1   |     return not self.stop_running_event.is_set()
2023-04-25 18:55:05 agent-llm-backend-1   | AttributeError: 'NoneType' object has no attribute 'is_set'
2023-04-25 18:55:27 agent-llm-backend-1   | Starting task with objective: some test.

@Josh-XT Josh-XT merged commit 12dac55 into Josh-XT:main Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants