Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add .devcontainer to template to facilitate using the repo in codespaces #15

@cmungall

Description

@cmungall

Something like this:

{
  "name": "odkfull-codespace",
  // consider also: Codespaces Prebuilds
  "image": "obolibrary/odkfull:latest",

  // Mount your repo where ODK expects it
  "workspaceMount": "source=${localWorkspaceFolder},target=/work,type=bind,consistency=cached",
  "workspaceFolder": "/work",

  // Keep VS Code in control of the container command (safer than using image ENTRYPOINT)
  "overrideCommand": true,

  // Be root so you can add small tools if you need them
  "remoteUser": "root",    
  //"features": {
  //  "ghcr.io/devcontainers/features/node:1": { "version": "lts" }
  //},
  "extensions": [
      "anthropic.claude-code",
      "ms-python.python",
      "ms-azuretools.vscode-docker"
  ],
  "remoteEnv": {
    "TEST_ENV": "123"
  },
  "postCreateCommand": "bash .devcontainer/post_create.sh"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions