-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create devcontainer.json * Supported python3.10 Updated PyYAML to 6.0.1 as 5.4.1 do not support py3.10 * Installing medperf via codespaces features * Update devcontainer.json * Custom codespaces image * Update devcontainer.json * Update devcontainer.json * Update devcontainer.json * Update devcontainer.json * Update devcontainer.json * Update devcontainer.json * Update devcontainer.json * Update devcontainer.json * Update devcontainer.json * Update devcontainer.json * Update devcontainer.json * Update devcontainer.json * Update devcontainer.json * Moved all set up to a container post-start script * Update devcontainer.json * update env_start.sh * moved server start to a post-attach step * update devcontainer.json * update devcontainer.json * Moved server running to a separate script * Removed commented code * Used custom codespace image path for future changes * Added codespaces option to tutorials * small fix * add dockerfile placeholder --------- Co-authored-by: hasan7n <[email protected]>
- Loading branch information
Showing
6 changed files
with
40 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FROM mcr.microsoft.com/devcontainers/python:3.10-bookworm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"image": "docker.io/mlcommons/medperf-codespaces:latest", | ||
"features": { | ||
"ghcr.io/devcontainers/features/docker-in-docker:2": { | ||
"moby": false | ||
} | ||
}, | ||
"postStartCommand": "bash /workspaces/medperf/tutorials_scripts/codespaces/env_start.sh", | ||
"postAttachCommand": "bash /workspaces/medperf/tutorials_scripts/codespaces/run_server_detached.sh" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
echo "Preparing local medperf server..." | ||
# we are located at /workspaces/medperf/ where repo is cloned to | ||
pip install -e ./cli | ||
pip install -r server/requirements.txt | ||
pip install -r server/test-requirements.txt | ||
medperf profile activate local | ||
|
||
cd server | ||
cp .env.local.local-auth .env | ||
medperf auth login -e [email protected] | ||
echo "Medperf is ready for local usage" | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
cd /workspaces/medperf/server | ||
bash ./setup-dev-server.sh < /dev/null &>server.log & |