chore: install missing plugins for rtx

Eventhough starship and zoxide are available in rtx, I'm still
installing them locally so they are available at startup.
This commit is contained in:
Joao P Dubas 2024-01-14 18:45:11 +00:00
parent 7d6725e19a
commit 1afba6dbb8

View File

@ -18,7 +18,6 @@ RUN apt-get update \
ca-certificates \
curl \
doas \
exa \
fish \
g++ \
gcc \
@ -91,23 +90,11 @@ RUN apt-get update \
&& echo 'permit persist :wheel as root' > /etc/doas.conf
# command line utilities
ENV BAT_VERSION 0.24.0
ENV BAT_FILE bat_${BAT_VERSION}_amd64.deb
ENV BAT_URL https://github.com/sharkdp/bat/releases/download/v${BAT_VERSION}/${BAT_FILE}
ENV RG_VERSION 14.0.3
ENV RG_FILE ripgrep_${RG_VERSION}-1_amd64.deb
ENV RG_URL https://github.com/BurntSushi/ripgrep/releases/download/${RG_VERSION}/${RG_FILE}
ENV DO_VERSION 24.0.7
ENV DO_URL https://download.docker.com/linux/static/stable/x86_64/docker-${DO_VERSION}.tgz
ENV DC_VERSION v2.23.3
ENV DC_URL https://github.com/docker/compose/releases/download/${DC_VERSION}/docker-compose-linux-x86_64
RUN curl -sS https://starship.rs/install.sh | sh -s -- --yes \
&& curl -LO ${BAT_URL} \
&& dpkg -i ${BAT_FILE} \
&& rm ${BAT_FILE} \
&& curl -LO ${RG_URL} \
&& dpkg -i ${RG_FILE} \
&& rm ${RG_FILE} \
&& mkdir /tmp/download \
&& curl -L ${DO_URL} | tar -zx -C /tmp/download \
&& chgrp --recursive docker /tmp/download \
@ -154,7 +141,7 @@ RUN fish -c true \
&& echo '{$XDG_DATA_HOME}/rtx/bin/rtx activate fish | source' >> ${XDG_CONFIG_HOME}/fish/config.fish \
&& echo 'zoxide init fish | source' >> ${XDG_CONFIG_HOME}/fish/config.fish \
&& echo 'alias cat="bat"' >> ${XDG_CONFIG_HOME}/fish/config.fish \
&& echo 'alias l="exa --time-style long-iso --color=auto -F"' >> ${XDG_CONFIG_HOME}/fish/config.fish \
&& echo 'alias l="eza --time-style long-iso --color=auto -F"' >> ${XDG_CONFIG_HOME}/fish/config.fish \
&& echo 'alias ll="l -Fahl"' >> ${XDG_CONFIG_HOME}/fish/config.fish \
&& echo 'alias la="l -a"' >> ${XDG_CONFIG_HOME}/fish/config.fish
@ -168,16 +155,26 @@ RUN git config --global user.email "${GIT_USER_EMAIL}" \
# install rtx plugins
RUN ${XDG_DATA_HOME}/rtx/bin/rtx plugins install --force --yes \
awscli \
bat \
dagger \
elixir \
erlang \
eza \
fzf \
helm \
k3d \
kubectl \
kubie \
lefthook \
poetry \
ripgrep \
starship \
terraform \
tilt \
tmux \
usql \
yarn
yarn \
zoxide
# NOTE (jpd): the section below exists mainly to handle a project running elixir 1.11.
# It allows the usage of openssl 1.1 and a compatible elixir-ls.