Giter Club home page Giter Club logo

docker-rust-dev-image's Introduction

Rust development Docker images

This development image contains a Rust compiler toolchain and a C/C++ compiler toolchain. It also includes debugging and analysis tools such as lldb, gdb and valgrind. This image is intended for development only. For production use-cases you should just start with the base debian image and add your compiled binaries to it (and install any optional library dependencies). Currently these versions are supported:

  • Rust stable: stable (ghcr.io/tweedegolf/rust-dev:stable)
  • Rust 1.78: 1.78, latest (ghcr.io/tweedegolf/rust-dev:1.78)
  • Rust 1.77: 1.77 (ghcr.io/tweedegolf/rust-dev:1.77)
  • Rust beta: beta (ghcr.io/tweedegolf/rust-dev:beta)
  • Rust nightly: nightly (ghcr.io/tweedegolf/rust-dev:nightly)

Furthermore, each version also has a -node variant that includes the latest LTS release of node.js and yarn.

Usage in docker compose

services:
    # ...
    app:
        image: ghcr.io/tweedegolf/rust-dev:stable
        # You will have to define the USER_ID and GROUP_ID environment variables
        # as `export USER_ID=$(id -u)` and `export GROUP_ID=$(id -g)` if they
        # have not already been defined previously
        user: "$USER_ID:$GROUP_ID"
        volumes: [.:/app]
        # Change to whatever command you wish to use instead of cargo watch
        command: [cargo, watch, -x, "run"]
        working_dir: /app
        environment:
            # This allows sharing cargo download even across multiple containers
            CARGO_HOME: ".cargo"
            # Create a separate target dir inside the container to prevent
            # waiting for rust-analyzer on your host
            CARGO_TARGET_DIR: "target-docker"
        # Optionally define some ports to use externally
        ports: ["127.0.0.1:8000:8000"]

    # ...

docker-rust-dev-image's People

Contributors

rnijveld avatar dependabot[bot] avatar

Watchers

 avatar abudaan avatar Marlon avatar Erik Jonkers 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.