From 983204361ab76719939ed255e05c40d9bbbb24bb Mon Sep 17 00:00:00 2001 From: Francois Date: Tue, 4 Jun 2024 10:31:08 +0200 Subject: [PATCH] Set the minimum host requirements for Codespaces 4 cores, 16GB RAM and 32GB storage is the minimum requirements for the API to build successfully from source. --- .devcontainer/devcontainer.json | 7 ++++++- .docker/dev-setup.sh | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index a5ededa2..83a48756 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -8,5 +8,10 @@ "--privileged" ], "workspaceMount": "source=${localWorkspaceFolder},target=/home/komodo/workspace,type=bind,consistency=delegated", - "workspaceFolder": "/home/komodo/workspace" + "workspaceFolder": "/home/komodo/workspace", + "hostRequirements": { + "cpus": 4, + "memory": "16gb", + "storage": "32gb" + } } \ No newline at end of file diff --git a/.docker/dev-setup.sh b/.docker/dev-setup.sh index 0e1ce4bf..0b0f225c 100644 --- a/.docker/dev-setup.sh +++ b/.docker/dev-setup.sh @@ -3,8 +3,8 @@ set -e sudo git config core.fileMode false -sudo chmod -R u+rwx /home/komodo -sudo chown -R komodo:komodo /home/komodo +sudo chmod -R u+rwx /home/komodo/workspace +sudo chown -R komodo:komodo /home/komodo/workspace flutter pub get curl -o assets/coins.json https://raw.githubusercontent.com/KomodoPlatform/coins/master/coins