Code Monkey home page Code Monkey logo

mult-platform-container's Introduction

About

This project was created to test the Docker Mult Platform Build.

The application is very simple, only to run and test if it is working.

Use the docker buildx to build the application with mult-platform way.

Doc

Want to test the application?

Run the application

npm install
npm start

Test the application

curl localhost:3000/

Configure the docker buildx

Configure the buildx builder

docker buildx create --name mybuilder
docker buildx use mybuilder

Verify the builder

docker buildx inspect --bootstrap

Login on the docker registry

Login on your docker registry.

ex for docker hub:

docker login

Build the app

Execute the build with the argument: -t YOURREGISTRY/APPNAME:TAG

ex:

docker buildx build --platform linux/amd64,linux/arm64 -t gustavoapolinario/mult-platform-container:latest --push .

Verify the image builded

The command below will show informations about the image.

docker buildx imagetools inspect gustavoapolinario/mult-platform-container:latest

To be simple, let's get only the Platform from result:

docker buildx imagetools inspect gustavoapolinario/mult-platform-container:latest | grep Platform

The result:

  Platform:    linux/amd64
  Platform:    linux/arm64

You can see in docker hub the OS/ARCH supported by the image.

Go to your docker hub repository, select your app, click on the tag. The link will send you to a page with a combobox showing the image supported OS/ARCH.

mult-platform-container's People

Contributors

gustavoapolinario avatar

Watchers

 avatar

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.