mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
cmake: Add a custom target for reproducing issue reports
Use by issuing command "make RELEASE=v2.5.2 reproduce" where v2.5.2 can be substituted by other (tagged) release.
This commit is contained in:
parent
35cab8845a
commit
94a06ed38a
2 changed files with 37 additions and 0 deletions
31
scripts/reproduce-dockerfile
Normal file
31
scripts/reproduce-dockerfile
Normal file
|
@ -0,0 +1,31 @@
|
|||
# Dockerfile for containers to perform PR review in
|
||||
# Use with make as follows: make RELEASE=v2.5.1 reproduce
|
||||
|
||||
FROM centos:8
|
||||
|
||||
RUN dnf update -y
|
||||
RUN yum install epel-release -y
|
||||
RUN dnf install python38 git gcc gcc-c++ cmake make gnutls-devel libuuid-devel libfaketime sudo man -y
|
||||
|
||||
RUN useradd warrior
|
||||
RUN echo warrior ALL=NOPASSWD:ALL > /etc/sudoers.d/warrior
|
||||
|
||||
USER warrior
|
||||
WORKDIR /home/warrior/
|
||||
|
||||
# Setup taskwarrior
|
||||
# The purpose is to speed up subsequent re-installs due to Docker layer caching
|
||||
RUN git clone https://github.com/GothenburgBitFactory/taskwarrior.git
|
||||
WORKDIR /home/warrior/taskwarrior/
|
||||
RUN git submodule init
|
||||
|
||||
# Install the given release
|
||||
ARG RELEASE
|
||||
RUN git checkout $RELEASE
|
||||
RUN git submodule update --init
|
||||
RUN cmake -DCMAKE_BUILD_TYPE=debug .
|
||||
RUN make -j8
|
||||
RUN sudo make install
|
||||
|
||||
WORKDIR /home/warrior
|
||||
RUN task rc.confirmation=0 _ids || : # Generate default taskrc
|
Loading…
Add table
Add a link
Reference in a new issue