Skip to content

Commit

Permalink
initial commit. TODO: make into feature
Browse files Browse the repository at this point in the history
  • Loading branch information
mattd-tg committed Feb 13, 2024
0 parents commit e874ea2
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM mcr.microsoft.com/devcontainers/typescript-node
RUN echo "deb [trusted=yes] https://packages.twingate.com/apt/ /" | tee /etc/apt/sources.list.d/twingate.list
RUN apt-get update -yq && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install git curl
RUN curl -s https://binaries.twingate.com/client/linux/install.sh | sudo bash
11 changes: 11 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"build": { "dockerfile": "Dockerfile" },
"runArgs": ["--device=/dev/net/tun"],
"capAdd": ["NET_ADMIN"],
"customizations": {
"vscode": {
"extensions": ["streetsidesoftware.code-spell-checker"]
}
},
"forwardPorts": [3128]
}
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function main() {
console.log('Hello, world!');
}

main();
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "devcontainer-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node index.js"
},
"author": "",
"license": "ISC"
}

0 comments on commit e874ea2

Please sign in to comment.