Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
e664836b
Commit
e664836b
authored
Mar 05, 2016
by
Jack Greenfield
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #339 from technosophos/fix/makefile-local-registry
fix(*): allow local docker registry
parents
995de78b
7c82304b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
13 deletions
+26
-13
.gitignore
.gitignore
+2
-0
include.mk
rootfs/include.mk
+24
-3
Makefile
rootfs/manager/Makefile
+0
-5
Makefile
rootfs/resourcifier/Makefile
+0
-5
No files found.
.gitignore
View file @
e664836b
...
...
@@ -4,7 +4,9 @@
/vendor/*
/rootfs/manager/bin/manager
/rootfs/manager/bin/kubectl
/rootfs/manager/bin/v1.*
/rootfs/resourcifier/bin/resourcifier
/rootfs/resourcifier/bin/kubectl
/rootfs/resourcifier/bin/v1.*
/rootfs/expandybird/bin/expandybird
/rootfs/expandybird/opt/expansion
rootfs/include.mk
View file @
e664836b
...
...
@@ -15,7 +15,17 @@
# If you update this image please check the tag value before pushing.
DOCKER_REGISTRY ?= gcr.io
PREFIX := $(DOCKER_REGISTRY)/$(PROJECT)
# Legacy support for $PROJECT
DOCKER_PROJECT ?= $(PROJECT)
# Support both local and remote repos, and support no project.
ifdef $(DOCKER_PROJECT)
PREFIX := $(DOCKER_REGISTRY)/$(DOCKER_PROJECT)
else
PREFIX := $(DOCKER_REGISTRY)
endif
FULL_IMAGE := $(PREFIX)/$(IMAGE)
TAG ?= git-$(shell git rev-parse --short HEAD)
...
...
@@ -26,6 +36,7 @@ PLATFORM ?= $(DEFAULT_PLATFORM)
DEFAULT_ARCH := $(shell uname -m)
ARCH ?= $(DEFAULT_ARCH)
.PHONY: info
info:
@echo "Build tag: ${TAG}"
...
...
@@ -51,10 +62,12 @@ container: .project .docker binary extras
docker tag -f $(FULL_IMAGE):latest $(FULL_IMAGE):$(TAG)
.project:
@if [[ -z "${PROJECT}" ]]; then echo "PROJECT variable must be set"; exit 1; fi
ifeq ($(DOCKER_REGISTRY), gcr.io)
$(error "One or both of DOCKER_REGISTRY and DOCKER_PROJECT must be set.")
endif
.docker:
@if [[ -z `which docker` ]] || ! docker version &> /dev/null; then echo "docker is not installed correctly"; exit 1; fi
@if [[ -z `which docker` ]] || ! docker
--
version &> /dev/null; then echo "docker is not installed correctly"; exit 1; fi
CROSS_IMAGE := $(PLATFORM)-$(ARCH)/$(IMAGE)/$(IMAGE)
...
...
@@ -67,3 +80,11 @@ binary:
echo cp ../../bin/$(IMAGE) ./bin ; \
cp ../../bin/$(IMAGE) ./bin ; \
fi
.PHONY: kubectl
kubectl:
ifeq ("$(wildcard bin/$(KUBE_VERSION))", "")
touch bin/$(KUBE_VERSION)
curl -fsSL -o bin/kubectl https://storage.googleapis.com/kubernetes-release/release/${KUBE_VERSION}/bin/linux/amd64/kubectl
chmod +x bin/kubectl
endif
rootfs/manager/Makefile
View file @
e664836b
...
...
@@ -19,8 +19,3 @@ include ../include.mk
.PHONY
:
extras
extras
:
kubectl
.PHONY
:
kubectl
kubectl
:
curl
-fsSL
-o
bin/kubectl https://storage.googleapis.com/kubernetes-release/release/
${
KUBE_VERSION
}
/bin/linux/amd64/kubectl
chmod
+x bin/kubectl
rootfs/resourcifier/Makefile
View file @
e664836b
...
...
@@ -19,8 +19,3 @@ include ../include.mk
.PHONY
:
extras
extras
:
kubectl
.PHONY
:
kubectl
kubectl
:
curl
-fsSL
-o
bin/kubectl https://storage.googleapis.com/kubernetes-release/release/
${
KUBE_VERSION
}
/bin/linux/amd64/kubectl
chmod
+x bin/kubectl
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment