Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit ffb6fcc

Browse files
committed
Azure ML tweaks and fixes
1 parent da21e01 commit ffb6fcc

File tree

2 files changed

+36
-9
lines changed

2 files changed

+36
-9
lines changed

containers/azure-machine-learning-python-3/.devcontainer/Dockerfile

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,41 @@
33
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
44
#-------------------------------------------------------------------------------------------------------------
55

6-
FROM python:3
6+
# Update this to FROM python:3 if you'd prefer
7+
# to use standard python instead
8+
FROM continuumio/anaconda3
79

8-
# Install git, process tools
9-
RUN apt-get update && apt-get -y install git procps
10+
# Configure apt
11+
ENV DEBIAN_FRONTEND=noninteractive
12+
RUN apt-get update \
13+
&& apt-get -y install --no-install-recommends apt-utils 2>&1
1014

11-
# Install Docker CE - ** COMMENT OUT IF YOU WILL ONLY RUN LOCAL OR IN AZURE **
12-
RUN apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common \
13-
&& curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - 2>/dev/null \
14-
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" \
15+
# Copy default endpoint specific user settings overrides into container to
16+
# to specify Python path and that Docker should run as a workspace extension
17+
COPY settings.vscode.json /root/.vscode-remote/data/Machine/settings.json
18+
19+
# Install git, required tools
20+
RUN apt-get install -y \
21+
git \
22+
curl \
23+
procps \
24+
apt-transport-https \
25+
ca-certificates \
26+
gnupg-agent \
27+
software-properties-common \
28+
lsb-release 2>&1
29+
30+
# Install Docker CLI
31+
RUN curl -fsSL https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/gpg | (OUT=$(apt-key add - 2>&1) || echo $OUT) \
32+
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]') $(lsb_release -cs) stable" \
1533
&& apt-get update \
1634
&& apt-get install -y docker-ce-cli
1735

18-
# Install pylint
19-
RUN pip install pylint
36+
# Install pylint and Azure ML SDK
37+
RUN pip install pylint azureml-sdk 2>&1
2038

2139
# Clean up
2240
RUN apt-get autoremove -y \
2341
&& apt-get clean -y \
2442
&& rm -rf /var/lib/apt/lists/*
43+
ENV DEBIAN_FRONTEND=dialog
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"remote.extensionKind": {
3+
"peterjausovec.vscode-docker": "workspace",
4+
"python.pythonPath": "/opt/conda/bin/python",
5+
"python.linting.pylintEnabled": true,
6+
"python.linting.enabled": true
7+
}
8+
}

0 commit comments

Comments
 (0)