Skip to content

Commit 79b0a09

Browse files
authored
Merge pull request #1 from bytecodealliance/codespace-fix
Fix codespace button to point to new organization
2 parents 566752b + dd399f8 commit 79b0a09

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

.devcontainer/Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
ARG VARIANT="22"
2+
FROM mcr.microsoft.com/devcontainers/javascript-node:1-${VARIANT}
3+
4+
# Install system dependencies
5+
RUN apt-get update \
6+
&& export DEBIAN_FRONTEND=noninteractive \
7+
&& apt-get -y install --no-install-recommends curl gnupg2 tar xz-utils build-essential \
8+
&& rm -rf /var/lib/apt/lists/*
9+
10+
# Switch to node user to install wasmtime
11+
USER node
12+
13+
# Install Wasmtime
14+
RUN curl https://wasmtime.dev/install.sh -sSf | bash
15+
16+
# Install just
17+
RUN npm install -g rust-just
18+
19+
# Set up workspace
20+
WORKDIR /workspace

.devcontainer/devcontainer.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "wasi-http-js",
3+
"build": {
4+
"dockerfile": "Dockerfile",
5+
"context": ".."
6+
},
7+
"settings": {
8+
},
9+
"extensions": [
10+
],
11+
"forwardPorts": [8080],
12+
"remoteUser": "node"
13+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Sample: `wasi:http` in JavaScript
22

3-
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/andreiltd/sample-wasi-http-js)
3+
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/bytecodealliance/sample-wasi-http-js)
44

55
An example project showing how to build a spec-compliant
66
[`wasi:http/proxy`][wasi-http] server for WASI 0.2 written in JavaScript.

0 commit comments

Comments
 (0)