Hi does openhands support devcontainers?
# questions
r
Hi does openhands support devcontainers?
l
For development, yes. As an alternative to Docker containers, no. You can use setup.sh as a replacement for the devcontainer's postCreateCommand (if that what's you were looking for).
r
One of our main pain points that people report is that many times openhands is missing X on the env. and it has trouble getting it. (Think private libraries, conflicting versions for libraries etc) , usually developers go around on this issue by using a Dockerfile. So we thought why not strike 2 birds with a single shot by using devcontainers, fixing the issues for both agents and people in a uniform way that will also benefit new joiners, people from different squads etc.
w
we're definitely looking to better support "custom docker images" for the runtime environment
l
Isn't a devcontainer just a docker image structure with extra metadata? I looked at the devcontainer CLI guide and it looks like you can have it build the image directly (see screenshot). Maybe you could make a small script that reads the devcontainer.json, builds the image and then configures openhands to use it?
w
yeah possibly. But that's a long process and would really hurt startup time
l
Sorry, I meant something separate from OpenHands, a quick workaround you could already use. You could have a script build the custom image (if needed), create a setup.sh that mimics the postcreatecommand, and then configure/launch OpenHands.
nod 1