GithubHelp home page GithubHelp logo

andrewsardone / rust-docker-dev-env Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marccarre/rust-docker-dev-env

0.0 2.0 0.0 8 KB

Rust development environment based on Docker.

License: Apache License 2.0

Makefile 72.94% Shell 27.06%

rust-docker-dev-env's Introduction

Build Status Docker Pulls on Quay Docker Pulls on DockerHub

rust-docker-dev-env

Rust development environment based on Docker.

Features

  • Image is based on the latest slim version of Debian Jessie.
  • Image is kept as small as possible.
  • Rust binaries are verified using GPG.
  • Rust binaries are pulled from the official repository, hence are based on glibc, NOT musl: you will therefore NOT be able to compile static Rust binaries.
  • inotify-tools is pre-installed to allow continuous compilation scripts -- see below example.

Usage

$ docker pull marccarre/rust-dev-env

or

$ docker pull quay.io/marccarre/rust-dev-env

and then either re-use in other images or run one of the below commands:

  1. Interactive shell:

     $ docker run -ti marccarre/rust-dev-env /bin/bash
    
  2. Interactive shell with current directory mounted:

     $ docker run -ti -v $(pwd):/home/rust marccarre/rust-dev-env /bin/bash
    
  3. Continuous build with current directory mounted, and assuming directory contains /home/rust/src/main.rs:

     $ docker run -ti -v $(pwd):/home/rust marccarre/rust-dev-env build-continuously.sh
     Setting up watches.  Beware: since -r was given, this may take a while!
     Watches established.
     [2017-03-25 20:55:58] MODIFY on main.rs. Rebuilding now...
     Compiling hello v1.0.0 (file:///home/rust)
     Finished dev [unoptimized + debuginfo] target(s) in 1.59 secs
    
  4. Continuous build with current directory mounted, and assuming /path/to/src/main.rs:

     $ docker run -ti -v $(pwd):/home/rust marccarre/rust-dev-env build-continuously.sh /path/to
     Setting up watches.  Beware: since -r was given, this may take a while!
     Watches established.
     [2017-03-25 20:56:25] MODIFY on main.rs. Rebuilding now...
     Compiling hello v1.0.0 (file:///home/rust)
     Finished dev [unoptimized + debuginfo] target(s) in 1.97 secs
    

Sample project

See: https://github.com/marccarre/rust-sample-project

Build & Release

Pre-requisites

  • Docker
  • make
  • Internet connection

Build

$ make

Release

$ docker login
$ docker login quay.io
$ make release

rust-docker-dev-env's People

Contributors

marccarre avatar

Watchers

Andrew Sardone avatar James Cloos 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.