From 916d51b26143746af0a146ccaa187075143dba05 Mon Sep 17 00:00:00 2001 From: Ashcon Partovi Date: Thu, 16 Mar 2023 17:06:32 -0700 Subject: [PATCH] New image: bun --- bun/README-short.txt | 1 + bun/content.md | 35 +++++++++++++++++++++++++++++++++++ bun/get-help.md | 1 + bun/github-repo | 1 + bun/license.md | 3 +++ bun/logo.png | Bin 0 -> 4174 bytes bun/maintainer.md | 1 + bun/variant-debian-slim.md | 3 +++ bun/variant-debian.md | 3 +++ 9 files changed, 48 insertions(+) create mode 100644 bun/README-short.txt create mode 100644 bun/content.md create mode 100644 bun/get-help.md create mode 100644 bun/github-repo create mode 100644 bun/license.md create mode 100644 bun/logo.png create mode 100644 bun/maintainer.md create mode 100644 bun/variant-debian-slim.md create mode 100644 bun/variant-debian.md diff --git a/bun/README-short.txt b/bun/README-short.txt new file mode 100644 index 000000000000..867e4b7d89e9 --- /dev/null +++ b/bun/README-short.txt @@ -0,0 +1 @@ +Bun is a fast all-in-one JavaScript runtime, package manager, bundler, and test runner. \ No newline at end of file diff --git a/bun/content.md b/bun/content.md new file mode 100644 index 000000000000..52e715c730ba --- /dev/null +++ b/bun/content.md @@ -0,0 +1,35 @@ +# What is Bun? + +Bun is an all-in-one toolkit for JavaScript and TypeScript apps. It ships as a single executable called `bun`​. + +At its core is the Bun runtime, a fast JavaScript runtime designed as a drop-in replacement for Node.js. It's written in Zig and powered by JavaScriptCore under the hood, dramatically reducing startup times and memory usage. + +​​The `bun`​ command-line tool also implements a test runner, script runner, and Node.js-compatible package manager, all significantly faster than existing tools and usable in existing Node.js projects with little to no changes necessary. + +> [Documentation](https://bun.sh/docs) + +%%LOGO%% + +# How to use this image + +## `Dockerfile` + +```dockerfile +FROM %%IMAGE%%:-debian + +COPY src src +COPY package.json package.json +COPY bun.lockb bun.lockb + +RUN bun install + +CMD ["src/index.ts"] +``` + +## `docker run` + +```sh +docker run --ulimit memlock=-1:-1 bun +``` + +> It is recommended to set the `--ulimit` flag to the value above to avoid unnecessary resource contention. diff --git a/bun/get-help.md b/bun/get-help.md new file mode 100644 index 000000000000..98323e7ae7a4 --- /dev/null +++ b/bun/get-help.md @@ -0,0 +1 @@ +[the Bun Discord server](https://bun.sh/discord) diff --git a/bun/github-repo b/bun/github-repo new file mode 100644 index 000000000000..3b434e0ab0da --- /dev/null +++ b/bun/github-repo @@ -0,0 +1 @@ +https://github.com/oven-sh/bun diff --git a/bun/license.md b/bun/license.md new file mode 100644 index 000000000000..1157456e9f1a --- /dev/null +++ b/bun/license.md @@ -0,0 +1,3 @@ +Bun itself is MIT-licensed. + +Bun statically links with other software, which have [various](https://bun.sh/docs/project/licensing) licenses. diff --git a/bun/logo.png b/bun/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..f3929b40888c1d7b7c9c843cc6bc8fba1c369bb9 GIT binary patch literal 4174 zcmV-U5V7xxP)gu00006VoOIv0RI60 z0RN!9r;`8x5Ccg>K~#9!?OX|XRMiy@0nA#m07^ixqLf8eX|bu8Ah;H3t1Wb~+Co9F zEf%YmC{zIpO09}~ilX#u3;9qHs%!y*kUg20%uLqFY?&D*%Vb|B$z+?E({pd`8}7WB zB$Js00`z^~|IN&O_r3e>Kj++Y?z!haKfmF1%tow2Y(o4Q@g!nCVuauSk6w?dh_?}X z1oVPR#QTWv{GYDN$6bgc2x}k2iD5(h7ct{TChiu*M&xuTGM7Dy6xcQ2Te%*Ye2uSKl65yr^xBV@cf&YUq_RhTcM#MwHUpxbN& zqau}(b*U%?YW2DFduiU+pvXQ64aPkBJ2&;TdcuV9--uK@9WnQMB#x-q$GrLl2M3iO z|MF-f*sWmiYK5lqB8RjUr2m(Gw$-R0FZC$2n2PD|N_7V0Ui=hvdFP?Cp_G<=@XpSR zkt0Wzi`4oZ#J8>o;)qJEW-2Chu>INfYn7I^764l(SS>Y3UI9wjc}hrEgASxgpMj-T zMStrGE>2aOC;4qsOB@nPRGXBQd~?bni3F01$CcsX zVfiApPC_iWmWYc&?B}iP=+UFA_wUGG0vkR^Q%9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|n(eQ!41&~o3k!S8NUYyAe30$*zd{`EBi1&UAYakzS#BL!**ecz za9_~KcG&MkJmNPD-%>Qx$3$j;NWRJIY{T<^m~VETf$ZNs%$6Lsv%1Utdfvl&RmQac Y0Uy^@l%Cu-debian-slim` + +This image is based on the official [`debian:bullseye-slim`](https://hub.docker.com/_/debian) Docker image with `bun` built-in. diff --git a/bun/variant-debian.md b/bun/variant-debian.md new file mode 100644 index 000000000000..8fdcb3b3c611 --- /dev/null +++ b/bun/variant-debian.md @@ -0,0 +1,3 @@ +## `%%IMAGE%%:-debian` + +This image is based on the official [`debian:bullseye`](https://hub.docker.com/_/debian) Docker image with `bun` built-in.