From c7bb396d043d2e3bde3f2392ffbf26827334d590 Mon Sep 17 00:00:00 2001 From: bretheren <31092321+bretheren@users.noreply.github.com> Date: Thu, 30 Nov 2023 14:11:20 +0000 Subject: [PATCH 1/3] Add VS Code devcontainer --- .devcontainer/Dockerfile | 10 ++++++++++ .devcontainer/devcontainer.json | 20 ++++++++++++++++++++ README.md | 15 +++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..0431bdd --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,10 @@ +FROM mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye + +# Install additional packages. +RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ + && apt-get -y install --no-install-recommends curl jq \ + && apt-get -y install ca-certificates curl python3-pip python3-dev python3-setuptools python3-wheel \ + && pip install --upgrade pip && pip install requests \ + && sudo rm -rf /var/lib/apt/lists/* + +RUN curl -o pond https://raw.githubusercontent.com/Team-Kujira/pond/main/pond && chmod +x pond && sudo mv pond /usr/local/bin/ diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..8169e81 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,20 @@ +{ + "name": "Node.hs, TypeScript & Pond", + "build": { + "dockerfile": "Dockerfile", + "context": ".." + }, + + "forwardPorts": [10117, 10157], + + "postCreateCommand": "pond init && pond start && npm i", + "features": { + "ghcr.io/devcontainers/features/docker-in-docker:2": {} + } + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} diff --git a/README.md b/README.md index 7ed5054..5a289b0 100644 --- a/README.md +++ b/README.md @@ -22,3 +22,18 @@ Load the config into your pond-ui app - Wallet connections - Transaction signing & broadcasting + +## Dev Containers + +To open the repository in a VS Code Devcontainer: +- Use VS Code on your local machine +- Install the [Dev Containers VS Code extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) +- Click on the bottom left and choose to Reopen in Container + +[!WARNING] +Do not use it in Github Codespaces as the Kujira apps will not see it at the required IP Addresses + +This will install: +1. Pond +2. Typescript +3. npm \ No newline at end of file From e4d53e34ed6e5ed350f5eeda786bf42d883ee6d4 Mon Sep 17 00:00:00 2001 From: bretheren <31092321+bretheren@users.noreply.github.com> Date: Thu, 30 Nov 2023 14:14:33 +0000 Subject: [PATCH 2/3] Minor update to README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5a289b0..bf28e5c 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ To open the repository in a VS Code Devcontainer: - Use VS Code on your local machine - Install the [Dev Containers VS Code extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) - Click on the bottom left and choose to Reopen in Container +- Execute `npm run dev` and you are ready to build [!WARNING] Do not use it in Github Codespaces as the Kujira apps will not see it at the required IP Addresses From f916a750b098e566d20b4fd753a291ff445e5988 Mon Sep 17 00:00:00 2001 From: bretheren <31092321+bretheren@users.noreply.github.com> Date: Thu, 30 Nov 2023 14:19:40 +0000 Subject: [PATCH 3/3] Added Port 5173 --- .devcontainer/devcontainer.json | 2 +- README.md | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 8169e81..3776e8f 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -5,7 +5,7 @@ "context": ".." }, - "forwardPorts": [10117, 10157], + "forwardPorts": [10117, 10157, 5173], "postCreateCommand": "pond init && pond start && npm i", "features": { diff --git a/README.md b/README.md index bf28e5c..904b295 100644 --- a/README.md +++ b/README.md @@ -31,9 +31,6 @@ To open the repository in a VS Code Devcontainer: - Click on the bottom left and choose to Reopen in Container - Execute `npm run dev` and you are ready to build -[!WARNING] -Do not use it in Github Codespaces as the Kujira apps will not see it at the required IP Addresses - This will install: 1. Pond 2. Typescript