https://github.com/allan-simon/docker-dev-rust
Docker image meant for portable rust dev environment, with rustup , rust language server, neovim
https://github.com/allan-simon/docker-dev-rust
docker neovim rust rust-language-server zsh
Last synced: about 2 months ago
JSON representation
Docker image meant for portable rust dev environment, with rustup , rust language server, neovim
- Host: GitHub
- URL: https://github.com/allan-simon/docker-dev-rust
- Owner: allan-simon
- Created: 2016-08-11T20:28:13.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-08-28T21:28:40.000Z (almost 6 years ago)
- Last Synced: 2025-03-28T09:21:25.943Z (about 1 year ago)
- Topics: docker, neovim, rust, rust-language-server, zsh
- Language: Shell
- Homepage:
- Size: 40 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: change_user_uid.sh
Awesome Lists containing this project
README
## Devbox for rust projects using docker
[]()
[]()
### 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
```bash
./create_docker.sh
```
### Usage
```bash
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
```ruby
# -*- 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