Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add devcontainer support for judgels development #542

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rizaon
Copy link
Contributor

@rizaon rizaon commented Oct 21, 2023

This patch add initial configs for devcontainer, development inside container using vscode.
https://code.visualstudio.com/docs/devcontainers/containers

To use it, simply open judgels as follow:

$ git clone https://github.com/ia-toki/judgels.git
$ cd judgels
$ code .

Different container runtimes might need additional step. For example, with colima on macOS, the source code directory need to be mounted on start such as follow:

$ colima start --cpu 6 --memory 16 --mount $JUDGELS_HOME:$JUDGELS_HOME:w

Where $JUDGELS_HOME is an environment variable to judgels source code path in host filesystem.

Testing:

  • Successfully compile the code with devcontainer on macOS

Resolve #541

This patch add initial configs for devcontainer, development inside
container using vscode.
https://code.visualstudio.com/docs/devcontainers/containers

To use it, simply open judgels as follow:

$ git clone https://github.com/ia-toki/judgels.git
$ cd judgels
$ code .

Different container runtimes might need additional step. For example,
with colima on macOS, the source code directory need to be mounted on
start such as follow:

$ colima start --cpu 6 --memory 16 --mount $JUDGELS_HOME:$JUDGELS_HOME:w

Where $JUDGELS_HOME is an environment variable to judgels source code
path in host filesystem.

Testing:
- Successfully compile the code with devcontainer on macOS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add devcontainer support to judgels
1 participant