An open API service indexing awesome lists of open source software.

https://github.com/alertbox/feature-setup-bun

Set up your @devcontainers with a specific version of Bun by @oven-sh
https://github.com/alertbox/feature-setup-bun

bun devcontainer-features developer-tools

Last synced: 8 months ago
JSON representation

Set up your @devcontainers with a specific version of Bun by @oven-sh

Awesome Lists containing this project

README

          


Logo


Setup Bun in Dev Containers

Download, install, and setup specific version of [Bun](https://bun.sh/) in your Dev Container.

> [!note]
>
> Originally, this was created to have an isolated development environment to install the pre-release versions on WSL. See [Known Issues](#known-issues) to learn more.

## Quick Start

[![Open a Dev Container](https://img.shields.io/static/v1?style=for-the-badge&label=Dev+Container&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/alertbox/try-bun)

You can also add this feature to your `devcontainer.json` file.

```json filename="devcontainer.json"
"features": {
"ghcr.io/alertbox/oven-sh/bun:1": {}
}
```
### Installing packages globally

You can also install packages globally, using the `packages` option. Typically this is used for installing CLI tools and the like.

```json filename="devcontainer.json"
"features": {
"ghcr:io/alertbox/oven-sh/bun:1": {
"packages": "cowsay"
}
}
```

### Node.js not needed

You don't need to use the feature [node](https://github.com/devcontainers/features/tree/main/src/node#readme) in most cases.

## Options

See [src/bun](./src/bun/README.md) folder to learn more about options.

## Contributing

The official repo to contribute would be [@oven-sh/bun](https://github.com/oven-sh/bun?tab=readme-ov-file#readme).

Have a suggestion or a bug fix? Just open a pull request or an issue. Include clear and simple instructions possible.

## Known Issues

- [Windows Support @oven-sh/bun #43](https://github.com/oven-sh/bun/issues/43)
- [Proposal: Create a feature to install Bun @devcontainers/features #949](https://github.com/devcontainers/features/pull/949)

## License

Copyright (c) The Alertbox, Inc. (@alertbox). All rights reserved.

The source code is license under the [MIT license](#MIT-1-ov-file).