After cloning the repository, you need to run the setup script first:
./internal/scripts/setup_env_file.sh
This will return an exit code of 1 on a first time run.
To build the release image, run the following script:
DOCKER_BUILDKIT=1 ./ci/scripts/build_docker_image.sh \
-regular-docker-builder \
-image-name "nvcr.io/nvidian/cvai_bnmo_trng/bionemo:bionemo2-$(git rev-parse HEAD)"
To build the development image, run the following script:
./internal/scripts/build_dev_image.sh
After building the development image, you can start a container from it and open a bash shell in it by executing:
./internal/scripts/run_dev.sh
Inside the development container, run ./ci/scripts/static_checks.sh
to validate that code changes will pass the code
formatting and license checks run during CI. In addition, run the longer ./ci/scripts/run_pytest.sh
script to run unit
tests for all sub-packages.