Browse Source

Specify commit/branch to build

master
Luke Childs 7 years ago
parent
commit
edab007fdc
  1. 4
      Dockerfile

4
Dockerfile

@ -1,6 +1,7 @@
FROM ubuntu:16.04 FROM ubuntu:16.04
LABEL maintainer="Luke Childs <lukechilds123@gmail.com>" LABEL maintainer="Luke Childs <lukechilds123@gmail.com>"
ARG CHECKOUT
ENV HOME /root ENV HOME /root
WORKDIR /root WORKDIR /root
@ -20,7 +21,8 @@ RUN git clone https://github.com/nanomsg/nanomsg && \
RUN git clone https://github.com/jl777/SuperNET RUN git clone https://github.com/jl777/SuperNET
RUN cd SuperNET/iguana && \ RUN cd SuperNET/iguana && \
git checkout dev && \ git checkout "${CHECKOUT:-dev}" && \
echo "Building marketmaker on branch $(git rev-parse --abbrev-ref HEAD) at commit $(git rev-parse HEAD)" && \
./m_mm ./m_mm
RUN mv ~/SuperNET/iguana/marketmaker /usr/local/bin && \ RUN mv ~/SuperNET/iguana/marketmaker /usr/local/bin && \

Loading…
Cancel
Save