-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.dev
62 lines (41 loc) · 2.39 KB
/
Dockerfile.dev
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
FROM kerneltime/rust
MAINTAINER Ritesh H Shukla <[email protected]>
USER ritesh
# Setup VIM
RUN git clone https://github.com/phildawes/racer.git /home/ritesh/src/racer
RUN cd /home/ritesh/src/racer; cargo build --release
RUN mkdir -p /home/ritesh/.vim/autoload /home/ritesh/.vim/bundle && \
curl -LSso /home/ritesh/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
RUN git clone --depth=1 https://github.com/rust-lang/rust.vim.git /home/ritesh/.vim/bundle/rust.vim
RUN git clone https://github.com/racer-rust/vim-racer.git /home/ritesh/.vim/bundle/vim-racer && \
mkdir -p /home/ritesh/.vim/plugin && \
cp /home/ritesh/.vim/bundle/vim-racer/plugin/racer.vim /home/ritesh/.vim/plugin
RUN git clone https://github.com/jlanzarotta/bufexplorer.git /home/ritesh/.vim/bundle/bufexplorer
RUN git clone http://github.com/sjl/gundo.vim.git /home/ritesh/.vim/bundle/gundo
RUN sudo DEBIAN_FRONTEND=noninteractive apt-get install -y silversearcher-ag && \
git clone https://github.com/rking/ag.vim.git /home/ritesh/.vim/bundle/ag.vim
RUN git clone https://github.com/bling/vim-airline /home/ritesh/.vim/bundle/vim-airline
RUN cd /home/ritesh/.vim/bundle && git clone git://github.com/altercation/vim-colors-solarized.git
COPY vimrc /home/ritesh/.vimrc
# http://ctrlpvim.github.io/ctrlp.vim
RUN git clone https://github.com/ctrlpvim/ctrlp.vim.git /home/ritesh/.vim/bundle/ctrlp.vim
# ZSH
RUN sudo DEBIAN_FRONTEND=noninteractive apt-get install -y zsh
RUN git clone git://github.com/robbyrussell/oh-my-zsh.git /home/ritesh/.oh-my-zsh && \
cp /home/ritesh/.oh-my-zsh/templates/zshrc.zsh-template /home/ritesh/.zshrc
RUN sudo DEBIAN_FRONTEND=noninteractive apt-get install -y rlwrap apt-transport-https
USER root
#DinD
RUN apt-get install -yqq apt-transport-https ca-certificates && \
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D && \
echo 'deb https://apt.dockerproject.org/repo ubuntu-trusty main' > /etc/apt/sources.list.d/docker.list && \
apt-get update && \
apt-get install -yqq apparmor && \
apt-get install -yqq docker-engine
USER ritesh
# GO
RUN set -ex; cd /home/ritesh/; curl -O https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz
RUN set -ex; cd /home/ritesh/; tar -zxf go1.6.linux-amd64.tar.gz && sudo mv go /usr/local
ENV GOROOT=/usr/local/go
ENV GOPATH=/home/ritesh/go
ENV PATH="/usr/local/go/bin:$PATH"