Skip to content

Commit

Permalink
Finish build
Browse files Browse the repository at this point in the history
  • Loading branch information
dmnks committed Sep 15, 2023
1 parent e92d82f commit 937ede7
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions tests/mktree.podman
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,24 @@ fi
case $CMD in
build)
target=full
[ "$1" == "--native" ] && target=base
if [ "$1" == "--native" ]; then
error=0
if [ "$CONTEXT" == ".." ]; then
error=1
message="in source dir"
fi
if [ "$(basename $PODMAN)" == "docker" ]; then
error=1
message="with Docker"
fi
if [ $error == 1 ]; then
echo "Native build not supported $message." >&2
exit 1
fi
target=base
fi

# Build (base) image
cd $(dirname $0)
$PODMAN build --target $target -t $IMAGE_BASE -f Dockerfile $CONTEXT

# Finish unless building RPM natively
Expand Down

0 comments on commit 937ede7

Please sign in to comment.