Merge pull request #92 from michalmar/fb-devcontainer-michal

GitHub Codespaces support - added Devcontainer
This commit is contained in:
Setu Chokshi 2022-12-23 17:32:34 +08:00 коммит произвёл GitHub
Родитель 751c9cf9ab 80dd635cc5
Коммит 15d5a58521
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 50 добавлений и 0 удалений

6
.devcontainer/Dockerfile Normal file
Просмотреть файл

@ -0,0 +1,6 @@
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.209.6/containers/python-3-miniconda/.devcontainer/base.Dockerfile
FROM mcr.microsoft.com/vscode/devcontainers/miniconda:0.202.1-3
# Update the conda environment according to the environment.yml file in the project.
COPY environment.yml /tmp/conda-tmp/
RUN /opt/conda/bin/conda env update -n base -f /tmp/conda-tmp/environment.yml && rm -rf /tmp/conda-tmp

Просмотреть файл

@ -0,0 +1,25 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.222.0/containers/python-3-miniconda
{
"name": "Miniconda (Python 3)",
"build": {
"context": "..",
"dockerfile": "Dockerfile",
},
// Set *default* container specific settings.json values on container create.
"settings": {
"python.defaultInterpreterPath": "/opt/conda/bin/python",
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"ms-toolsai.vscode-ai",
],
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode",
"features": {
"azure-cli": "latest"
},
"onCreateCommand": "az extension add -n ml -y"
}

19
environment.yml Normal file
Просмотреть файл

@ -0,0 +1,19 @@
name: azureml-cli-v2
channels:
- conda-forge
- defaults
dependencies:
- python==3.8
- yapf
- pylint
- pip
- pip:
- mlflow
- cloudpickle==1.6.0
- scikit-learn==0.24.2
- flask==1.1.2
- applicationinsights
- pandas
- azureml-core
- azureml-dataset-runtime[fuse]
- opencensus-ext-azure