OpenHands
OpenHands copied to clipboard
Feat more efficient docker image naming
Faster startup and change detection in developer mode
- [X] Include this change in the Release Notes. If checked, you must provide an end-user friendly description for your change below
In development mode, when we have not specified a particular docker image to use, we generate a hash to distinguish builds from each other. (So as your files change, your hash changes, and new sandbox images are generated) In oder to do this we:
- Create a temp directory
- Build a tarball of the openhands package in this directory
- Unpack the tarball into the temp directory
- Delete the tarball
- rename the directory from the tarball to "code"
- Add a dockerfile to this directory
- Get the md5 of this directory
This PR skips steps 1 - 6 shaving valuable seconds off the process. Instead, we simply get the hash of "agenthub", "openhands", and pyproject.toml.