Fixed addr & added install script
This commit is contained in:
parent
34251e5fbb
commit
d8d070a87d
3 changed files with 11 additions and 10 deletions
|
@ -9,11 +9,10 @@ The first and most important steps are to build the docker images, as they are t
|
||||||
./scripts/pull.sh
|
./scripts/pull.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
After that, you'll want to trick your system into thinking you already have both installed on your actual machine. To do that, just run the following commands:
|
After that, you'll want to trick your system into thinking you already have both installed on your actual machine. To do that, just run the following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo ln -s /path/to/scripts/cargo/cargo /bin/cargo
|
./scripts/install.sh
|
||||||
sudo ln -s /path/to/scripts/rust-analyzer/rust-ls /bin/rust-anaylzer
|
|
||||||
```
|
```
|
||||||
|
|
||||||
To test if your setup works as intended, just run `rust-analyzer --version` and `cargo --version` and they should both spit back their respective versions.
|
To test if your setup works as intended, just run `rust-analyzer --version` and `cargo --version` and they should both spit back their respective versions.
|
||||||
|
|
2
scripts/install.sh
Executable file
2
scripts/install.sh
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
sudo ln -s $PWD/scripts/cargo/cargo /bin/cargo
|
||||||
|
sudo ln -s $PWD/scripts/rust-analyzer/rust-ls /bin/rust-analyzer
|
|
@ -2,13 +2,13 @@
|
||||||
clear
|
clear
|
||||||
|
|
||||||
# Pulling existing images
|
# Pulling existing images
|
||||||
docker pull git.lan/objnull/rust-ls:cargo
|
docker pull server.lan:3003/objnull/rust-ls:cargo
|
||||||
docker pull git.lan/objnull/rust-ls:analyzer
|
docker pull server.lan:3003/objnull/rust-ls:analyzer
|
||||||
|
|
||||||
# Renaming images
|
# Renaming images
|
||||||
docker tag git.lan/objnull/rust-ls:cargo rust-ls:cargo
|
docker tag server.lan:3003/objnull/rust-ls:cargo rust-ls:cargo
|
||||||
docker tag git.lan/objnull/rust-ls:analyzer rust-ls:analyzer
|
docker tag server.lan:3003/objnull/rust-ls:analyzer rust-ls:analyzer
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
docker image rm git.lan/objnull/rust-ls:cargo
|
docker image rm server.lan:3003/objnull/rust-ls:cargo
|
||||||
docker image rm git.lan/objnull/rust-ls:analyzer
|
docker image rm server.lan:3003/objnull/rust-ls:analyzer
|
||||||
|
|
Loading…
Reference in a new issue