Giter VIP home page Giter VIP logo

cargo-docker's Introduction

cargo-docker

A cargo subcommand to build Rust code inside docker and get the result back.

It's useful to build binary with other environment. As example, you can build binary for CentOS inside Ubuntu.

Usage

To use cargo-docker you should type the following:

$ cargo docker --image=rustup/debian:jessie --output=jessie-target

Important

This command uses docker without sudo and you have to get rights to use docker.

Add docker group:

$ sudo groupadd docker
$ sudo service docker restart

Not necessary if you have installed new version of docker.

Add yourself to docker group:

$ sudo gpasswd -a ${USER} docker

Login again to update user flags.

cargo-docker's People

Contributors

therustmonk avatar

Stargazers

 avatar Austin Schey avatar Christoph Grabo avatar  avatar Eak Netpanya avatar Bob Henkel avatar Hideaki Nishioka avatar Kyle Reczek avatar Ben avatar Phellipe Andrade avatar Garcia Souza avatar Denis Denisov avatar Nikolay Kolev avatar Vlad Frolov avatar Josh Mize avatar Toshiki Teramura avatar Captain Beyond avatar Stanislav Tkach avatar  avatar

Watchers

 avatar James Cloos avatar

Forkers

skone

cargo-docker's Issues

error: Unknown flag: '--all'

Probably something else needs to be used instead of --all on:

│ (g/b:versioned-builds)
╰─>$ cargo docker --image=rustup/debian:jessie --output=jessie-target
error: Unknown flag: '--all'

Usage:
    cargo build [options]

And rustup show:

nightly-x86_64-unknown-linux-gnu (directory override for 'REDACTED')
rustc 1.42.0-nightly (3a3f4a7cb 2019-12-28)

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.