Skip to content

Docker image meant for portable rust dev environment, with rustup , rust language server, neovim

Notifications You must be signed in to change notification settings

allan-simon/docker-dev-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Devbox for rust projects using docker

Docker Automated buil Docker Build Statu

What you will get at the end

  • a docker container exposing a ssh server on port 22
  • (optional) neovim: with deoplete , and rust language server
  • (optional) Zsh: with my zshrc (that you can replace by yours)

Requirements

  • docker

Creation

./create_docker.sh

Usage

docker run -d -e HOST_USER_UID=$(id -u)  --name YOUR_PROJECT -p YOUR_LOCAL_PORT:22 rust_nvim_docker

so then you can ssh in your machine with port YOUR_LOCAL_PORT

or you can use it in a Vagrantfile like this

# -*- mode: ruby -*-
# vi: set ft=ruby ts=2 sw=2 expandtab :

PROJECT = "your_project"

ENV['VAGRANT_NO_PARALLEL'] = 'yes'
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'docker'
Vagrant.configure(2) do |config|

  config.ssh.insert_key = false
  config.vm.define "dev", primary: true do |app|
    app.vm.provider "docker" do |d|
      d.image = "allansimon/docker-dev-rust"
      d.name = "#{PROJECT}_dev"
      d.has_ssh = true
      d.env = {
        "HOST_USER_UID" => Process.euid,
      }
    end
    app.ssh.username = "vagrant"
  end
end

to have a light and isolated dev environment

Extensive list of stuff installed:

  • neovim
  • zsh
  • rust

About

Docker image meant for portable rust dev environment, with rustup , rust language server, neovim

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published