debuggy / DockerForPAI_init

Docker Image for Microsoft OpenPAI

Home Page:https://hub.docker.com/r/debuggy/dockerforpai_init/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker Image for Microsoft OpenPAI

Docker Automated build Docker Build Status

How to maintain docker image by using dockerfile

When submitting jobs to Microsoft OpenPAI, a docker image in dockerhub is required in the job config. This tutorial aims to demonstrate how to maintain a docker image for OpenPAI by using dockerfile.

Prerequisites

  • An account in dockerhub. You can register a free account in dockerhub to push, update and share your own docker image. the account is nessesary if you want to build your own docker image in OpenPAI.

  • An account in github. You will use github account to create a new repo for dockerfile.

Write your own dockerfile

Push dockerfile to a new github repo

  • Create a new github repo to maintain the dockerfile and others files needed during docker image build process.

  • Use this repo to maintain dockerfile as a source control.

Create an autobuild image repo in dockerhub

  • Use your dockerhub account to create an autobuild image repo for your docker image and link the github repo created in the previous step. Here is an official guide for how to create a autobuild image. Below images illustrate an example process. You need to link your github account to this dockerhub account first.

image

image

image

  • In the butobuild settings, you can triger a docker image build process manually, or auto build everytime when the github repo updates.

build settings

  • You can check the build details whether the docker image build process succeeds or fails.

build details

  • After setting the auto build repo, you can focus on the dockerfile in github. And the docker image will built automatically based on the dockerfile.

Use this autobuild image as OpenPAI job docker image

  • Use this autobuild image as OpenPAI job docker image. And this docker image will updated whenever the dockerfile changed.

About

Docker Image for Microsoft OpenPAI

https://hub.docker.com/r/debuggy/dockerforpai_init/


Languages

Language:Python 100.0%