GithubHelp home page GithubHelp logo

lonewolf-information-systems / dxbuild Goto Github PK

View Code? Open in Web Editor NEW

This project forked from balena-io-library/armv7hf-debian-qemu

0.0 2.0 0.0 7.35 MB

Build cross platform docker images

License: Apache License 2.0

Makefile 16.82% Go 83.18%

dxbuild's Introduction

dxbuild

dxbuild allows you to build non-amd64 containers on amd64. It currently uses small Debian images.

Working Golang compile chain is expected.

This is not my idea

See this blog post, I used the code here and forked it to this and cleaned it up a bit and made it possible support all k8s architectures.

This has been tested on Debian. You'll also need qemu installed, but this boils down on apt-get installing some things.

Each new image will be tagged with builder in it, except for amd64:

  • amd64 -> debian:stable-slim
  • arm -> arm32v7/debian-builder:stable-slim
  • arm64 -> arm64v8/debian-builder:stable-slim
  • ppc64le -> ppc64le/debian-builder:stable-slim
  • s390x -> s390x/debian-builder:stable-slim

Usage

% make        # build go binaries
% make docker # build all builder docker containers

We don't upload anything to the docker hub as we want to keep these local and just inherit from.

I.e. this is how you can use them:

FROM arm32v7/debian-builder:stable-slim

RUN [ "cross-build-start" ]

RUN apt-get update && apt-get install -y stunnel

RUN [ "cross-build-end" ]
RUN [ "cross-build-clean" ]

dxbuild's People

Contributors

miekg avatar nghiant2710 avatar petrosagg avatar

Watchers

 avatar  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.