forked from darrellberry/docker-vim-eclim
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
76 lines (58 loc) · 3.01 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
FROM phusion/baseimage:0.9.17
MAINTAINER Darrell Berry
ENV HOME /root
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y language-pack-en
ENV LANG en_US.UTF-8
RUN update-locale LANG=en_US.UTF-8
RUN (mv /etc/localtime /etc/localtime.org && \
ln -s /usr/share/zoneinfo/Europe/London /etc/localtime)
RUN (apt-get update && \
DEBIAN_FRONTEND=noninteractive \
apt-get install -y ant maven xvfb build-essential software-properties-common \
zlib1g-dev libssl-dev libreadline-dev libyaml-dev \
libxml2-dev libxslt-dev sqlite3 libsqlite3-dev \
vim git byobu wget curl unzip tree exuberant-ctags \
build-essential cmake python python-dev gdb libswt-gtk-3-jni libswt-gtk-3-java)
# Add a non-root user
RUN (useradd -m -d /home/docker -s /bin/bash docker && \
echo "docker ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers)
# Install eclim requirements
# oracle-java8
RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections \
&& add-apt-repository -y ppa:webupd8team/java \
&& apt-get update \
&& apt-get install -y oracle-java8-installer oracle-java8-set-default
USER docker
ENV HOME /home/docker
WORKDIR /home/docker
RUN curl -fsSL https://test.docker.com/ | sh
RUN sudo usermod -aG docker docker
# Checkout my vimrc
RUN (git clone git://github.com/darrellberry/vimrc.git ~/.vim && \
mkdir ~/.vim/plugin && \
ln -s ~/.vim/.vimrc ~/.vimrc && \
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim && \
mkdir ~/.vim/colors && \
curl -s https://raw.githubusercontent.com/endel/vim-github-colorscheme/master/colors/github.vim > ~/.vim/colors/github.vim && \
curl -s https://raw.githubusercontent.com/morhetz/gruvbox/master/colors/gruvbox.vim > ~/.vim/colors/gruvbox.vim && \
curl -s http://www.vim.org/scripts/download_script.php?src_id=20938 > ~/.vim/plugin/colorsupport.vim && \
ln -s ~/.vim/.tmux.conf ~/.tmux.conf)
# Force tmux to use 256 colors to play nicely with vim
RUN echo 'alias tmux="tmux -2"' >> ~/.profile
RUN vim -N +PluginInstall +qall
RUN vim -N +BundleInstall +qall
RUN (cd ~/.vim/bundle/YouCompleteMe && \
./install.py)
#RUN cd ~/.vim/bundle/YouCompleteMe; ./install.py --clang-completer
# Install Eclipse and eclim
RUN (wget -O /home/docker/eclipse-jee-neon-R-linux-gtk-x86_64.tar.gz \
"http://www.mirrorservice.org/sites/download.eclipse.org/eclipseMirror/technology/epp/downloads/release/neon/R/eclipse-jee-neon-R-linux-gtk-x86_64.tar.gz" && \
tar xzvf /home/docker/eclipse-jee-neon-R-linux-gtk-x86_64.tar.gz -C /home/docker && \
rm /home/docker/eclipse-jee-neon-R-linux-gtk-x86_64.tar.gz && \
mkdir /home/docker/workspace && \
cd /home/docker && git clone git://github.com/ervandew/eclim.git && \
cd eclim && ant -Declipse.home=/home/docker/eclipse)
USER root
ADD service /etc/service
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN ln -s /home/docker/.m2 /root/.m2