diff options
| author | Polesznyák Márk <contact@pml68.dev> | 2026-04-04 03:18:03 +0200 |
|---|---|---|
| committer | Polesznyák Márk <contact@pml68.dev> | 2026-04-04 10:12:20 +0200 |
| commit | 99cfafdd442dc56b8b40803035cfcfa768554be7 (patch) | |
| tree | e55a255af8e82ebc381b22a9edc50bfa6b281119 | |
| parent | feat!: migrate to vim.pack (diff) | |
| download | nvim-99cfafdd442dc56b8b40803035cfcfa768554be7.tar.gz | |
feat!: remove Docker image
| -rw-r--r-- | .bashrc | 74 | ||||
| -rw-r--r-- | .dockerignore | 3 | ||||
| -rw-r--r-- | Dockerfile | 81 | ||||
| -rw-r--r-- | README.md | 19 |
4 files changed, 0 insertions, 177 deletions
diff --git a/.bashrc b/.bashrc deleted file mode 100644 index 3f6cfb5..0000000 --- a/.bashrc +++ /dev/null @@ -1,74 +0,0 @@ -# -# ~/.bashrc -# - -# If not running interactively, don't do anything -[[ $- != *i* ]] && return - -export PATH=$PATH:/root/.cargo/bin:/root/go/bin -export EDITOR=nvim -export HISTSIZE=1000 -export HISTFILESIZE=2000 - -YELLOW="\[$(tput setaf 3)\]" -GREEN="\[$(tput setaf 2)\]" -RED="\[$(tput setaf 1)\]" -BLUE="\[$(tput setaf 4)\]" -RESET="\[$(tput sgr0)\]" - -avg_time() { - # - # usage: avg_time n command ... - # - n=$1; shift - (($# > 0)) || return # bail if no command given - for ((i = 0; i < n; i++)); do - { time -p "$@" &>/dev/null; } 2>&1 # ignore the output of the command - # but collect time's output in stdout - done | awk ' - /real/ { real = real + $2; nr++ } - /user/ { user = user + $2; nu++ } - /sys/ { sys = sys + $2; ns++} - END { - if (nr>0) printf("real %f\n", real/nr); - if (nu>0) printf("user %f\n", user/nu); - if (ns>0) printf("sys %f\n", sys/ns) - }' -} - -alias grep='grep --color=auto' -alias eza='eza --icons' -alias tree='eza --tree' -alias fvim='nvim $(fzf)' -alias c='clear' -alias diff='diff --color -up' -alias oil='~/.oil-ssh.sh' - -parse_git_bg() { - if [[ $(git status -s 2> /dev/null) ]]; then - tput setaf 160 - else - tput setaf 34 - fi -} - -PS1="╭─${YELLOW}" -PS1+="\u${GREEN}" -PS1+="@${RED}" -PS1+="\h${BLUE} " -PS1+="\W${RESET}" -PS1+="\$(git branch 2> /dev/null | grep '^*' | colrm 1 2 | xargs -I BRANCH echo -n \"" -PS1+="\$(parse_git_bg) " -PS1+=" (BRANCH) " -PS1+="${RESET}\")\n" -PS1+="╰─" -PS1+="\\$ " -PS1+="${RESET}" -export PS1 - -export FZF_DEFAULT_OPTS=" - --color=fg:#908caa,bg:#191724,hl:#ebbcba - --color=fg+:#e0def4,bg+:#26233a,hl+:#ebbcba - --color=border:#403d52,header:#31748f,gutter:#191724 - --color=spinner:#f6c177,info:#9ccfd8,separator:#403d52 - --color=pointer:#c4a7e7,marker:#eb6f92,prompt:#908caa" diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 93afbe0..0000000 --- a/.dockerignore +++ /dev/null @@ -1,3 +0,0 @@ -.git -.github -lazy-lock.json diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 6d97823..0000000 --- a/Dockerfile +++ /dev/null @@ -1,81 +0,0 @@ -FROM alpine:edge AS base -WORKDIR /root -SHELL ["/bin/sh", "-c"] - -RUN apk add --no-cache git \ - lazygit \ - neovim \ - man-pages \ - alpine-sdk \ - bash \ - eza \ - ncurses \ - util-linux-misc \ - curl \ - --update - -# install deps needed by neovim -RUN apk add --no-cache wget \ - gzip \ - neovim-doc \ - ripgrep \ - rustup \ - python3 \ - openjdk21 \ - openjdk17 \ - gradle \ - go \ - dotnet10-sdk \ - clang22-extra-tools \ - nodejs \ - npm \ - tree-sitter-cli \ - scdoc - -RUN mkdir source - -# install qbe -RUN git clone git://c9x.me/qbe.git source/qbe && \ - cd source/qbe && \ - make PREFIX=/usr && \ - make PREFIX=/usr install clean && \ - cd - -# install harec -RUN git clone https://git.sr.ht/~sircmpwn/harec source/harec && \ - cd source/harec && \ - cp configs/linux.mk config.mk && \ - make PREFIX=/usr && \ - make PREFIX=/usr install clean && \ - cd - -# install hare -RUN git clone https://git.sr.ht/~sircmpwn/hare source/hare && \ - cd source/hare && \ - cp configs/linux.mk config.mk && \ - make PREFIX=/usr && \ - make PREFIX=/usr install clean && \ - cd - -# pre-download lazy.nvim -RUN git clone --filter=blob:none https://github.com/folke/lazy.nvim.git --branch=stable /root/.local/share/nvim/lazy/lazy.nvim - -# set up Rust -RUN rustup-init -y --default-toolchain none && \ - /root/.cargo/bin/rustup toolchain install nightly --allow-downgrade --profile minimal --component rustfmt,rust-src,clippy,rust-analyzer && \ - echo -e "[unstable]\ngc = true" > /root/.cargo/config.toml - -# copy config files -COPY .bashrc .bashrc -COPY --parents after ftplugin lsp lua spell init.lua .config/nvim/ - -FROM base -SHELL ["/bin/bash", "-c"] -WORKDIR /root -RUN nvim --headless +"Lazy! sync" +qa; rm -rf /root/.cache - -# symlink the clangd executable, since it can't be installed with mason -# also symlink rust-analyzer -RUN ln -sf /usr/bin/clangd /root/.local/share/nvim/mason/bin/clangd - -ENTRYPOINT ["/bin/bash"] @@ -11,22 +11,3 @@ Download into your config directory ```sh git clone --depth=1 git://git.pml68.dev/nvim ~/.config/nvim ``` - -## Usage with Docker - -Pull the image -```sh -docker pull ghcr.io/pml68/neovim:latest -``` - -Or build it -```sh -docker build -t neovim . -``` - -And then run it -```sh -docker run -it neovim:latest -``` - -> **Caution:** This image is *heavy* - `docker image ls` reports 8GB (as of 2026/03/30). |
