Skip to content

Instantly share code, notes, and snippets.

@kyp0717
Created December 27, 2019 18:18
Show Gist options
  • Select an option

  • Save kyp0717/c5b29c3c42a1c1773ef804e3ae0c8d3a to your computer and use it in GitHub Desktop.

Select an option

Save kyp0717/c5b29c3c42a1c1773ef804e3ae0c8d3a to your computer and use it in GitHub Desktop.
Base Dockerfile with nvim, ripgrep, tmux, fzf
FROM quay.sys.cigna.com/cigna/rhel:latest
RUN yum install -y zsh git cmake gcc-c++ unzip libtool make curl gettext kernel-devel ncurses-devel xterm python36
WORKDIR /home
RUN curl -LOk https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
RUN tar -xf libevent-2.1.8-stable.tar.gz && \
cd libevent-2.1.8-stable && \
./configure --prefix=/usr/local && \
make && make install
RUN curl -LOk https://github.com/tmux/tmux/releases/download/2.8/tmux-2.8.tar.gz && \
tar -xf tmux-2.8.tar.gz && \
cd tmux-2.8 && \
LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local && \
make && make install
WORKDIR /root
RUN git clone https://github.com/gpakosz/.tmux.git && \
ln -s -f .tmux/.tmux.conf && \
cp .tmux/.tmux.conf.local .
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
RUN git clone https://github.com/neovim/neovim.git /home/neo
WORKDIR /home/neo
RUN make CMAKE_BUILD_TYPE=RelWithDebInfo && make install
# download the plug.vim file and put in the folder ~/.local/share...
RUN curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
RUN git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
RUN ~/.fzf/install
RUN yum install -y yum-utils
RUN yum-config-manager --add-repo=https://copr.fedorainfracloud.org/coprs/carlwgeorge/ripgrep/repo/epel-7/carlwgeorge-ripgrep-epel-7.repo
RUN yum install -y ripgrep
RUN mkdir ~/.config && mkdir ~/.config/nvim
COPY init.vim ~/.config/nvim/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment