add install script and update to v0.10.0
This commit is contained in:
15
Dockerfile
15
Dockerfile
@ -1,6 +1,6 @@
|
|||||||
FROM rockylinux:9.3
|
FROM rockylinux:9.3
|
||||||
|
|
||||||
ARG VERSION="v0.9.5"
|
ARG VERSION="v0.10.0"
|
||||||
ARG NVIM="/nvim-linux64/bin/nvim"
|
ARG NVIM="/nvim-linux64/bin/nvim"
|
||||||
|
|
||||||
RUN yum install -y wget git npm gcc go unzip
|
RUN yum install -y wget git npm gcc go unzip
|
||||||
@ -30,9 +30,16 @@ RUN $NVIM --headless -c "MasonInstall taplo yamlfmt rustfmt" +q
|
|||||||
|
|
||||||
# archive everything
|
# archive everything
|
||||||
RUN mkdir /archive
|
RUN mkdir /archive
|
||||||
RUN cp -r /nvim-linux64 /archive
|
|
||||||
RUN cp -r ~/.local/share/nvim /archive/localsharenvim
|
RUN mkdir -p /archive/.local/share
|
||||||
RUN cp -r ~/.config/nvim /archive/confignvim
|
RUN cp -r /nvim-linux64 /archive/.local/share
|
||||||
|
RUN cp -r ~/.local/share/nvim /archive/.local/share
|
||||||
|
|
||||||
|
RUN mkdir -p /archive/.config
|
||||||
|
RUN cp -r ~/.config/nvim /archive/.config
|
||||||
|
|
||||||
|
COPY install.sh /archive/install.sh
|
||||||
|
RUN chmod +x /archive/install.sh
|
||||||
|
|
||||||
# export everything
|
# export everything
|
||||||
RUN mkdir /out
|
RUN mkdir /out
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
# Running
|
# Running
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker build . -t offline_nvim:latest
|
docker build . -t offline_nvim:latest --no-cache
|
||||||
docker run -v out:/out offline_nvim:latest
|
docker run -v out:/out offline_nvim:latest
|
||||||
```
|
```
|
||||||
|
|||||||
19
install.sh
Normal file
19
install.sh
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cp -r .config ~/
|
||||||
|
cp -r .local ~/
|
||||||
|
|
||||||
|
# Fix broken mason links
|
||||||
|
for link in $link_dir/*; do
|
||||||
|
if [ -L "$link" ]; then
|
||||||
|
link_name=$(basename "$link")
|
||||||
|
target_path=$(readlink -f "$link")
|
||||||
|
|
||||||
|
new_target_path="$1${target_path#$HOME}"
|
||||||
|
|
||||||
|
ln -sf "$new_target_path" "$link_dir/$link_name"
|
||||||
|
echo "Updated $link_name to point to $new_target_path"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "export \$PATH=\$PATH:~/.local/share/nvim-linux64/bin/nvim"
|
||||||
Reference in New Issue
Block a user