Skip to content

Commit

Permalink
Add --load flag for docker buildx
Browse files Browse the repository at this point in the history
Without there was a warning: No output specified with docker-container driver. Build result will only remain in the build cache.
  • Loading branch information
AntonPetrov committed Feb 2, 2025
1 parent 98ffae6 commit c1c20de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ build base_version="" tag=default_tag:
#!/usr/bin/env bash
set -euxo pipefail
[[ "{{base_version}}" == "" ]] && build_arg="" || build_arg="--build-arg BASE_IMAGE_VERSION={{base_version}}"
docker buildx build {{ platform_arg }} $build_arg -t {{ image }}:{{tag}} .
docker buildx build --load {{ platform_arg }} $build_arg -t {{ image }}:{{tag}} .
# Shortcut to build the R2DT Docker image against custom base image
tag-build tag: (build tag tag)

# Build base image locally
bbuild:
docker buildx build {{ platform_arg }} -t {{ base_image }} base_image
docker buildx build --load {{ platform_arg }} -t {{ base_image }} base_image

# Build base and then the r2dt images locally
full-build: bbuild (tag-build "latest")
Expand Down

0 comments on commit c1c20de

Please sign in to comment.