From f32736dc12f7b2ff11860ef27dbbe1a260af1166 Mon Sep 17 00:00:00 2001 From: Ashcon Partovi Date: Thu, 16 Mar 2023 16:04:27 -0700 Subject: [PATCH] Add new image: Bun --- library/bun | 14 ++++++++++++++ test/tests/bun-hello-world/container.js | 1 + test/tests/bun-hello-world/expected-std-out.txt | 1 + test/tests/bun-hello-world/run.sh | 1 + test/tests/run-bun-in-container.sh | 7 +++++++ test/tests/run-node-in-container.sh | 2 +- 6 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 library/bun create mode 100644 test/tests/bun-hello-world/container.js create mode 100644 test/tests/bun-hello-world/expected-std-out.txt create mode 120000 test/tests/bun-hello-world/run.sh create mode 100755 test/tests/run-bun-in-container.sh diff --git a/library/bun b/library/bun new file mode 100644 index 00000000000000..1d3c55531e8732 --- /dev/null +++ b/library/bun @@ -0,0 +1,14 @@ +Maintainers: Jarred Sumner (@Jarred-Sumner), + Ashcon Partovi (@Electroid) + +GitRepo: https://github.com/oven-sh/bun.git +GitFetch: refs/heads/main +GitCommit: 37293cb26a8239d4f387218a1fdadc522787835f + +Tags: latest, debian, 0.5.7, 0.5.7-debian, 0.5, 0.5-debian +Architectures: amd64, arm64v8 +Directory: dockerhub/debian + +Tags: debian-slim, 0.5.7-debian-slim, 0.5-debian-slim +Architectures: amd64, arm64v8 +Directory: dockerhub/debian-slim diff --git a/test/tests/bun-hello-world/container.js b/test/tests/bun-hello-world/container.js new file mode 100644 index 00000000000000..d4285704dbcc65 --- /dev/null +++ b/test/tests/bun-hello-world/container.js @@ -0,0 +1 @@ +console.log("Hello from Bun!"); diff --git a/test/tests/bun-hello-world/expected-std-out.txt b/test/tests/bun-hello-world/expected-std-out.txt new file mode 100644 index 00000000000000..c8acdff0d2489d --- /dev/null +++ b/test/tests/bun-hello-world/expected-std-out.txt @@ -0,0 +1 @@ +Hello from Bun! diff --git a/test/tests/bun-hello-world/run.sh b/test/tests/bun-hello-world/run.sh new file mode 120000 index 00000000000000..25097a4d71ca73 --- /dev/null +++ b/test/tests/bun-hello-world/run.sh @@ -0,0 +1 @@ +../run-node-in-container.sh \ No newline at end of file diff --git a/test/tests/run-bun-in-container.sh b/test/tests/run-bun-in-container.sh new file mode 100755 index 00000000000000..ceb1e4b0c2de21 --- /dev/null +++ b/test/tests/run-bun-in-container.sh @@ -0,0 +1,7 @@ +#!/bin/bash +set -e + +testDir="$(readlink -f "$(dirname "$BASH_SOURCE")")" +runDir="$(dirname "$(readlink -f "$BASH_SOURCE")")" + +source "$runDir/run-in-container.sh" "$testDir" "$1" bun ./container.js diff --git a/test/tests/run-node-in-container.sh b/test/tests/run-node-in-container.sh index 5b38ec5db22822..ceb1e4b0c2de21 100755 --- a/test/tests/run-node-in-container.sh +++ b/test/tests/run-node-in-container.sh @@ -4,4 +4,4 @@ set -e testDir="$(readlink -f "$(dirname "$BASH_SOURCE")")" runDir="$(dirname "$(readlink -f "$BASH_SOURCE")")" -source "$runDir/run-in-container.sh" "$testDir" "$1" node ./container.js +source "$runDir/run-in-container.sh" "$testDir" "$1" bun ./container.js