Skip to content

Instantly share code, notes, and snippets.

@sentientmonkey
Created April 25, 2017 21:59
Show Gist options
  • Save sentientmonkey/65f31a32336724b30f784e11f1e7b37e to your computer and use it in GitHub Desktop.
Save sentientmonkey/65f31a32336724b30f784e11f1e7b37e to your computer and use it in GitHub Desktop.
libgit2 repro
FROM debian
WORKDIR /home
RUN apt-get update && apt-get install -y build-essential git wget cmake python
RUN wget https://github.com/libgit2/libgit2/archive/v0.25.1.tar.gz
RUN tar xfvz v0.25.1.tar.gz
RUN mkdir -p libgit2-0.25.1/build
RUN cd libgit2-0.25.1/build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local && cmake --build . --target install
RUN cd /home
ADD Makefile .
ADD main.c .
RUN make
ENV LD_LIBRARY_PATH /usr/local/lib
RUN mkdir -p /dotfiles
ADD dotfiles/.gitconfig /dotfiles
RUN ln -sf /dotfiles/.gitconfig /root/.gitconfig
RUN git init .
RUN apt-get install -y gdb
CMD ["./main"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment