Skip to content

Commit

Permalink
Merge pull request #118 from SadPandaBear/master
Browse files Browse the repository at this point in the history
Make use of Docker to build maya components
  • Loading branch information
SadPandaBear committed Oct 19, 2017
2 parents d87fedd + b18dc9e commit 5e77f8b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Dockerfile
@@ -0,0 +1,27 @@
#
# This Dockerfile builds the maya components using the Makefile
#

FROM golang:latest

ARG BUILD_DATE

LABEL org.label-schema.name="maya"
LABEL org.label-schema.description="OpenEBS Storage Orchestration Engine"
LABEL org.label-schema.url="http://www.openebs.io/"
LABEL org.label-schema.vcs-url="https://github.com/openebs/maya"
LABEL org.label-schema.schema-version="1.0"
LABEL org.label-schema.build-date=$BUILD_DATE

# Setup environment
ENV PWD=/usr/local/go/src/github.com/openebs/maya

RUN apt-get update && \
apt-get install -y zip

WORKDIR /usr/local/go/src/github.com/openebs/maya

# TODO: Add entrypoint to improve building
COPY . .

RUN make bootstrap && make bin && make apiserver && make maya-agent && make install

0 comments on commit 5e77f8b

Please sign in to comment.