-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
33 additions
and
769 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,30 @@ | ||
# Use ubuntu 20.04 as base image | ||
FROM ubuntu:20.04 | ||
|
||
# Set timezone | ||
# Set timezone to fix error, update apt and install what's needed | ||
ENV TZ=Europe/Paris | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
# Update apt | ||
RUN apt-get -y update | ||
# Install what's needed | ||
RUN apt-get -y install build-essential gdb valgrind curl git-all zsh neovim | ||
|
||
##################### | ||
# Install my dotfiles | ||
##################### | ||
|
||
# Install oh-my-zsh and add some plugins | ||
RUN sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" && git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting && git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions | ||
|
||
# Install powerlevel10k and build gitstatus | ||
RUN git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k && $HOME/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/build -w -s | ||
|
||
# Install node.js for coc.nvim | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \ | ||
apt-get -y update && \ | ||
apt-get -y install build-essential gdb valgrind curl git-all zsh neovim | ||
|
||
# Install oh-my-zsh and some plugins + powerlevel10k and build gitstatus | ||
RUN sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" && \ | ||
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting && \ | ||
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions && \ | ||
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k && \ | ||
$HOME/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/build -w -s | ||
|
||
# Install node.js for installing coc.nvim | ||
RUN curl -sL -O install-node.now.sh/lts && bash lts --yes # && rm lts | ||
RUN sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ | ||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'; npm install -g neovim | ||
|
||
|
||
# Move config files | ||
# Move config files and install neovim plugins + workaround to install coc extensions | ||
COPY ./dotfiles dotfiles | ||
RUN cp -r dotfiles/nvim $HOME/.config/nvim && cp dotfiles/zshrc $HOME/.zshrc && cp dotfiles/p10k.zsh $HOME/.p10k.zsh | ||
|
||
# Install Plugins | ||
RUN nvim --headless +PlugInstall +qall | ||
|
||
# Install coc.nvim extensions | ||
# TODO | ||
RUN cp -r dotfiles/nvim $HOME/.config/nvim && \ | ||
cp dotfiles/zshrc $HOME/.zshrc && \ | ||
cp dotfiles/p10k.zsh $HOME/.p10k.zsh && \ | ||
nvim --headless +PlugInstall +qall && \ | ||
timeout 2m nvim --headless +CocUpdate; exit 0 | ||
|
||
WORKDIR /home |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.