From 2c542cfeb388c5b6b87b897e215c7c407ac5a9d7 Mon Sep 17 00:00:00 2001 From: Ashcon Partovi Date: Thu, 16 Mar 2023 17:05:47 -0700 Subject: [PATCH] New image: bun --- library/bun | 13 +++++++++++++ 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 +++++++ 5 files changed, 23 insertions(+) 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 0000000000000..120753a6f2820 --- /dev/null +++ b/library/bun @@ -0,0 +1,13 @@ +Maintainers: Jarred Sumner (@Jarred-Sumner), + Ashcon Partovi (@Electroid) +GitRepo: https://github.com/oven-sh/bun.git + +Tags: latest, debian, 0.5.7, 0.5.7-debian, 0.5, 0.5-debian +Architectures: amd64, arm64v8 +GitCommit: 37293cb26a8239d4f387218a1fdadc522787835f +Directory: dockerhub/debian + +Tags: debian-slim, 0.5.7-debian-slim, 0.5-debian-slim +Architectures: amd64, arm64v8 +GitCommit: 37293cb26a8239d4f387218a1fdadc522787835f +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 0000000000000..d4285704dbcc6 --- /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 0000000000000..c8acdff0d2489 --- /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 0000000000000..c1bb626e77a11 --- /dev/null +++ b/test/tests/bun-hello-world/run.sh @@ -0,0 +1 @@ +../run-bun-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 0000000000000..ceb1e4b0c2de2 --- /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