GithubHelp home page GithubHelp logo

doodle's Introduction

Building Docker Doodles

Building can be done with the original docker build, or with the new BuildKit application. The new experimental 'buildx' command, which is in nightly builds as well as in the Docker Engine 19.03 release, provides a new, albeit familiar front end to BuildKit similar to the original docker build command. BuildKit has some great new added features such as increased performance, and the ability to easily build cross platform.

To build for your own platform with the original docker build command, use:

cd <doodle> && docker build -t <username>/doodle:<doodle> ./

To build cross platform, use the Dockerfile.cross file, either with BuildKit directly, or with buildx. With buildx, you'll first need to create a cross platform builder instance with:

docker buildx create --use

You only need to create one builder instance, and should not need to create new ones with subsequent builds. To create and push the multi-arch image to Docker Hub, use the command:

cd <doodle> && docker buildx build -f Dockerfile.cross --platform linux/amd64,linux/arm64,linux/arm/v8,linux/s390x,linux/ppc64le,windows/amd64 -t <username>/doodle:<doodle> --push .

This will build the Doodle for these architectures:

  • linux/amd64 (64 bit Linux native)
  • linux/arm64 (suitable for Amazon EC2 A1 instances)
  • linux/arm/v8 (suitable for Raspberry Pi)
  • linux/s390x (for mainframe lovers)
  • linux/ppc64le (for IBM POWER8 Little Endian)
  • windows/amd64 (64 bit Windows native)

doodle's People

Contributors

cornelisdemooij avatar followgithuborg avatar pdevine avatar

Watchers

 avatar

Forkers

codelingobot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.