-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (43 loc) · 1.15 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
from chrisdonlan/ops:debian-conda
ENV USEREMAIL="[email protected]"
ENV USERNAME="chrisdonlan"
SHELL [ "/bin/bash","-c"]
RUN apt-get update
RUN apt-get install -y git
RUN apt-get install -y vim-nox
RUN apt-get install -y tmux
RUN apt-get install -y ctags
RUN apt-get install -y build-essential
ADD .bashrc /root/.
ADD .bashrc_appx /root/.
ADD .vimrc /root/.
ADD .tmux.conf /root/.
# TODO: do git with makes
USER root
WORKDIR /root
RUN git init
RUN git add .bashrc .vimrc .tmux.conf .bashrc_appx .bashrc_conda
RUN git config --global user.email "$USEREMAIL"
RUN git config --global user.name "$USERNAME"
RUN git commit -m "(dev env) baseline config"
# TODO: do vundle with makes
# add vundle
RUN mkdir -p /root/.vim/bundle
WORKDIR /root/.vim/bundle
RUN git submodule add https://github.com/vundlevim/Vundle.vim
RUN git submodule init
RUN git submodule update
RUN vim +PluginInstall +qall
# add makes
WORKDIR root
ADD mk /root/.
ADD makefile /root/
RUN make install
# TODO: do git with makes
# finalize with git
WORKDIR /root
RUN git add mk/*
RUN git add makefile
RUN git commit -m "(dev env) builders"
WORKDIR /root
ENTRYPOINT /bin/bash && source .bashrc