allan-simon / docker-dev-rust

Docker image meant for portable rust dev environment, with rustup , rust language server, neovim
2 stars 1 forks source link

manifest for phusion/baseimage:latest not found: manifest unknown: manifest unknown #8

Open mabushey opened 4 years ago

mabushey commented 4 years ago

You have the right idea, I hate how rust wants to just run amok and install crap everywhere. I have Ubuntu and rust is installed correctly via apt.

I don't think phusion exists anymore. :(

$ ./create_docker.sh                                                                                                                                                                                                              master 
Sending build context to Docker daemon  135.7kB
Step 1/10 : FROM phusion/baseimage
manifest for phusion/baseimage:latest not found: manifest unknown: manifest unknown

container rust_nvim_docker created, you can do :
 * docker run -d -e HOST_USER_UID=$(id -u)  --name YOUR_PROJECT -p YOUR_LOCAL_PORT:22 rust_nvim_docker => if you need one env by project
allan-simon commented 4 years ago

can you tell me if putting :latest-amd64 in the docker file works ?

allan-simon commented 4 years ago

their image still exits but indeed the tag "latest" seems to have disappear :/ https://registry.hub.docker.com/r/phusion/baseimage/tags

mabushey commented 4 years ago

Hi @allan-simon, Thanks for your help. :) You are correct, this fixed that problem:

-FROM phusion/baseimage
+FROM phusion/baseimage:master-amd64

Now I'm running into python 2 -> 3 issues, but that should be simple enough. pip3 is installing Ansible 2.9. I believe 2.5 and above supports python3 so I should be able to get it to work. If I get it going I'll send you a PR with the fixes.

Have a great day!

allan-simon commented 4 years ago

cool, can't wait to review it :)

mabushey commented 4 years ago

I resolved the python issues, cleaned up some deprecated Ansible stuff, and built the container. I can ssh in as vagrant or exec in. cargo new works.

RLS is installed:

vagrant[16:01]  >> rls -V
rls 1.41.0 (48ef96d 2020-08-18)

ls -l ~/.local/share/nvim/plugged

drwxrwxr-x  9 vagrant vagrant 4096 Aug 28 15:44 deoplete.nvim
drwxrwxr-x  7 vagrant vagrant 4096 Aug 28 15:44 echodoc.vim
drwxrwxr-x  9 vagrant vagrant 4096 Aug 28 15:44 LanguageClient-neovim
drwxrwxr-x 11 vagrant vagrant 4096 Aug 28 15:44 neomake
drwxrwxr-x 15 vagrant vagrant 4096 Aug 28 15:44 rust.vim
drwxrwxr-x  5 vagrant vagrant 4096 Aug 28 15:44 vim-better-whitespace

but deoplete does not seem to "running". vim:

:help deoplete-options
E149: Sorry, no help for deoplete-options

Is there some additional init/enable process to get autocomplete working?

allan-simon commented 4 years ago

I think I will re-check the state of the art for "rust autocompletion in vim in 2020" , I think we can first merge your changes and from there I can try to make the autocompletion works again

mabushey commented 4 years ago

I submitted a PR. Here's one issue:

vagrant[18:27]  >> racer complete "std::env::args()"                                                                                                                                                                                                                  Err 130 {/}
racer can't find the directory pointed to by the RUST_SRC_PATH variable ""/home/vagrant/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src"". Try using an absolute fully qualified path and make sure it points to the src directory of a rust checkout - e.g. "/home/foouser/src/rust/src".
allan-simon commented 4 years ago

ok I've first merged it, we can figure from there how to fix the other issue :)

mabushey commented 4 years ago

Any updates?

allan-simon commented 4 years ago

sorry got busy if i've not answered back can you ping me again on tuesday (I should have freetime by then)

mabushey commented 4 years ago

It's Wednesday: ping

Hope all is going good.

mabushey commented 4 years ago

Any updates?