Create a development container for "deno".
Multiple tools need to be installed on the local machine, with different setup methods for Windows and Mac.
Deno Build Manual https://docs.deno.com/runtime/manual/references/contributing/building_from_source
- This repository is created by a Windows user.
- Not verified on Mac.
- Deno version upgrade may make this repository unusable.
Use the VSCode extensions to edit files in the container.
- VSCode & Extensions
- Dev Containers: v0.362.0
- Docker: v20.10.22
Open this project in VSCode to create a container.
For developer, clone forked repository path.
$ cd /workspace/
$ git clone --recurse-submodules https://github.com/denoland/deno.git ./deno
$ cd /workspace/deno
$ cargo build -vv
The "deno" command can be used.
$ cd /workspace/deno
$ ./target/debug/deno --version
$ ./target/debug/deno run tests/testdata/run/002_hello.ts
Can set "deno" path.
$ vim ~/.bashrc
# Insert
> export PATH="/workspace/deno/target/debug:$PATH"
$ source ~/.bashrc
$ deno --version
If the denoland.vscode-deno
extension is disabled, please enable it.
ssh-agent allows local credentials to be used in containers.
https://code.visualstudio.com/remote/advancedcontainers/sharing-git-credentials
If ssn-agent is able to transfer to the container, but the key is not available via SSH. If you have a low version of OpenSSH on Windows, the specification cannot be used for security purposes.
$ ssh -V
> OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2