Skip to content

debuggy/DockerForPAI_init

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages