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
7100adbe
Commit
7100adbe
authored
Mar 03, 2016
by
jackgr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Makefiles and Dockerfiles in cmd directory
parent
46a974b6
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
3 additions
and
287 deletions
+3
-287
Dockerfile
cmd/expandybird/Dockerfile
+0
-69
Makefile
cmd/expandybird/Makefile
+0
-40
Dockerfile
cmd/manager/Dockerfile
+0
-42
Makefile
cmd/manager/Makefile
+0
-40
Dockerfile
cmd/resourcifier/Dockerfile
+0
-41
Makefile
cmd/resourcifier/Makefile
+0
-42
include.mk
include.mk
+0
-10
start.sh
scripts/start.sh
+0
-0
stop.sh
scripts/stop.sh
+3
-3
No files found.
cmd/expandybird/Dockerfile
deleted
100644 → 0
View file @
46a974b6
# Copyright 2015 The Kubernetes Authors 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
python:2
MAINTAINER
Jack Greenfield <jackgr@google.com>
RUN
ln
-s
/usr/local/bin/python /usr/bin/python
RUN
apt-get update
\
&&
apt-get autoremove
-y
\
&&
apt-get clean
\
&&
rm
-rf
/var/lib/apt/lists/
*
/tmp/
*
/var/tmp/
*
# following lines copied from golang:1.6
RUN
apt-get update
&&
apt-get
install
-y
--no-install-recommends
\
g++
\
gcc
\
libc6-dev
\
make
\
&&
rm
-rf
/var/lib/apt/lists/
*
ENV
GOLANG_VERSION 1.6
ENV
GOLANG_DOWNLOAD_URL https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz
ENV
GOLANG_DOWNLOAD_SHA256 5470eac05d273c74ff8bac7bef5bad0b5abbd1c4052efbdbc8db45332e836b0b
RUN
curl
-fsSL
"
$GOLANG_DOWNLOAD_URL
"
-o
golang.tar.gz
\
&&
echo
"
$GOLANG_DOWNLOAD_SHA256
golang.tar.gz"
|
sha256sum
-c
-
\
&&
tar
-C
/usr/local
-xzf
golang.tar.gz
\
&&
rm
golang.tar.gz
ENV
GOPATH /go
ENV
PATH $GOPATH/bin:/usr/local/go/bin:$PATH
RUN
mkdir
-p
"
$GOPATH
/src"
"
$GOPATH
/bin"
&&
chmod
-R
777
"
$GOPATH
"
#end copied lines
COPY
. "$GOPATH"/src/github.com/kubernetes/deployment-manager
WORKDIR
"$GOPATH"/src/github.com/kubernetes/deployment-manager/expandybird
RUN
go get
-v
-d
.
RUN
go
install
-v
.
RUN
mkdir
-p
/var/expandybird/expansion
WORKDIR
/var/expandybird
COPY
./expandybird/expansion /var/expandybird/expansion
COPY
./expandybird/requirements.txt /var/expandybird/requirements.txt
RUN
pip
install
--no-cache-dir
-r
/var/expandybird/requirements.txt
RUN
cp
"
$GOPATH
"
/bin/expandybird /var/expandybird/expandybird
RUN
/bin/rm
-rf
"
$GOPATH
"
EXPOSE
8080
ENTRYPOINT
["/var/expandybird/expandybird", "-expansion_binary", "/var/expandybird/expansion/expansion.py"]
cmd/expandybird/Makefile
deleted
100644 → 0
View file @
46a974b6
# Copyright 2015 The Kubernetes Authors 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.
include
../include.mk
.PHONY
:
all build push container clean .project
DOCKER_REGISTRY
:=
gcr.io
PREFIX
:=
$(DOCKER_REGISTRY)
/
$(PROJECT)
IMAGE
:=
expandybird
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)
.PHONY
:
test
test
:
lint vet test-unit
cmd/manager/Dockerfile
deleted
100644 → 0
View file @
46a974b6
# Copyright 2015 The Kubernetes Authors 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.6
MAINTAINER
Jack Greenfield <jackgr@google.com>
RUN
apt-get update
\
&&
apt-get autoremove
-y
\
&&
apt-get clean
\
&&
rm
-rf
/var/lib/apt/lists/
*
/tmp/
*
/var/tmp/
*
WORKDIR
/usr/local/bin
ENV
KUBE_VERSION v1.0.5
RUN
curl
-fsSL
-o
kubectl https://storage.googleapis.com/kubernetes-release/release/
$KUBE_VERSION
/bin/linux/amd64/kubectl
\
&&
chmod
+x kubectl
COPY
. "$GOPATH"/src/github.com/kubernetes/deployment-manager
WORKDIR
"$GOPATH"/src/github.com/kubernetes/deployment-manager/manager
RUN
go-wrapper download
RUN
go-wrapper
install
WORKDIR
/usr/local/bin
RUN
cp
"
$GOPATH
"
/bin/manager /usr/local/bin
RUN
/bin/rm
-rf
"
$GOPATH
"
EXPOSE
8080
ENTRYPOINT
["/usr/local/bin/manager", "--kubectl=/usr/local/bin/kubectl"]
cmd/manager/Makefile
deleted
100644 → 0
View file @
46a974b6
# Copyright 2015 The Kubernetes Authors 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.
include
../include.mk
.PHONY
:
all build push container clean .project
DOCKER_REGISTRY
:=
gcr.io
PREFIX
:=
$(DOCKER_REGISTRY)
/
$(PROJECT)
IMAGE
:=
manager
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)
.PHONY
:
test
test
:
lint vet test-unit
cmd/resourcifier/Dockerfile
deleted
100644 → 0
View file @
46a974b6
# Copyright 2015 The Kubernetes Authors 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.6
RUN
apt-get update
\
&&
apt-get autoremove
-y
\
&&
apt-get clean
\
&&
rm
-rf
/var/lib/apt/lists/
*
/tmp/
*
/var/tmp/
*
WORKDIR
/usr/local/bin
ENV
KUBE_VERSION v1.0.5
RUN
curl
-fsSL
-o
kubectl https://storage.googleapis.com/kubernetes-release/release/
$KUBE_VERSION
/bin/linux/amd64/kubectl
\
&&
chmod
+x kubectl
COPY
. "$GOPATH"/src/github.com/kubernetes/deployment-manager
WORKDIR
"$GOPATH"/src/github.com/kubernetes/deployment-manager/resourcifier
RUN
go-wrapper download
RUN
go-wrapper
install
WORKDIR
/usr/local/bin
RUN
cp
"
$GOPATH
"
/bin/resourcifier /usr/local/bin
RUN
/bin/rm
-rf
"
$GOPATH
"
EXPOSE
8080
ENTRYPOINT
["/usr/local/bin/resourcifier", "--kubectl=/usr/local/bin/kubectl"]
cmd/resourcifier/Makefile
deleted
100644 → 0
View file @
46a974b6
# Copyright 2015 The Kubernetes Authors 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.
# If you update this image please check the tag value before pushing.
include
../include.mk
.PHONY
:
all build push container clean
DOCKER_REGISTRY
:=
gcr.io
PREFIX
:=
$(DOCKER_REGISTRY)
/
$(PROJECT)
IMAGE
:=
resourcifier
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)
.PHONY
:
test
test
:
lint vet test-unit
include.mk
deleted
100644 → 0
View file @
46a974b6
.PHONY: info
info:
@echo "Build tag: ${TAG}"
@echo "Registry: ${DOCKER_REGISTRY}"
@echo "Project: ${PROJECT}"
@echo "Image: ${IMAGE}"
TAG ?= $(shell echo `date +"%s"`_`date +"%N"`)
\ No newline at end of file
start.sh
→
s
cripts/s
tart.sh
View file @
7100adbe
File moved
stop.sh
→
s
cripts/s
top.sh
View file @
7100adbe
#!/bin/bash
echo
"Stopping resourcifier..."
RESOURCIFIER
=
`
which resourcifier
`
RESOURCIFIER
=
bin/resourcifier
if
[[
!
-z
$RESOURCIFIER
]]
;
then
pkill
-f
$RESOURCIFIER
fi
echo
echo
"Stopping expandybird..."
EXPANDYBIRD
=
`
which expandybird
`
EXPANDYBIRD
=
bin/expandybird
if
[[
!
-z
$EXPANDYBIRD
]]
;
then
pkill
-f
$EXPANDYBIRD
fi
echo
echo
"Stopping deployment manager..."
MANAGER
=
`
which manager
`
MANAGER
=
bin/manager
if
[[
!
-z
$MANAGER
]]
;
then
pkill
-f
$MANAGER
fi
...
...
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