From 69644711efa5a6cf725ee0c555b4d5158568d5df Mon Sep 17 00:00:00 2001 From: Maddox Werts Date: Sun, 19 Jan 2025 10:48:52 -0500 Subject: [PATCH] Updated to account for existing docker images. --- README.md | 5 ++--- scripts/pull.sh | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100755 scripts/pull.sh diff --git a/README.md b/README.md index 731e9ad..e504e5a 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,10 @@ # Install steps ## Setting up Virtual Environments -The first and most important steps are to build the docker images, as they are the boilerplate of this language server. Just run the following commands while in the **Rust-LS** directory. +The first and most important steps are to build the docker images, as they are the boilerplate of this language server. Just run the following commands while in the **Rust-LS** directory to download the pre-existing docker images from **git.objnull.net** ```bash -./scripts/cargo/docker.sh -./scripts/rust-analyzer/docker.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: diff --git a/scripts/pull.sh b/scripts/pull.sh new file mode 100755 index 0000000..a808161 --- /dev/null +++ b/scripts/pull.sh @@ -0,0 +1,14 @@ +# Clear screen +clear + +# Pulling existing images +docker pull git.objnull.net/objnull/rust-ls:cargo +docker pull git.objnull.net/objnull/rust-ls:analyzer + +# Renaming images +docker tag git.objnull.net/objnull/rust-ls:cargo rust-ls:cargo +docker tag git.objnull.net/objnull/rust-ls:analyzer rust-ls:analyzer + +# Clean up +docker image rm git.objnull.net/objnull/rust-ls:cargo +docker image rm git.objnull.net/objnull/rust-ls:analyzer \ No newline at end of file