2025-02-08 Sat
- #Work
- I was excited to try out CursorAI/Agent on c74/M4L/Idea/Alits, but I got a bit distracted with trying to configure the DevContainer for it
- #Filed Person/codekiln/GitHub/alits; work log there
- I was excited to try out CursorAI/Agent on c74/M4L/Idea/Alits, but I got a bit distracted with trying to configure the DevContainer for it
- #Filed
- #Learned
- CursorAI/Settings/Models
- #Discovered
- DevContainer/CLIs have a CLI
- containers.dev/templates - https://containers.dev/templates - a list of DevContainer templates, which are not repo templates for github, but their own thing - https://containers.dev/implementors/templates/
- GitHub/gitgitWi/nodejs-monorepo-devcontainer-template
- fairly personal template for DevContainer
- PNPM devcontainer multiple project setup : r/node
- https://consoledonottrack.com/
- DevContainer/CLIs have a CLI
- #Learned
- NodeJS/Docker/node:20
- here's how to list the commands in the image. node, it contains
yarn,npxdocker run --rm node:22 ls -l /usr/local/bin total 94264 lrwxrwxrwx 1 root root 45 Jan 21 05:32 corepack -> ../lib/node_modules/corepack/dist/corepack.js -rwxr-xr-x 1 root root 388 Jan 22 19:53 docker-entrypoint.sh -rwxr-xr-x 1 root root 96522032 Jan 21 05:30 node lrwxrwxrwx 1 root root 19 Jan 22 19:53 nodejs -> /usr/local/bin/node lrwxrwxrwx 1 root root 38 Jan 21 05:32 npm -> ../lib/node_modules/npm/bin/npm-cli.js lrwxrwxrwx 1 root root 38 Jan 21 05:32 npx -> ../lib/node_modules/npm/bin/npx-cli.js lrwxrwxrwx 1 root root 27 Jan 22 19:53 yarn -> /opt/yarn-v1.22.22/bin/yarn lrwxrwxrwx 1 root root 30 Jan 22 19:53 yarnpkg -> /opt/yarn-v1.22.22/bin/yarnpkg
- here's how to list the commands in the image. node, it contains
- How to work with Monorepos in a dev container - YouTube #YouTube #Monorepo DevContainer
- this is based on the assumption that you want to open up each repo individually
- some comments say that git can't be used in this case
- This is a part of YouTube/@code/Playlist/Getting Started with Dev Containers
notes
Monorepos in a Dev Container
- The configuration sets up a Dev Container for working with a monorepo in VSCode.
- Key settings:
"remoteUser": "node"→ Runs the container as thenodeuser instead ofroot."workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind"→ Binds the local workspace folder to/workspaceinside the container."workspaceFolder": "/workspace"→ Sets the workspace folder inside the container.
- This setup ensures that:
- 📌 Docs Reference
- NodeJS/Docker/node:20