Skip to content

Commit

Permalink
add docker build
Browse files Browse the repository at this point in the history
Signed-off-by: Harsh Desai <harsh@portworx.com>
  • Loading branch information
Harsh Desai committed Apr 30, 2019
1 parent f5f6e8e commit 94ae9e7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Dockerfile.osd-dev
@@ -0,0 +1,5 @@
FROM quay.io/openstorage/osd-dev-base
MAINTAINER support@portworx.com

ADD . /go/src/github.com/libopenstorage/cloudops/
WORKDIR /go/src/github.com/libopenstorage/cloudops
17 changes: 16 additions & 1 deletion Makefile
Expand Up @@ -60,7 +60,7 @@ pretest: lint vet errcheck staticcheck
build:
go build -tags "$(TAGS)" $(BUILDFLAGS) $(PKGS)

install:
install:
go install -tags "$(TAGS)" $(BUILDFLAGS) $(PKGS)

cloudops:
Expand All @@ -74,6 +74,21 @@ container:
deploy: container
sudo docker push $(CLOUDOPS_IMG)

docker-build-osd-dev:
# This image is local only and will not be pushed
docker build -t openstorage/osd-dev -f Dockerfile.osd-dev .

docker-build: docker-build-osd-dev
docker run \
--privileged \
-e AWS_ACCESS_KEY_ID \
-e AWS_SECRET_ACCESS_KEY \
-e "TAGS=$(TAGS)" \
-e "PKGS=$(PKGS)" \
-e "BUILDFLAGS=$(BUILDFLAGS)" \
openstorage/osd-dev \
make

clean:
go clean -i $(PKGS)

0 comments on commit 94ae9e7

Please sign in to comment.