ide/scripts/docker-entrypoint.sh

39 lines
900 B
Bash
Raw Normal View History

#!/bin/bash
set -e
feat: add moar lsp/aliases and upgrade neovim/runtimes (#52) A lot of updates in my personal development environment: ## Additions 1. Command lines and runtimes: 1. [`ctlptl`][2]: `cli` to make local `kubernetes` cluster management easier 1. [`eksctl`][3]: `cli` to make `eks` cluster management easier 1. [`r`][4]: software environment for statistical computing and graphics 1. [`usage`][5]: specification for `cli`s, used by `mise` 1. Aliases: 1. `dc`: for `docker compose` 2. `k`: for `kubectl` 1. Moar `lsp`s: 1. [`cuelsp`][8]: for the [`cue`][9], with [`dagger`][10] support 1. [`jsonls`][11]: for `json` schemas 1. [`r-languageserver`][12]: for the [`r`][4] environment 1. [`yamlls`][13]: for `yaml` schemas 1. Auto-completion for: 1. [`ctlptl`][2] 1. [`eksctl`][3] 1. `helm` 1. `k3d` 1. `k9s` 1. `kubectl` 1. `lefthook` 1. `mise` ## Upgrades 1. Runtimes: 1. [`elixir` from 1.16.2 to 1.17.0][0] 1. [`erlang` from 26.2.5 to 27.0][1] 1. [`kickstart.nvim` to latest commit][6] 1. [Installation of `atuin`][7] Reviewed-on: https://gitea.dubas.dev/joao.dubas/ide/pulls/52 [0]: https://elixir-lang.org/blog/2024/06/12/elixir-v1-17-0-released/ [1]: https://www.erlang.org/news/170 [2]: https://github.com/tilt-dev/ctlptl [3]: https://eksctl.io/ [4]: https://www.r-project.org/ [5]: https://usage.jdx.dev/ [6]: https://github.com/nvim-lua/kickstart.nvim/commit/5aeddfdd5d0308506ec63b0e4f8de33e2a39355f [7]: https://github.com/atuinsh/atuin?tab=readme-ov-file#install [8]: https://github.com/dagger/cuelsp [9]: https://cuelang.org/ [10]: https://dagger.io/ [11]: https://github.com/microsoft/vscode-json-languageservice [12]: https://github.com/REditorSupport/languageserver [13]: https://github.com/redhat-developer/yaml-language-server Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com> Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
2024-06-16 18:25:22 +00:00
# NOTE: (jpd) setup elixir-ls for older versions of elixir
if [ ! -d ${LOCAL_SRC_HOME}/elixir-ls/release ]; then
echo "setup elixir ls version 0.12.0"
/usr/local/bin/elixir-ls-setup v0.12.0
echo "setup elixir ls version 0.14.6"
/usr/local/bin/elixir-ls-setup v0.14.6
fi
feat: add moar lsp/aliases and upgrade neovim/runtimes (#52) A lot of updates in my personal development environment: ## Additions 1. Command lines and runtimes: 1. [`ctlptl`][2]: `cli` to make local `kubernetes` cluster management easier 1. [`eksctl`][3]: `cli` to make `eks` cluster management easier 1. [`r`][4]: software environment for statistical computing and graphics 1. [`usage`][5]: specification for `cli`s, used by `mise` 1. Aliases: 1. `dc`: for `docker compose` 2. `k`: for `kubectl` 1. Moar `lsp`s: 1. [`cuelsp`][8]: for the [`cue`][9], with [`dagger`][10] support 1. [`jsonls`][11]: for `json` schemas 1. [`r-languageserver`][12]: for the [`r`][4] environment 1. [`yamlls`][13]: for `yaml` schemas 1. Auto-completion for: 1. [`ctlptl`][2] 1. [`eksctl`][3] 1. `helm` 1. `k3d` 1. `k9s` 1. `kubectl` 1. `lefthook` 1. `mise` ## Upgrades 1. Runtimes: 1. [`elixir` from 1.16.2 to 1.17.0][0] 1. [`erlang` from 26.2.5 to 27.0][1] 1. [`kickstart.nvim` to latest commit][6] 1. [Installation of `atuin`][7] Reviewed-on: https://gitea.dubas.dev/joao.dubas/ide/pulls/52 [0]: https://elixir-lang.org/blog/2024/06/12/elixir-v1-17-0-released/ [1]: https://www.erlang.org/news/170 [2]: https://github.com/tilt-dev/ctlptl [3]: https://eksctl.io/ [4]: https://www.r-project.org/ [5]: https://usage.jdx.dev/ [6]: https://github.com/nvim-lua/kickstart.nvim/commit/5aeddfdd5d0308506ec63b0e4f8de33e2a39355f [7]: https://github.com/atuinsh/atuin?tab=readme-ov-file#install [8]: https://github.com/dagger/cuelsp [9]: https://cuelang.org/ [10]: https://dagger.io/ [11]: https://github.com/microsoft/vscode-json-languageservice [12]: https://github.com/REditorSupport/languageserver [13]: https://github.com/redhat-developer/yaml-language-server Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com> Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
2024-06-16 18:25:22 +00:00
# NOTE: (jpd) create auto-completion
commands=(
"ctlptl"
"eksctl"
"helm"
"k3d"
"k9s"
"kind"
"kubectl"
"lefthook"
"mise"
)
echo "create completion for ${commands[@]}"
for cmd in ${commands[@]}; do
completion_dir=${XDG_CONFIG_HOME}/fish/completions/${cmd}.fish
if [ ! -f ${completion_dir} ]; then
echo "setup ${cmd} completion"
$(echo ${cmd} completion fish) > ${completion_dir}
fi
done
if [ ! -f ${XDG_CONFIG_HOME}/fish/completions/comtrya.fish ]; then
echo "setup comtrya completion"
$(echo comtrya gen-completions fish) > ${XDG_CONFIG_HOME}/fish/completions/comtrya.fish
fi
exec "$@"