Skip to content
Snippets Groups Projects
Commit c7f1e249 authored by Luis Pabón's avatar Luis Pabón Committed by GitHub
Browse files

Dockerfile needs branch setting

Future releases need to adjust the branch where the image is built from.
parent 0fae7398
No related branches found
No related merge requests found
...@@ -9,16 +9,16 @@ LABEL description="Development build" ...@@ -9,16 +9,16 @@ LABEL description="Development build"
ENV BUILD_HOME=/build ENV BUILD_HOME=/build
ENV GOPATH=$BUILD_HOME/golang ENV GOPATH=$BUILD_HOME/golang
ENV PATH=$GOPATH/bin:$PATH ENV PATH=$GOPATH/bin:$PATH
ENV HEKETIC_CONF_DIR=/etc/heketi ENV HEKETI_BRANCH="master"
# install dependencies, build and cleanup # install dependencies, build and cleanup
RUN mkdir $BUILD_HOME $GOPATH $HEKETI_CONF_DIR && \ RUN mkdir $BUILD_HOME $GOPATH && \
dnf -q -y install golang git && \ dnf -q -y install golang git && \
dnf -q -y install make && \ dnf -q -y install make && \
dnf -q -y clean all && \ dnf -q -y clean all && \
mkdir -p $GOPATH/src/github.com/heketi && \ mkdir -p $GOPATH/src/github.com/heketi && \
cd $GOPATH/src/github.com/heketi && \ cd $GOPATH/src/github.com/heketi && \
git clone https://github.com/heketi/heketi.git && \ git clone -b $HEKETI_BRANCH https://github.com/heketi/heketi.git && \
go get github.com/tools/godep && \ go get github.com/tools/godep && \
cd $GOPATH/src/github.com/heketi/heketi && make && \ cd $GOPATH/src/github.com/heketi/heketi && make && \
cp heketi /usr/bin/heketi && \ cp heketi /usr/bin/heketi && \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment