Skip to content

Comments

dev(hansbug): better docker builder and launcher#45

Draft
HansBug wants to merge 3 commits intoopendilab:mainfrom
HansBug:dev/better_docker
Draft

dev(hansbug): better docker builder and launcher#45
HansBug wants to merge 3 commits intoopendilab:mainfrom
HansBug:dev/better_docker

Conversation

@HansBug
Copy link
Member

@HansBug HansBug commented Feb 12, 2026

All in Makefile

@HansBug HansBug self-assigned this Feb 12, 2026
@HansBug HansBug added the enhancement New feature or request label Feb 12, 2026
@HansBug HansBug marked this pull request as draft February 12, 2026 15:35
# dbuild: build docker image with cache if exists
dbuild:
docker build -t ${IMAGE_NAME} .
if docker image inspect ${IMAGE_NAME} >/dev/null 2>&1; then \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add comment for this if-branch

0
"""
parser = argparse.ArgumentParser()
parser.add_argument("-i", "--input", dest="volume_str")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we add volume_str by add_argument function here


volume_str = args.volume_str or os.environ.get("DOCKER_VOLUME_STR", "")
if not volume_str:
return 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return -1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants