Skip to content

Commit

Permalink
Add devcontainer configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
iansan5653 committed Nov 9, 2023
1 parent 38e5bde commit 2187c80
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "Python 3",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:1-3.10",
"features": {
"ghcr.io/devcontainers/features/desktop-lite:1": {
"version": "latest",
"noVncVersion": "1.2.0",
"password": "vscode",
"webPort": "6080",
"vncPort": "5901"
}
},
"forwardPorts": [6080],
"postCreateCommand": "pip3 install -r requirements.txt && sudo apt-get update && sudo apt-get -y install python3-opencv python3-tk"
}
11 changes: 11 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,17 @@ requires Python and Pip to be installed on your machine.
> **Note**: On Linux machines, you may see an error message that `opencv` or `tkinter` are not found.
> If you see this, install those dependencies by running `sudo apt-get install python3-opencv python3-tk` and then try again.
### Codespaces

For development, a pre-made environment is available in [Codespaces](https://github.com/features/codespaces):

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/iansan5653/open-mcr?quickstart=1)

> [!NOTE]
> The configuration auomatically installs the [`desktop-lite`](https://github.com/devcontainers/features/tree/main/src/desktop-lite)
> feature for running the GUI. This environment can be accessed in your browser through the forwarded `6080` port. The
> desktop password is `vscode`.
## Printable Multiple Choice Sheet

The multiple choice sheet that must be used with this software is available
Expand Down

0 comments on commit 2187c80

Please sign in to comment.