-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* tweaks for working with cluster * removing local_dc, no worky * work * updating bower
- Loading branch information
1 parent
da00cf4
commit bd943a5
Showing
9 changed files
with
119 additions
and
12 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,9 @@ | ||
# Setup Process | ||
|
||
## Get K8s 1.3 running locally | ||
You need a beta or 1.3 GA. Use a tool like kube-solo or k8s vagrant from coreos. | ||
|
||
## Local Registry | ||
For development we run most of the dockers out of a local registry on k8s. We currently have issues with docker dependancies and the fact that a of the dockers are currenly in gce. We will correct that eventually. At this point you would need to change the ip addresses in the local build scripts, and the yaml files, which applicable. | ||
|
||
TBD |
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
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
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 @@ | ||
*.war |
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,18 @@ | ||
# Copyright 2016 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 gcr.io/aronchick-apollobit/google-debian-openjdk8:v1.0 | ||
|
||
ADD *.war /app.war | ||
CMD ["/dumb-init", "java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/app.war", "--spring.profiles.active=${SPRING_PROFILE:-prod}"] |
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,62 @@ | ||
#!/bin/bash | ||
VERSION=v1.1 | ||
|
||
usage() { | ||
echo "Usage: $0 [-p]" 1>&2; | ||
echo " -p PROJECT_ID" | ||
echo " -d will deploy to gcr.io" | ||
echo " -r REPO_IP will overide gcr.io and deploy docker to local repo" | ||
exit 1; | ||
} | ||
|
||
if [ $? != 0 ] ; then usage ; fi | ||
|
||
while getopts "p:hdr:" o; do | ||
case "${o}" in | ||
p) | ||
PROJECT_ID=${OPTARG} | ||
;; | ||
r) | ||
REPO_URL=${OPTARG} | ||
;; | ||
d) | ||
DEPLOY=true | ||
;; | ||
h) | ||
usage | ||
;; | ||
*) | ||
usage | ||
;; | ||
esac | ||
done | ||
shift $((OPTIND-1)) | ||
if [ -z "$PROJECT_ID" ]; then | ||
usage | ||
fi | ||
|
||
|
||
REPO=gcr.io/$PROJECT_ID | ||
|
||
if [ $REPO_URL ]; then | ||
REPO=$REPO_URL/$PROJECT_ID | ||
fi | ||
|
||
DOCKER="${REPO}/${PWD##*/}:${VERSION}" | ||
|
||
if [ ! -f app.war ]; then | ||
echo "war not found for build" | ||
exit 0 | ||
fi | ||
|
||
docker build -t ${DOCKER} . | ||
|
||
echo $DEPLOY | ||
if [ "${DEPLOY}" ]; then | ||
|
||
if [ -z $REPO_URL ]; then | ||
gcloud docker push ${DOCKER} | ||
else | ||
docker push ${DOCKER} | ||
fi | ||
fi |
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
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
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