Skip to content

Commit

Permalink
Merge pull request #54 from festim-dev/debug-codespace
Browse files Browse the repository at this point in the history
Debug codespace
  • Loading branch information
RemDelaporteMathurin authored Jul 29, 2024
2 parents 9523b53 + 0e19c73 commit 97d7712
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
11 changes: 8 additions & 3 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
FROM mcr.microsoft.com/vscode/devcontainers/miniconda:0-3

COPY environment.yml* .
# Set the user to vscode
USER vscode

RUN conda env create -f environment.yml
# Copy the environment.yml file into the container
COPY environment.yml* /tmp/

RUN apt-get update && apt-get install -y libgl1
# Create the Conda environment as the vscode user
RUN conda env create -f /tmp/environment.yml

# RUN apt-get update && apt-get install -y libgl1
17 changes: 10 additions & 7 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{
"name": "Python 3",
"name": "festim-workshop",
"build": {
"dockerfile": "Dockerfile",
"context": "..",
"args": {
"VARIANT": "3.10-bullseye"
}
"context": ".."
// "args": {
// "VARIANT": "3.10-bullseye"
// }
},
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "conda init",

// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
Expand Down Expand Up @@ -37,6 +40,6 @@
// Allows port 8888 used for Jupyter Notebook to be available locally.
"forwardPorts": [
8888
],
"remoteUser": "vscode"
]
// "remoteUser": "vscode"
}

0 comments on commit 97d7712

Please sign in to comment.