Skip to content

Commit

Permalink
fixes for remote docker buildx building
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Nov 17, 2024
1 parent 2f5d64c commit 0d74a7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build_system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ docker buildx build -f Dockerfile.agnos --check $DIR

# Start build and create container
echo "Building agnos-builder docker image"
BUILD="docker build"
BUILD="docker buildx build --load"
if [ ! -z "$NS" ]; then
BUILD="nsc build --load"
fi
Expand All @@ -67,14 +67,14 @@ echo "Creating agnos-builder container"
CONTAINER_ID=$(docker container create --entrypoint /bin/bash agnos-builder:latest)

# Check agnos-meta-builder Dockerfile
docker buildx build -f Dockerfile.builder --check $DIR \
docker buildx build --load -f Dockerfile.builder --check $DIR \
--build-arg UNAME=$(id -nu) \
--build-arg UID=$(id -u) \
--build-arg GID=$(id -g)

# Setup mount container for macOS and CI support (namespace.so)
echo "Building agnos-meta-builder docker image"
docker buildx build -f Dockerfile.builder -t agnos-meta-builder $DIR \
docker buildx build --load -f Dockerfile.builder -t agnos-meta-builder $DIR \
--build-arg UNAME=$(id -nu) \
--build-arg UID=$(id -u) \
--build-arg GID=$(id -g)
Expand Down

0 comments on commit 0d74a7d

Please sign in to comment.