Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from SadPandaBear/master
Make use of Docker to build maya components
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |