-
Notifications
You must be signed in to change notification settings - Fork 399
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup Codespaces for use in tutorials
Update the tutorials documentation to suggest the Codespaces approach. Signed-off-by: Jesse Carnaxide <[email protected]>
- Loading branch information
1 parent
a82e412
commit adda8e7
Showing
6 changed files
with
136 additions
and
5 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
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,19 @@ | ||
{ | ||
"name": "Memray tutorials", | ||
"build": { | ||
"context": "../../docs/tutorials", | ||
"dockerfile": "../../docs/tutorials/Dockerfile" | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"python.testing.pytestArgs": ["docs/tutorials/tests"], | ||
"python.testing.unittestEnabled": false, | ||
"python.testing.pytestEnabled": true, | ||
"python.defaultInterpreterPath": "/venv/bin/python" | ||
}, | ||
"extensions": ["ms-python.python"] | ||
} | ||
}, | ||
"runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,28 @@ | ||
FROM debian:bookworm-slim | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y --force-yes --no-install-recommends \ | ||
python3-dev \ | ||
python3-dbg \ | ||
python3-pip \ | ||
python3-venv \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ENV VIRTUAL_ENV=/venv \ | ||
PYTHONDONTWRITEBYTECODE=1 \ | ||
PATH=/bin:$PATH | ||
|
||
RUN python3 -m venv "$VIRTUAL_ENV" | ||
|
||
ENV PATH="${VIRTUAL_ENV}/bin:/usr/lib/ccache:${PATH}" \ | ||
PYTHON="${VIRTUAL_ENV}/bin/python" | ||
|
||
COPY requirements-tutorial.txt /tmp/ | ||
|
||
RUN $PYTHON -m pip install -U \ | ||
-r /tmp/requirements-tutorial.txt | ||
|
||
WORKDIR /src |