Skip to content

Commit ddd4315

Browse files
committed
Don't use emulation, gdb and tests both fail under it. Pass --privileged as debuggers need it.
1 parent b26a202 commit ddd4315

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

container.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ set -e
33

44
container_name="libkqueue-dev"
55
dev_image="libkqueue-clang-cmake-dev:latest"
6-
platform="linux/amd64"
76

87
# Verbosity
98
verbose=0
@@ -53,17 +52,17 @@ hash_file() {
5352
image_build() {
5453
[ -f Dockerfile ] || { error "no Dockerfile in $(pwd)"; exit 1; }
5554
hash=$(hash_file Dockerfile)
56-
debug "(re-)building image with $platform -t $dev_image --build-arg IMAGE_FINGERPRINT=$hash ."
57-
docker build --platform=$platform -t "$dev_image" --build-arg "IMAGE_FINGERPRINT=$hash" .
55+
debug "(re-)building image with -t $dev_image --build-arg IMAGE_FINGERPRINT=$hash ."
56+
docker build -t "$dev_image" --build-arg "IMAGE_FINGERPRINT=$hash" .
5857
}
5958

6059
run_container() {
6160
debug "Starting container '$container_name' with image '$dev_image'"
6261
docker run --rm -it \
63-
--platform=${platform} \
6462
--name "$container_name" \
6563
--hostname "$container_name" \
6664
-u "$(id -u)":"$(id -g)" \
65+
--privileged \
6766
-e HOME=/home/dev \
6867
-w /home/dev \
6968
-v "$PWD":/home/dev \

0 commit comments

Comments
 (0)