Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup!…
Browse files Browse the repository at this point in the history
… fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! feat: use largest writable tmpfs that allows executables
  • Loading branch information
hugojosefson committed Apr 1, 2024
1 parent abb48a8 commit dcdefd8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dcdefd8

Please sign in to comment.