Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
pool:
vmImage: 'Ubuntu 16.04'

container: dtzar/conda3mlops:latest
container:
image: mlopscr.azurecr.io/public/mlops/mlopspython:latest
endpoint: acrconnection

variables:
- group: AzureKeyVaultSecrets
Expand Down
14 changes: 10 additions & 4 deletions environment_setup/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
FROM conda/miniconda3

COPY . /setup
LABEL org.label-schema.vendor = "Microsoft" \
org.label-schema.url = "https://hub.docker.com/r/microsoft/mlopspython" \
org.label-schema.vcs-url = "https://github.com/microsoft/MLOpsPython"

RUN ["apt", "update"]
RUN apt install gcc -y && pip install -r /setup/requirements.txt
RUN pip install azure-cli==2.0.65 && pip install --upgrade azureml-sdk[cli]


COPY environment_setup/requirements.txt /setup/

RUN apt-get update && apt-get install gcc -y && pip install --upgrade -r /setup/requirements.txt

CMD ["python"]
29 changes: 13 additions & 16 deletions environment_setup/docker-image-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,17 @@ trigger:
include:
- environment_setup/*

steps:

- task: Docker@2
displayName: Login to Docker Hub
inputs:
command: login
containerRegistry: msftDockerHub
variables:
containerRegistry: $[coalesce(variables['acrServiceConnection'], 'acrconnection')]
imageName: $[coalesce(variables['agentImageName'], 'public/mlops/mlopspython')]

- task: Docker@2
displayName: 'Build and push an image'
inputs:
command: buildAndPush
repository: dtzar/conda3mlops
buildContext: '$(Build.SourcesDirectory)/environment_setup'
tags: |
$(Build.BuildNumber)
latest
steps:
- task: Docker@2
displayName: Build and Push
inputs:
command: buildAndPush
containerRegistry: '$(containerRegistry)'
repository: '$(imageName)'
tags: 'latest'
buildContext: '$(Build.SourcesDirectory)'
dockerFile: '$(Build.SourcesDirectory)/environment_setup/Dockerfile'
12 changes: 7 additions & 5 deletions environment_setup/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
scipy==1.0.0
scikit-learn==0.19.1
numpy==1.14.5
pandas==0.23.1
pytest==4.3.0
pytest==4.3.0
requests>=2.22
azureml>=0.2
azureml-core>=1.0
azureml-pipeline>=1.0
azure-cli==2.0.46
azureml-sdk[cli]