Azure / DevOps-For-AI-Apps

This repository contains code samples for building a continuous integration pipeline for an AI application using Azure.
MIT License
64 stars 94 forks source link

Building the following dockerfile on Hosted VS2017 gives error #6

Closed jainr closed 7 years ago

jainr commented 7 years ago

FROM ubuntu:latest MAINTAINER Richin Jain <rijaimicrosoft.com> RUN apt-get update -y RUN apt-get install -y python-pip python-dev build-essential COPY . /app WORKDIR /app RUN pip install -r requirements.txt ENTRYPOINT ["python"] CMD ["app.py"]

Error in build task 2017-09-19T19:47:17.1261149Z ##[section]Starting: Build an image 2017-09-19T19:47:17.1261149Z ============================================================================== 2017-09-19T19:47:17.1261149Z Task : Docker 2017-09-19T19:47:17.1261149Z Description : Build, push or run Docker images, or run a Docker command. Task can be used with Docker or Azure Container registry. 2017-09-19T19:47:17.1261149Z Version : 0.2.6 2017-09-19T19:47:17.1261149Z Author : Microsoft Corporation 2017-09-19T19:47:17.1261149Z Help : More Information 2017-09-19T19:47:17.1261149Z ============================================================================== 2017-09-19T19:47:18.7161220Z [command]"C:\Program Files\Docker\docker.exe" build -f d:\a\1\s\web\Dockerfile -t blogacr.azurecr.io/helloworld-api:47 -t blogacr.azurecr.io/helloworld-api d:\a\1\s\web 2017-09-19T19:47:20.0830265Z Sending build context to Docker daemon 4.096 kB 2017-09-19T19:47:20.0830265Z 2017-09-19T19:47:20.0840268Z Step 1/9 : FROM ubuntu:16.04 2017-09-19T19:47:20.9341075Z 16.04: Pulling from library/ubuntu 2017-09-19T19:47:20.9361041Z no supported platform found in manifest list 2017-09-19T19:47:21.0177555Z ##[error]C:\Program Files\Docker\docker.exe failed with return code: 1 2017-09-19T19:47:21.0557087Z ##[section]Finishing: Build an image

jainr commented 7 years ago

Its resolved, we changed the agent to VSTS Linux Preview which comes preinstalled with Docker. We however had to install few other utilities (like Azure CLI) to download a file from blob container.