docker: Accept TASK_VERSION argument

This commit is contained in:
Tomas Babej 2018-07-31 02:39:53 -04:00
parent d7fd4177a6
commit a331fd0f3b
No known key found for this signature in database
GPG key ID: B0747C6578F7D2F5

View file

@ -1,4 +1,5 @@
FROM fedora:27 FROM fedora:27
ARG TASK_VERSION
RUN dnf update -y RUN dnf update -y
RUN dnf install procps-ng psmisc which vim curl git gvim gcc gcc-c++ cmake make gnutls-devel libuuid-devel mnemosyne -y RUN dnf install procps-ng psmisc which vim curl git gvim gcc gcc-c++ cmake make gnutls-devel libuuid-devel mnemosyne -y
@ -11,7 +12,7 @@ ENV LANGUAGE en_US.UTF-8
# Setup taskwarrior # Setup taskwarrior
RUN git clone --recursive https://github.com/GothenburgBitFactory/taskwarrior.git task RUN git clone --recursive https://github.com/GothenburgBitFactory/taskwarrior.git task
WORKDIR task WORKDIR task
RUN echo $TASK_VERSION; git checkout $TASK_VERSION RUN echo ${TASK_VERSION}; git checkout ${TASK_VERSION}
RUN git clean -dfx RUN git clean -dfx
RUN git submodule init RUN git submodule init
RUN git submodule update RUN git submodule update