File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44container_name=" libkqueue-dev"
55dev_image=" libkqueue-clang-cmake-dev:latest"
6- platform=" linux/amd64"
76
87# Verbosity
98verbose=0
@@ -53,17 +52,17 @@ hash_file() {
5352image_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
6059run_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 \
You can’t perform that action at this time.
0 commit comments