OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

build: docker-compose stack

Open leehanchung opened this issue 1 year ago • 7 comments

  • Dockerize backend and frontend app and put them in the same docker-compose stack.

leehanchung avatar Mar 30 '24 01:03 leehanchung

@rbren

leehanchung avatar Mar 30 '24 01:03 leehanchung

@leehanchung check out https://hub.docker.com/_/docker for the base image for the backend. You'll need to get python installed, but it should work well

rbren avatar Mar 30 '24 16:03 rbren

@leehanchung check out https://hub.docker.com/_/docker for the base image for the backend. You'll need to get python installed, but it should work well

Ok, will try it and let you know.

chensihai avatar Mar 30 '24 17:03 chensihai

How about the progress for Docker inside Docker approach? As I tried, it's not easy either.

I provide my solution as "Simon custom #479" https://github.com/chensihai/OpenDevin/tree/simonCustom Which get off Sandbox only for docker-compose starter, but keep the existing way work as it is. Let me explain why we should get off the Sandbox for container ---- the Sandbox do nothing but get access permission, when we use container, the access permission is not a problem.

I also create a backend folder, make it clearly match with docker-compose.yml's structure. This cause dev_config scan triggered alarms. Please someone manually test my submission.

chensihai avatar Apr 01 '24 03:04 chensihai

if you confirm to merge, maybe need you add Makefile for GHCR workflow 😃

iFurySt avatar Apr 01 '24 05:04 iFurySt

@leehanchung if it setup it in portainer i get this on the frontend: ERROR: Failed connection to server. Please ensure the server is reachable at ws://localhost:3000/ws. image

Both are running: image

Revono avatar Apr 01 '24 22:04 Revono

@leehanchung if it setup it in portainer i get this on the frontend: ERROR: Failed connection to server. Please ensure the server is reachable at ws://localhost:3000/ws. image

Both are running: image

same here

mauromarano avatar Apr 06 '24 20:04 mauromarano

Going to close this now that we have a first pass in. Thanks for your work here though! It was super helpful in guiding the solution.

If you have any feedback on the current implementation let me know!

rbren avatar Apr 15 '24 21:04 rbren