From dcdefd8455a982da0235ed4ba3742397187b712e Mon Sep 17 00:00:00 2001 From: Hugo Josefson Date: Mon, 1 Apr 2024 11:03:51 +0200 Subject: [PATCH] fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! feat: use largest writable tmpfs that allows executables --- Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 82a55a2..22906c5 100644 --- a/Makefile +++ b/Makefile @@ -59,10 +59,7 @@ test/import-test-piped.sh: src/deno-shebang-piped.min.sh test/import-test.ts docker-test: docker build -t deno-shebang-test . - find / -type s -name docker.sock 2>/dev/null - set -x; ls -tr $$(find / -type s -name docker.sock 2>/dev/null) - set -x; print_if_socket() { [ -S "$$1" ] && echo "$$1" || :; }; export -f print_if_socket; ls -tr $$(find / -type s -name docker.sock 2>/dev/null) | xargs -n1 print_if_socket - print_if_socket() { [ -S "$$1" ] && echo "$$1" || :; }; export -f print_if_socket; socket_path() { print_if_socket "$${XDG_RUNTIME_DIR}/docker.sock" || print_if_socket /var/run/docker.sock || ls -tr $$(find / -type s -name docker.sock 2>/dev/null) | xargs -n1 print_if_socket; }; export -f socket_path; docker run --rm -i -v "$$(socket_path):/var/run/docker.sock:Z" deno-shebang-test make --always-make all + set -x; print_if_socket() { [ -S "$$1" ] && echo "$$1" || :; }; export -f print_if_socket; socket_path() { print_if_socket "$${XDG_RUNTIME_DIR}/docker.sock" || print_if_socket /var/run/docker.sock || print_if_socket /run/docker.sock || ls -tr $$(find / -type s -name docker.sock 2>/dev/null) | xargs -n1 print_if_socket; }; export -f socket_path; docker run --rm -i -v "$$(socket_path):/var/run/docker.sock:Z" deno-shebang-test make --always-make all @echo "'make all' was successful inside Docker." docker-output-test: ./test/output.test.ts example example.min example.ts example.min.ts