Skip to content

Commit

Permalink
Error on Dockerfile warnings (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-reckmann authored Aug 11, 2024
1 parent ba34182 commit 6d886f2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile.agnos
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# check=error=true

# ################## #
# ###### Base ###### #
# ################## #
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile.builder
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# check=error=true

FROM ubuntu:20.04

ARG UNAME
Expand Down
9 changes: 9 additions & 0 deletions build_system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 6d886f2

Please sign in to comment.