Giter VIP home page Giter VIP logo

docker-buildenv's Introduction

Docker Pulls

Docker images for Ubuntu sbuild

Getting started

Build a debian package for x86_64 bionic(Ubuntu 18.04)

The nugulinux/buildenv docker image contains a sbuild.sh script that makes it easier the build. The script is a simple sbuild wrapper that automatically puts --chroot, --host and -j{n} options for the image.

$ git clone {url}/myrepo
$ docker run -t --rm --privileged -v $PWD:$PWD -w $PWD/myrepo \
    -v /var/lib/schroot/chroots nugulinux/buildenv:bionic_x64 sbuild.sh
$ ls
myrepo/
myrepo_amd64.deb

Build with additional parameters

You can use the parameters used in the sbuild command in sbuild.sh as well.

$ git clone {url}/myrepo
$ docker run -t --rm --privileged -v $PWD:$PWD -w $PWD/myrepo \
    -v /var/lib/schroot/chroots nugulinux/buildenv:bionic_x64 \
    sbuild.sh --extra-repository="deb [trusted=yes] http://ppa.launchpad.net/nugulinux/sdk/ubuntu bionic main"

$ ls
myrepo/
myrepo_amd64.deb

Build with cross compile

The nugulinux/buildenv already has preconfigured images for arm64 and armhf. So simply specify the desired target in the tag of the docker image.

$ git clone {url}/myrepo
$ docker run -t --rm --privileged -v $PWD:$PWD -w $PWD/myrepo \
    -v /var/lib/schroot/chroots nugulinux/buildenv:bionic_armhf sbuild.sh
$ ls
myrepo/
myrepo_amd64.deb

Images

Base image

Build Status

You can create your own sbuild image using mk-sbuild tool and base image.

  • Branch: base
  • Docker image: nugulinux/buildenv

Cross-compile images

Build Status

Pre-configured images for sbuild.

  • Branch: rootfs
  • Docker images
    • nugulinux/buildenv:xenial_x64
    • nugulinux/buildenv:xenial_arm64
    • nugulinux/buildenv:xenial_armhf
    • nugulinux/buildenv:bionic_x64
    • nugulinux/buildenv:bionic_arm64
    • nugulinux/buildenv:bionic_armhf
    • nugulinux/buildenv:focal_x64
    • nugulinux/buildenv:focal_arm64
    • nugulinux/buildenv:focal_armhf
    • nugulinux/buildenv:jammy_x64
    • nugulinux/buildenv:jammy_arm64
    • nugulinux/buildenv:jammy_armhf

docker-buildenv's People

Contributors

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