Compare commits
4 Commits
jpd-chore-
...
98a83f7375
Author | SHA1 | Date | |
---|---|---|---|
98a83f7375 | |||
1556c55680 | |||
8c7cdd6a58 | |||
|
a0fb571da1 |
43
Dockerfile
43
Dockerfile
@@ -118,7 +118,9 @@ ENV XDG_CONFIG_HOME ${HOME}/.config
|
||||
ENV XDG_DATA_HOME ${HOME}/.local/share
|
||||
ENV XDG_CACHE_HOME ${HOME}/.cache
|
||||
ENV STARSHIP_CONFIG ${XDG_CONFIG_HOME}/starship/config.toml
|
||||
ENV PATH ${LOCAL_BIN_HOME}:$PATH
|
||||
ENV CARGO_HOME ${XDG_DATA_HOME}/cargo
|
||||
ENV RUSTUP_HOME ${XDG_DATA_HOME}/rustup
|
||||
ENV PATH ${LOCAL_BIN_HOME}:${CARGO_HOME}/bin:$PATH
|
||||
|
||||
# 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.
|
||||
@@ -141,17 +143,12 @@ RUN git clone https://github.com/elixir-lsp/elixir-ls.git ${LOCAL_SRC_HOME}/elix
|
||||
# command line utilities
|
||||
RUN curl https://mise.jdx.dev/install.sh | sh \
|
||||
&& curl -sS https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | bash \
|
||||
&& git clone https://github.com/tmux-plugins/tpm.git ${XDG_CONFIG_HOME}/tmux/plugins/tpm
|
||||
|
||||
# git configuration
|
||||
COPY ./patch/kickstart.nvim/updates.patch /tmp
|
||||
COPY ./config/nvim/lua/custom/plugins/init.lua /tmp
|
||||
RUN git clone https://github.com/nvim-lua/kickstart.nvim.git "${XDG_CONFIG_HOME}"/nvim \
|
||||
&& cd ${XDG_CONFIG_HOME}/nvim \
|
||||
&& git reset --hard 2510c29d62d39d63bb75f1a613d2ae628a2af4ee \
|
||||
&& git apply /tmp/updates.patch \
|
||||
&& cp /tmp/init.lua ${XDG_CONFIG_HOME}/nvim/lua/custom/plugins \
|
||||
&& nvim --headless "+Lazy! sync" +qa
|
||||
&& git clone https://github.com/tmux-plugins/tpm.git ${XDG_CONFIG_HOME}/tmux/plugins/tpm \
|
||||
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
|
||||
&& git clone https://git.sr.ht/~mpdehaan/jetporch ${LOCAL_SRC_HOME}/jetporch \
|
||||
&& cd ${LOCAL_SRC_HOME}/jetporch \
|
||||
&& make \
|
||||
&& ln -s ${LOCAL_SRC_HOME}/jetporch/target/release/jetp ${LOCAL_BIN_HOME}/
|
||||
|
||||
# configure fish and bash
|
||||
RUN fish -c true \
|
||||
@@ -163,12 +160,15 @@ RUN fish -c true \
|
||||
&& echo 'alias ll="l -Fahl"' >> ${XDG_CONFIG_HOME}/fish/config.fish \
|
||||
&& echo 'alias la="l -a"' >> ${XDG_CONFIG_HOME}/fish/config.fish
|
||||
|
||||
# configure git
|
||||
ARG GIT_USER_EMAIL
|
||||
ARG GIT_USER_NAME
|
||||
RUN git config --global user.email "${GIT_USER_EMAIL}" \
|
||||
&& git config --global user.name "${GIT_USER_NAME}" \
|
||||
&& git config --global core.editor nvim
|
||||
# git configuration
|
||||
COPY ./patch/kickstart.nvim/updates.patch /tmp
|
||||
COPY ./config/nvim/lua/custom/plugins/init.lua /tmp
|
||||
RUN git clone https://github.com/nvim-lua/kickstart.nvim.git "${XDG_CONFIG_HOME}"/nvim \
|
||||
&& cd ${XDG_CONFIG_HOME}/nvim \
|
||||
&& git reset --hard 2510c29d62d39d63bb75f1a613d2ae628a2af4ee \
|
||||
&& git apply /tmp/updates.patch \
|
||||
&& cp /tmp/init.lua ${XDG_CONFIG_HOME}/nvim/lua/custom/plugins \
|
||||
&& nvim --headless "+Lazy! sync" +qa
|
||||
|
||||
# install rtx plugins
|
||||
RUN ${LOCAL_BIN_HOME}/mise plugins install --force --yes \
|
||||
@@ -194,5 +194,12 @@ RUN ${LOCAL_BIN_HOME}/mise plugins install --force --yes \
|
||||
yarn \
|
||||
zoxide
|
||||
|
||||
# configure git
|
||||
ARG GIT_USER_EMAIL
|
||||
ARG GIT_USER_NAME
|
||||
RUN git config --global user.email "${GIT_USER_EMAIL}" \
|
||||
&& git config --global user.name "${GIT_USER_NAME}" \
|
||||
&& git config --global core.editor nvim
|
||||
|
||||
COPY ./scripts/docker-entrypoint.sh /usr/local/bin/docker-entrypoint
|
||||
COPY ./scripts/elixir-ls-setup.sh /usr/local/bin/elixir-ls-setup
|
||||
|
Reference in New Issue
Block a user