]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
chore: update devcontainer and Dockerfile for ReforceXY and QuickAdapter
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 23 Nov 2025 17:28:22 +0000 (18:28 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 23 Nov 2025 17:28:22 +0000 (18:28 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
ReforceXY/.devcontainer/devcontainer.json
ReforceXY/.devcontainer/requirements-dev.txt [new file with mode: 0644]
ReforceXY/Dockerfile [moved from ReforceXY/Dockerfile.reforcexy with 100% similarity]
ReforceXY/docker-compose.yml
quickadapter/.devcontainer/devcontainer.json
quickadapter/.devcontainer/requirements-dev.txt [new file with mode: 0644]
quickadapter/Dockerfile [moved from quickadapter/Dockerfile.quickadapter with 100% similarity]
quickadapter/docker-compose.yml

index 41f19a013566f23fd443780e221b1f4492bcece5..51ad7276dad569f55b5bbd6a64aa2031a6de63f4 100644 (file)
@@ -3,14 +3,33 @@
   "dockerComposeFile": ["../docker-compose.yml", "docker-compose.dev.yml"],
   "service": "freqtrade",
   "workspaceFolder": "/workspace/ReforceXY",
-  "mounts": ["source=${localWorkspaceFolder}/..,target=/workspace,type=bind,consistency=cached"],
+  "mounts": [
+    "source=${localWorkspaceFolder}/..,target=/workspace,type=bind,consistency=cached",
+    "source=${localEnv:HOME}/.config/opencode,target=/home/ftuser/.config/opencode,type=bind,consistency=cached",
+    "source=${localEnv:HOME}/.local/share/opencode,target=/home/ftuser/.local/share/opencode,type=bind,consistency=cached",
+    "source=${localEnv:HOME}/.local/state/opencode,target=/home/ftuser/.local/state/opencode,type=bind,consistency=cached"
+  ],
+  "features": {
+    "ghcr.io/devcontainers/features/common-utils:2": {
+      "installZsh": true,
+      "configureZshAsDefaultShell": true,
+      "installOhMyZsh": true,
+      "username": "ftuser",
+      "upgradePackages": false
+    },
+    "ghcr.io/devcontainers/features/node:1": {
+      "version": "lts"
+    }
+  },
+  "postCreateCommand": "npm install -g @fission-ai/openspec@latest opencode-ai@latest && pip install --user -r .devcontainer/requirements-dev.txt",
   "customizations": {
     "vscode": {
       "extensions": [
         "EditorConfig.EditorConfig",
         "streetsidesoftware.code-spell-checker",
         "ms-python.python",
-        "charliermarsh.ruff"
+        "charliermarsh.ruff",
+        "saoudrizwan.claude-dev"
       ],
       "settings": {
         "python.defaultInterpreterPath": "/usr/local/bin/python",
diff --git a/ReforceXY/.devcontainer/requirements-dev.txt b/ReforceXY/.devcontainer/requirements-dev.txt
new file mode 100644 (file)
index 0000000..af3ee57
--- /dev/null
@@ -0,0 +1 @@
+ruff
index 482e88d58715524dfd67ae3dd4b41a8326cf8636..5808c03e50639f97db62bfc16d9c6f0b1d1f6b93 100644 (file)
@@ -15,7 +15,7 @@ services:
     # Build step - only needed when additional dependencies are needed
     build:
       context: .
-      dockerfile: Dockerfile.reforcexy
+      dockerfile: Dockerfile
       args:
         optuna_version: 4.6.0
     restart: unless-stopped
index b52dba9b080411d34aafe11bb6b2fadb65e34431..f46c965a3a0cb7159d4b1bd7cea12bbfbf2614bb 100644 (file)
@@ -3,14 +3,33 @@
   "dockerComposeFile": ["../docker-compose.yml", "docker-compose.dev.yml"],
   "service": "freqtrade",
   "workspaceFolder": "/workspace/quickadapter",
-  "mounts": ["source=${localWorkspaceFolder}/..,target=/workspace,type=bind,consistency=cached"],
+  "mounts": [
+    "source=${localWorkspaceFolder}/..,target=/workspace,type=bind,consistency=cached",
+    "source=${localEnv:HOME}/.config/opencode,target=/home/ftuser/.config/opencode,type=bind,consistency=cached",
+    "source=${localEnv:HOME}/.local/share/opencode,target=/home/ftuser/.local/share/opencode,type=bind,consistency=cached",
+    "source=${localEnv:HOME}/.local/state/opencode,target=/home/ftuser/.local/state/opencode,type=bind,consistency=cached"
+  ],
+  "features": {
+    "ghcr.io/devcontainers/features/common-utils:2": {
+      "installZsh": true,
+      "configureZshAsDefaultShell": true,
+      "installOhMyZsh": true,
+      "username": "ftuser",
+      "upgradePackages": false
+    },
+    "ghcr.io/devcontainers/features/node:1": {
+      "version": "lts"
+    }
+  },
+  "postCreateCommand": "npm install -g @fission-ai/openspec@latest opencode-ai@latest && pip install --user -r .devcontainer/requirements-dev.txt",
   "customizations": {
     "vscode": {
       "extensions": [
         "EditorConfig.EditorConfig",
         "streetsidesoftware.code-spell-checker",
         "ms-python.python",
-        "charliermarsh.ruff"
+        "charliermarsh.ruff",
+        "saoudrizwan.claude-dev"
       ],
       "settings": {
         "python.defaultInterpreterPath": "/usr/local/bin/python",
diff --git a/quickadapter/.devcontainer/requirements-dev.txt b/quickadapter/.devcontainer/requirements-dev.txt
new file mode 100644 (file)
index 0000000..af3ee57
--- /dev/null
@@ -0,0 +1 @@
+ruff
index 22861ecfb13cba5769edacc44ce3cb768cfb9000..2bcb3157037d5953810f622d9a0ab15da6f74a45 100644 (file)
@@ -15,7 +15,7 @@ services:
     # Build step - only needed when additional dependencies are needed
     build:
       context: .
-      dockerfile: Dockerfile.quickadapter
+      dockerfile: Dockerfile
       args:
         optuna_version: 4.6.0
         scikit_learn_extra_version: 0.3.0