From d8d070a87d121bfb9d0b9a102f220fbb47deaa17 Mon Sep 17 00:00:00 2001 From: Maddox Werts Date: Sun, 20 Jul 2025 16:25:55 -0400 Subject: [PATCH] Fixed addr & added install script --- README.md | 7 +++---- scripts/install.sh | 2 ++ scripts/pull.sh | 12 ++++++------ 3 files changed, 11 insertions(+), 10 deletions(-) create mode 100755 scripts/install.sh diff --git a/README.md b/README.md index e504e5a..76610a0 100644 --- a/README.md +++ b/README.md @@ -9,11 +9,10 @@ The first and most important steps are to build the docker images, as they are t ./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 -sudo ln -s /path/to/scripts/cargo/cargo /bin/cargo -sudo ln -s /path/to/scripts/rust-analyzer/rust-ls /bin/rust-anaylzer +./scripts/install.sh ``` 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. @@ -26,4 +25,4 @@ Field|Path Cargo|/bin/cargo Server|/bin/rust-analyzer -After that, it *should* work as intended! \ No newline at end of file +After that, it *should* work as intended! diff --git a/scripts/install.sh b/scripts/install.sh new file mode 100755 index 0000000..031829b --- /dev/null +++ b/scripts/install.sh @@ -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 diff --git a/scripts/pull.sh b/scripts/pull.sh index 7daf4ba..515266c 100755 --- a/scripts/pull.sh +++ b/scripts/pull.sh @@ -2,13 +2,13 @@ clear # Pulling existing images -docker pull git.lan/objnull/rust-ls:cargo -docker pull git.lan/objnull/rust-ls:analyzer +docker pull server.lan:3003/objnull/rust-ls:cargo +docker pull server.lan:3003/objnull/rust-ls:analyzer # Renaming images -docker tag git.lan/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:cargo rust-ls:cargo +docker tag server.lan:3003/objnull/rust-ls:analyzer rust-ls:analyzer # Clean up -docker image rm git.lan/objnull/rust-ls:cargo -docker image rm git.lan/objnull/rust-ls:analyzer +docker image rm server.lan:3003/objnull/rust-ls:cargo +docker image rm server.lan:3003/objnull/rust-ls:analyzer