2024-05-03 10:35:19 +00:00
|
|
|
FROM forgejo.maciej.cloud/pkg/mc-fedora-base
|
2024-04-03 17:27:42 +00:00
|
|
|
|
2024-05-05 19:48:28 +00:00
|
|
|
# required by ansible-config
|
|
|
|
ENV LANG="C.UTF-8"
|
2024-05-07 18:54:28 +00:00
|
|
|
ENV LC_ALL="C.UTF-8"
|
2024-05-05 19:48:28 +00:00
|
|
|
|
2024-04-30 08:02:25 +00:00
|
|
|
# libicu - for marksman linter
|
2023-02-27 19:57:20 +00:00
|
|
|
ENV NEOVIM_PKGS="\
|
2023-02-26 17:14:08 +00:00
|
|
|
wget \
|
|
|
|
unzip \
|
2024-12-17 19:37:16 +00:00
|
|
|
git \
|
|
|
|
neovim \
|
2023-02-26 17:14:08 +00:00
|
|
|
ripgrep \
|
|
|
|
fd-find \
|
|
|
|
npm \
|
2023-02-28 20:33:55 +00:00
|
|
|
ShellCheck \
|
2023-02-26 17:14:08 +00:00
|
|
|
tree-sitter-cli \
|
|
|
|
wl-clipboard \
|
2024-04-14 17:47:29 +00:00
|
|
|
python3-neovim \
|
2024-04-30 08:02:25 +00:00
|
|
|
ansible-config \
|
2024-05-02 14:07:21 +00:00
|
|
|
ansible \
|
2024-04-30 08:02:25 +00:00
|
|
|
libicu"
|
2023-02-27 19:57:20 +00:00
|
|
|
|
|
|
|
ENV GENERAL_PKGS="\
|
2024-05-26 19:46:40 +00:00
|
|
|
tar \
|
|
|
|
gcc"
|
2023-02-27 19:57:20 +00:00
|
|
|
|
2024-04-03 19:51:16 +00:00
|
|
|
ENV PYTHON_DEVEL_PKGS="python3"
|
2023-02-27 19:57:20 +00:00
|
|
|
|
|
|
|
ENV MASON_PKGS=" \
|
2023-02-26 17:14:08 +00:00
|
|
|
bash-language-server \
|
|
|
|
css-lsp \
|
|
|
|
cssmodules-language-server \
|
|
|
|
dockerfile-language-server \
|
|
|
|
eslint-lsp \
|
|
|
|
html-lsp \
|
|
|
|
json-lsp \
|
|
|
|
marksman \
|
2024-07-30 08:39:26 +00:00
|
|
|
pyright \
|
2024-07-28 14:30:16 +00:00
|
|
|
jedi-language-server \
|
|
|
|
ruff \
|
2023-02-26 17:14:08 +00:00
|
|
|
sqlls \
|
|
|
|
yaml-language-server \
|
2023-12-28 18:17:49 +00:00
|
|
|
markdownlint \
|
2024-01-17 15:40:05 +00:00
|
|
|
ansible-language-server \
|
2024-12-17 15:10:37 +00:00
|
|
|
ansible-lint \
|
2024-12-17 19:37:16 +00:00
|
|
|
yamlfmt \
|
|
|
|
mdformat \
|
|
|
|
shfmt"
|
2024-04-03 17:48:40 +00:00
|
|
|
|
2024-05-06 07:18:20 +00:00
|
|
|
ENV MASON_PKGS_NO_ARM="lemminx helm-ls lua-language-server"
|
2023-07-16 12:23:44 +00:00
|
|
|
|
2023-02-27 19:57:20 +00:00
|
|
|
|
|
|
|
COPY . /root/.config/nvim
|
|
|
|
# install system dependencies
|
2024-12-17 19:37:16 +00:00
|
|
|
RUN dnf install -y \
|
2023-12-28 18:17:49 +00:00
|
|
|
${GENERAL_PKGS} ${NEOVIM_PKGS} ${PYTHON_DEVEL_PKGS} ${BUILD_ONLY_PKGS} && \
|
2024-12-17 19:37:16 +00:00
|
|
|
dnf -y autoremove && \
|
|
|
|
dnf clean all && \
|
2024-04-03 17:48:40 +00:00
|
|
|
nvim --headless +"MasonInstall ${MASON_PKGS}" +qa || exit 1 ; \
|
2024-05-03 10:59:44 +00:00
|
|
|
nvim --headless +"MasonInstall ${MASON_PKGS_NO_ARM}" +qa || true
|
2023-03-05 19:20:19 +00:00
|
|
|
|
2023-02-26 17:14:08 +00:00
|
|
|
ENTRYPOINT [ "/usr/bin/nvim" ]
|