Skip to content

Commit

Permalink
build codespaces using docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarsh2001 committed Aug 9, 2023
1 parent 78def5e commit 1a64cdc
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
47 changes: 47 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.236.0/containers/docker-existing-dockerfile
{
"name": "Demos",

"build": {
"dockerfile": "../docker/dockerfile",
"context": "../.."
},

"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"GitHub.copilot"
]
}
},

"postCreateCommand": {
"post_create": "bash .devcontainer/post_create_commands.sh",
"bashrc": "echo \"alias python=python3\" >> ~/.bashrc"
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Uncomment the next line to run commands after the container is created - for example installing curl.

// Uncomment when using a ptrace-based debugger like C++, Go, and Rust
// "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],

// Uncomment to use the Docker CLI from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker.
// "mounts": [ "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" ],

// Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root.
// "remoteUser": "vscode",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"installZsh": true,
"configureZshAsDefaultShell": true,
"installOhMyZsh": true,
"upgradePackages": false
},
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
}
}
4 changes: 3 additions & 1 deletion docker/dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
FROM unifyai/ivy:latest
FROM unifyai/ivy:latest

RUN pip3 install -r requirements.txt

0 comments on commit 1a64cdc

Please sign in to comment.