Xingyao Wang a69120d399
[Arch] Use hash to avoid repeat building EventStreamRuntime image (#3243)
* update the behavior of put source code to put files instead of tarball

* add dishash to dependency

* fix dockerfile copy

* use dirhash to avoid repeat building for update source

* fix runtime_build testcase

* add dir_hash to docker build pipeline

* add additional tests for source directory

* add comment

* clear the assertion by explictly check existing files

* also assert od is a dir
2024-08-05 03:13:32 +00:00
..

Dynamic constructed Dockerfile

This folder builds runtime image (sandbox), which will use a Dockerfile that is dynamically generated depends on the base_image AND a Python source distribution that's based on the current commit of opendevin.

The following command will generate Dockerfile for ubuntu:22.04 and the source distribution .tar into containers/runtime.

poetry run python3 opendevin/runtime/utils/runtime_build.py \
    --base_image ubuntu:22.04 \
    --build_folder containers/runtime