mirror of https://github.com/helm/helm
Merge 0fd903a5b3
into 9654e63d19
commit
eef02244ca
@ -0,0 +1,25 @@
|
||||
# Copyright 2015 Google, Inc. All Rights Reserved
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
FROM golang:1.4
|
||||
MAINTAINER Jack Greenfield <jackgr@google.com>
|
||||
|
||||
RUN mkdir -p "$GOPATH/src/github.com" && chmod 777 "$GOPATH/src/github.com"
|
||||
|
||||
WORKDIR "$GOPATH"
|
||||
|
||||
RUN go-wrapper download github.com/kubernetes/deployment-manager/dm/...
|
||||
RUN go-wrapper install github.com/kubernetes/deployment-manager/dm/...
|
||||
|
||||
ENTRYPOINT ["bin/dm"]
|
@ -0,0 +1,27 @@
|
||||
# Makefile for the Docker image $(DOCKER_REGISTRY)/$(PROJECT)/dm
|
||||
# MAINTAINER: Jack Greenfield <jackgr@google.com>
|
||||
# If you update this image please check the tag value before pushing.
|
||||
|
||||
.PHONY : all build test push container clean .project
|
||||
|
||||
DOCKER_REGISTRY := gcr.io
|
||||
PREFIX := $(DOCKER_REGISTRY)/$(PROJECT)
|
||||
IMAGE := dm
|
||||
TAG := latest
|
||||
|
||||
ROOT_DIR := $(abspath ./..)
|
||||
DIR = $(ROOT_DIR)
|
||||
|
||||
push: container
|
||||
ifeq ($(DOCKER_REGISTRY),gcr.io)
|
||||
gcloud docker push $(PREFIX)/$(IMAGE):$(TAG)
|
||||
else
|
||||
docker push $(PREFIX)/$(IMAGE):$(TAG)
|
||||
endif
|
||||
|
||||
container:
|
||||
docker build -t $(PREFIX)/$(IMAGE):$(TAG) -f Dockerfile $(DIR)
|
||||
|
||||
clean:
|
||||
-docker rmi $(PREFIX)/$(IMAGE):$(TAG)
|
||||
|
Loading…
Reference in new issue