Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM mcr.microsoft.com/devcontainers/javascript-node:24

COPY --chmod=0755 entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
11 changes: 11 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "CCXT",
"dockerComposeFile": "./docker-compose.yml",
"service": "ccxt",
"workspaceFolder": "/home/node/ccxt",
"mounts": [
// Mount the SSH key for the local machine to make git fetch/push work in the container
"source=${localEnv:HOME}/.ssh,target=/home/node/.ssh,type=bind,consistency=cached,readonly"
],
"postCreateCommand": "echo \"node: $(node --version)\" && echo \"npm: $(npm --version)\" && echo \"pnpm: $(pnpm --version)\""
}
16 changes: 16 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
services:
ccxt:
build:
context: ./
dockerfile: Dockerfile
container_name: ccxt-dev
volumes:
- ../:/home/node/ccxt:cached
command: sleep infinity
networks:
- fiet-sandbox

networks:
fiet-sandbox:
external: true
name: fiet-sandbox
9 changes: 9 additions & 0 deletions .devcontainer/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env sh
set -eu

INSTALL_URL="http://local-ca/install.sh"

# Run the local CA installer, then exec the provided command.
curl -fsSL --retry 60 --retry-all-errors --retry-delay 1 "$INSTALL_URL" | sh

exec "$@"
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,7 @@ __debug*
.custom_gitignore

# in case we link to parent bun repos.
bun.lock
bun.lock

.pnpm-store/
cli/js/