Error on Dockerfile warnings (#298)

This commit is contained in:
Robin Reckmann
2024-08-12 07:13:18 +09:00
committed by GitHub
parent ba34182d5d
commit 6d886f2357
3 changed files with 13 additions and 0 deletions
+2
View File
@@ -1,3 +1,5 @@
# check=error=true
# ################## #
# ###### Base ###### #
# ################## #
+2
View File
@@ -1,3 +1,5 @@
# check=error=true
FROM ubuntu:20.04
ARG UNAME
+9
View File
@@ -42,12 +42,21 @@ if [ "$ARCH" = "x86_64" ]; then
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes > /dev/null
fi
# Check agnos-builder Dockerfile
docker build -f Dockerfile.agnos --check $DIR
# Start agnos-builder docker build and create container
echo "Building agnos-builder docker image"
docker build -f Dockerfile.agnos -t agnos-builder $DIR
echo "Creating agnos-builder container"
CONTAINER_ID=$(docker container create --entrypoint /bin/bash agnos-builder:latest)
# Check agnos-meta-builder Dockerfile
docker build -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 build -f Dockerfile.builder -t agnos-meta-builder $DIR \