-
Notifications
You must be signed in to change notification settings - Fork 98
/
Copy pathDockerfile
37 lines (31 loc) · 1.12 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
FROM fedora:27
ARG TASK_VERSION
RUN dnf update -y
RUN dnf install procps-ng psmisc which vim curl git gvim gcc gcc-c++ cmake make gnutls-devel libuuid-devel xorg-x11-server-Xvfb -y
# Setup language environment
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
# Setup taskwarrior
RUN git clone --recursive https://github.com/GothenburgBitFactory/taskwarrior.git task
WORKDIR task
RUN echo ${TASK_VERSION}; git checkout ${TASK_VERSION}
RUN git clean -dfx
RUN git submodule init
RUN git submodule update
RUN cmake -DCMAKE_BUILD_TYPE=release .
RUN make -j2
RUN make install
RUN task --version
# Setup vimwiki
RUN mkdir -p /root/.vim/bundle /root/.vim/autoload
RUN curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
RUN cd /root/.vim/bundle; git clone https://github.com/vimwiki/vimwiki.git
RUN cd /root/.vim/bundle/vimwiki/; git checkout dev
# Setup taskwiki
RUN pip3 install nose pytest coveralls coverage vimrunner
ADD requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
RUN mkdir /root/.vim/bundle/taskwiki
WORKDIR /root/.vim/bundle/taskwiki
CMD xvfb-run python3 -m pytest -vv tests/