-
Notifications
You must be signed in to change notification settings - Fork 39k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make web ui robust and reproducible.
- Loading branch information
jackgr
committed
May 27, 2015
1 parent
ee82d46
commit f259f76
Showing
43 changed files
with
805 additions
and
113 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
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
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,38 @@ | ||
# Copyright 2014 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. | ||
|
||
# This file creates a standard build environment for building the Kubernetes WebUI | ||
|
||
FROM node:0.12.3 | ||
MAINTAINER Jack Greenfield <jackgr@google.com> | ||
|
||
# work around 64MB tmpfs size in Docker 1.6 | ||
ENV TMPDIR /tmp.k8s-ui | ||
RUN mkdir $TMPDIR | ||
|
||
# Mark this as a kube-build-ui container | ||
RUN touch /kube-build-ui-image | ||
|
||
WORKDIR /go/src/github.com/GoogleCloudPlatform/kubernetes | ||
|
||
# Propagate the git tree version into the build image | ||
ADD kube-version-defs /kube-version-defs | ||
ENV KUBE_GIT_VERSION_FILE /kube-version-defs | ||
|
||
# Make output from the dockerized build go someplace else | ||
ENV KUBE_OUTPUT_SUBPATH _output/dockerized | ||
|
||
# Upload Kubernetes WebUI source | ||
ADD kube-ui-source.tar.gz /go/src/github.com/GoogleCloudPlatform/kubernetes | ||
|
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,30 @@ | ||
#!/bin/bash | ||
|
||
# Copyright 2014 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. | ||
|
||
# Run a command in the Docker ui build container. Typically this will be one of | ||
# the commands in `hack/ui`. When running in the ui build container the user is sure | ||
# to have a consistent reproducible build environment. | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../.. | ||
source "$KUBE_ROOT/build/common.sh" | ||
|
||
kube::build::verify_prereqs | ||
kube::build::build_ui_image | ||
kube::build::run_build_ui_command "$@" |
Oops, something went wrong.