Browse Source

加入Dockerfile测试环境

master
Alvis Zhao 6 years ago
parent
commit
72a5ac8745
  1. 14
      Dockerfile
  2. 2
      setup.sh
  3. 6
      vim/install_basic_vimrc.sh
  4. 6
      vim/install_vimrc.sh

14
Dockerfile

@ -1,4 +1,14 @@ @@ -1,4 +1,14 @@
FROM ubuntu:16.04
FROM alvisisme/docker-ubuntu-1604-163
LABEL maintainer="Alvis Zhao <alvisisme@163.com>"
RUN apt-get update && \
apt-get install -y git vim zsh tmux
apt-get install -y git vim zsh tmux && \
chsh -s $(which zsh)
COPY zsh /root/.oh-my-zsh
COPY zsh/templates/zshrc.zsh-template /root/.zshrc
COPY tmux/.tmux.conf /root/.tmux.conf
COPY tmux/.tmux.conf.local /root/.tmux.conf.local
COPY vim /root/.vim_runtime
RUN sh /root/.vim_runtime/install_basic_vimrc.sh
ENTRYPOINT [ "/bin/zsh" ]

2
setup.sh

@ -10,7 +10,7 @@ ln -s -f ~/.oh-my-terminal/tmux/.tmux.conf.local ~/.tmux.conf.local @@ -10,7 +10,7 @@ ln -s -f ~/.oh-my-terminal/tmux/.tmux.conf.local ~/.tmux.conf.local
# vim
cp -r ~/.oh-my-terminal/vim ~/.vim_runtime
sh ~/.vim_runtime/install_vimrc.sh
sh ~/.vim_runtime/install_basic_vimrc.sh
# 切换当前用户默认shell,重新进入终端后生效
chsh -s $(which zsh)

6
vim/install_basic_vimrc.sh

@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
#!/bin/bash
set -e
cd ~/.vim_runtime
cat ~/.vim_runtime/vimrcs/basic.vim > ~/.vimrc
echo "Installed the Basic Vim configuration successfully! Enjoy :-)"

6
vim/install_vimrc.sh

@ -1,15 +1,15 @@ @@ -1,15 +1,15 @@
#!/bin/sh
#!/bin/bash
set -e
cd ~/.vim_runtime
echo 'set runtimepath+=~/.vim_runtime
source ~/.vim_runtime/vimrcs/basic.vim
source ~/.vim_runtime/vimrcs/plugins_config.vim
#source ~/.vim_runtime/vimrcs/plugins_config.vim
try
source ~/.vim_runtime/my_configs.vim
catch
endtry' > ~/.vimrc
echo "Installed the Vim configuration successfully! Enjoy :-)"
echo "Installed the Super Vim configuration successfully! Enjoy :-)"

Loading…
Cancel
Save