Skip to content

Commit b2193d3

Browse files
authored
Merge pull request #31 from dotmh/feat/bun
Feat/bun
2 parents 22dc611 + a872bee commit b2193d3

File tree

15 files changed

+142
-8
lines changed

15 files changed

+142
-8
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ jobs:
8282
container: dotnet
8383
- file: Rust.Dockerfile
8484
container: rust
85+
- file: Bun.Dockerfile
86+
container: bun
8587
base:
8688
- devcontainer
8789
- devcontainer-cloud

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
13.0.0
1+
14.0.0

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Click on the icon below to jump to the readme for that devcontainer
3939

4040
[![NodeJS](https://img.shields.io/badge/node.js-6DA55F?style=for-the-badge&logo=node.js&logoColor=white)](devcontainers/node/README.md)
4141
[![.Net](https://img.shields.io/badge/.NET-5C2D91?style=for-the-badge&logo=.net&logoColor=white)](devcontainers/csharp/README.md)
42+
[![Bun](https://img.shields.io/badge/Bun-%23000000.svg?style=for-the-badge&logo=bun&logoColor=white)](devcontainers/bun/README.md)
4243

4344
You can also create a devcontainer with no language specific tooling, just the [base](devcontainers/base/README.md) and [cloud](devcontainers/cloud/README.md) tools.
4445

@@ -159,3 +160,13 @@ For use when developing applications on Rust, can be built on top of any base
159160
- [Rustup](https://rust-lang.org/tools/install/)
160161
- [RustC](https://doc.rust-lang.org/rustc/index.html)
161162
- [Cargo](https://doc.rust-lang.org/cargo/index.html)
163+
164+
## Bun
165+
166+
![Bun](https://img.shields.io/badge/Bun-%23000000.svg?style=for-the-badge&logo=bun&logoColor=white)
167+
168+
For use when developing applications on Bun, can be built on top of any base
169+
170+
### Tools
171+
172+
- [Bun](https://bun.sh/)

containers/Bun.Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
ARG base=devcontainer
2+
FROM ghcr.io/dotmh/${base}:latest
3+
4+
LABEL org.opencontainers.image.source=https://github.com/dotmh/devcontainer
5+
LABEL org.opencontainers.image.licenses=apache-2.0
6+
7+
RUN curl -fsSL https://bun.sh/install | bash

devcontainers/base/devcontainer-template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "base",
33
"name": "DotMH Base Dev Container",
4-
"version": "13.0.0",
4+
"version": "14.0.0",
55
"publisher": "DotMH <oss+devcontainer@dotmh.io>",
66
"description": "The base dev container for interacting with the base container image",
77
"licenseURL": "https://github.com/dotmh/devcontainer/blob/main/LICENSE",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
FROM ghcr.io/dotmh/${templateOption:baseContainer}:latest
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "DotMH Node",
3+
"build": {
4+
"dockerfile": "Dockerfile"
5+
},
6+
"customizations": {
7+
"vscode": {
8+
"extensions": [
9+
"oven.bun-vscode",
10+
"streetsidesoftware.code-spell-checker",
11+
"formulahendry.auto-rename-tag",
12+
"nefrob.vscode-just-syntax",
13+
"hashicorp.terraform",
14+
"mattpocock.ts-error-translator",
15+
"github.vscode-github-actions",
16+
"github.copilot",
17+
"github.copilot-chat"
18+
]
19+
}
20+
}
21+
}

devcontainers/bun/README.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# DotMH Dev Container - Bun
2+
3+
A Devcontainer for use with Bun development, optionally with tools for working with AWS
4+
5+
![Static Badge](https://img.shields.io/badge/Rocky_Linux-10B981?style=for-the-badge&logo=rockylinux&logoColor=%23FFFFFF)
6+
![Static Badge](https://img.shields.io/badge/Ubuntu-E95420?style=for-the-badge&logo=ubuntu&logoColor=%23FFFFFF)
7+
![Bun](https://img.shields.io/badge/Bun-%23000000.svg?style=for-the-badge&logo=bun&logoColor=white)
8+
9+
- [Rocky Linux](https://rockylinux.org/)
10+
- [Ubuntu](https://ubuntu.com/)
11+
12+
## Tools
13+
14+
- [ZSH](https://www.zsh.org/) (Set as default Shell)
15+
- [OhMyZSH](https://ohmyz.sh/)
16+
- [BAT](https://github.com/sharkdp/bat) - A better Cat command
17+
- [EZA](https://github.com/eza-community/eza) - A better ls command
18+
- [Just](https://github.com/casey/just) - An awesome task runner
19+
- [Bun](https://bun.sh/) - The Bun runtime
20+
21+
### When Using Cloud containers as the base
22+
23+
![AWS](https://img.shields.io/badge/AWS-%23FF9900.svg?style=for-the-badge&logo=amazon-aws&logoColor=white)
24+
![DigitalOcean](https://img.shields.io/badge/DigitalOcean-%230167ff.svg?style=for-the-badge&logo=digitalOcean&logoColor=white)
25+
![Terraform](https://img.shields.io/badge/terraform-%235835CC.svg?style=for-the-badge&logo=terraform&logoColor=white)
26+
![Packer](https://img.shields.io/badge/packer-%23E7EEF0.svg?style=for-the-badge&logo=packer&logoColor=%2302A8EF)
27+
28+
- [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html)
29+
- [Digital Ocean CLI](https://docs.digitalocean.com/reference/doctl/)
30+
- [Terraform](https://www.terraform.io/)
31+
- [Packer](https://www.packer.io/)
32+
33+
## Visual Studio Extentions
34+
35+
![Visual Studio Code](https://img.shields.io/badge/Visual%20Studio%20Code-0078d7.svg?style=for-the-badge&logo=visual-studio-code&logoColor=white)
36+
37+
When using this devcontainer under [Visual Studio Code (vscode)](https://code.visualstudio.com/) with the
38+
[Devcontainer Extention](https://containers.dev/supporting#visual-studio-code), vscode will automatically install
39+
the following extentions
40+
41+
- [A Spellchecker](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker)
42+
- [Bun](https://marketplace.visualstudio.com/items?itemName=oven.bun-vscode)
43+
- [Tool for helping when renaming tags](https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-rename-tag)
44+
- [An Extension for working with Just files](https://marketplace.visualstudio.com/items?itemName=nefrob.vscode-just-syntax)
45+
- [Terraform](https://marketplace.visualstudio.com/items?itemName=hashicorp.terraform)
46+
- [A Handy tools for making Typescript Errors easier to understand](https://marketplace.visualstudio.com/items?itemName=mattpocock.ts-error-translator)
47+
- [Github Actions](https://marketplace.visualstudio.com/items?itemName=github.vscode-github-actions)
48+
- [Copilot](https://marketplace.visualstudio.com/items?itemName=github.copilot)
49+
- [Copilot Chat](https://marketplace.visualstudio.com/items?itemName=github.copilot-chat)
50+
51+
## Usage
52+
53+
### Requirements
54+
55+
- [Devcontainer CLI](https://containers.dev/supporting#devcontainer-cli)
56+
57+
### Example
58+
59+
```bash
60+
devcontainer templates apply -w . -t ghcr.io/dotmh/devcontainer/bun -a '{"baseContainer":"devcontainer-bun"}`
61+
```
62+
63+
#### Options
64+
65+
- `baseContainer` :
66+
- `devcontainer-bun` _DEFAULT_ - the ubuntu base container
67+
- `devcontainer-rocky-bun` - the rocky linux base container
68+
- `devcontainer-cloud-bun`- the ubuntu base container with cloud tools
69+
- `devcontainer-rocky-cloud-bun` - the rocky linux base container with cloud tools
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"id": "bun",
3+
"name": "DotMH Bun Dev Container",
4+
"version": "14.0.0",
5+
"publisher": "DotMH <oss+devcontainer@dotmh.io>",
6+
"description": "The Bun dev container for developing with Bun",
7+
"licenseURL": "https://github.com/dotmh/devcontainer/blob/main/LICENSE",
8+
"documentationURL": "https://github.com/dotmh/devcontainer/blob/main/devcontainers/bun/README.md",
9+
"options": {
10+
"baseContainer": {
11+
"type": "string",
12+
"description": "Which base image to use",
13+
"proposals": [
14+
"devcontainer-bun",
15+
"devcontainer-cloud-bun",
16+
"devcontainer-rocky-bun",
17+
"devcontainer-rocky-cloud-bun"
18+
],
19+
"default": "devcontainer-bun"
20+
}
21+
},
22+
"platforms": ["Any"]
23+
}

devcontainers/cloud/devcontainer-template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "cloud",
33
"name": "DotMH Cloud Dev Container",
4-
"version": "13.0.0",
4+
"version": "14.0.0",
55
"publisher": "DotMH <oss+devcontainer@dotmh.io>",
66
"description": "The cloud dev container for interacting with the cloud container image",
77
"licenseURL": "https://github.com/dotmh/devcontainer/blob/main/LICENSE",

0 commit comments

Comments
 (0)