... | ... |
@@ -8,7 +8,8 @@ |
8 | 8 |
# run: Run All-in-one server |
9 | 9 |
# clean: Clean up. |
10 | 10 |
|
11 |
-OUT_DIR = output |
|
11 |
+OUT_DIR = _output |
|
12 |
+OUT_PKG_DIR = Godeps/_workspace/pkg |
|
12 | 13 |
|
13 | 14 |
export GOFLAGS |
14 | 15 |
|
... | ... |
@@ -57,6 +58,6 @@ run: build |
57 | 57 |
# Example: |
58 | 58 |
# make clean |
59 | 59 |
clean: |
60 |
- rm -rf $(OUT_DIR) |
|
60 |
+ rm -rf $(OUT_DIR) $(OUT_PKG_DIR) |
|
61 | 61 |
.PHONY: clean |
62 | 62 |
|
... | ... |
@@ -22,12 +22,12 @@ From there, you can: |
22 | 22 |
|
23 | 23 |
2. Start an OpenShift all-in-one server (includes everything you need to try OpenShift) |
24 | 24 |
|
25 |
- $ output/go/bin/openshift start |
|
25 |
+ $ _output/go/bin/openshift start |
|
26 | 26 |
|
27 | 27 |
3. In another terminal window, switch to the directory and start an app: |
28 | 28 |
|
29 | 29 |
$ cd $GOPATH/src/github.com/openshift/origin |
30 |
- $ output/go/bin/openshift kube create pods -c examples/hello-openshift/hello-pod.json |
|
30 |
+ $ _output/go/bin/openshift kube create pods -c examples/hello-openshift/hello-pod.json |
|
31 | 31 |
|
32 | 32 |
Once that's done, open a browser on your machine and open [http://localhost:6061](http://localhost:6061); you should see a 'Welcome to OpenShift' message. |
33 | 33 |
|
... | ... |
@@ -39,7 +39,8 @@ This example is simply running the ['openshift/hello-openshift' Docker image](ht |
39 | 39 |
* At the Kubernetes level, we [map that bound port in the container](https://github.com/openshift/origin/blob/master/examples/hello-openshift/hello-pod.json#L13) [to port 6061 on the host](https://github.com/openshift/origin/blob/master/examples/hello-openshift/hello-pod.json#L14) so that we can access it via the host browser. |
40 | 40 |
|
41 | 41 |
### Other Examples |
42 |
-For an example app that includes a databse and an admin front-end, try the [multiple container pod](https://github.com/openshift/origin/blob/master/examples/test-pod-multi.json). Also, coming soon: [Vagrant](http://www.vagrantup.com) environments supporting OpenShift - see [Kubernetes README.md](https://github.com/GoogleCloudPlatform/kubernetes/blob/master/README.md) for now. |
|
42 |
+For an example app that includes a databse and an admin front-end, try the [multiple container pod](https://github.com/openshift/origin/blob/master/examples/test-pod-multi.json). |
|
43 |
+ |
|
43 | 44 |
|
44 | 45 |
Getting Started With Vagrant |
45 | 46 |
---------------------------- |
... | ... |
@@ -54,7 +54,7 @@ else |
54 | 54 |
OS_REPO_ROOT=$(readlink -f "${OS_REPO_ROOT}") |
55 | 55 |
fi |
56 | 56 |
|
57 |
-OS_TARGET="${OS_REPO_ROOT}/output/go" |
|
57 |
+OS_TARGET="${OS_REPO_ROOT}/_output/go" |
|
58 | 58 |
mkdir -p "${OS_TARGET}" |
59 | 59 |
|
60 | 60 |
OS_GO_PACKAGE=github.com/openshift/origin |
... | ... |
@@ -63,7 +63,7 @@ OS_GO_PACKAGE_DIR="${OS_TARGET}/src/${OS_GO_PACKAGE}" |
63 | 63 |
OS_GO_PACKAGE_BASEDIR=$(dirname "${OS_GO_PACKAGE_DIR}") |
64 | 64 |
mkdir -p "${OS_GO_PACKAGE_BASEDIR}" |
65 | 65 |
|
66 |
-# Create symlink under output/go/src. |
|
66 |
+# Create symlink under _output/go/src. |
|
67 | 67 |
ln -snf "${OS_REPO_ROOT}" "${OS_GO_PACKAGE_DIR}" |
68 | 68 |
|
69 | 69 |
GOPATH="${OS_TARGET}:${OS_REPO_ROOT}/Godeps/_workspace" |
... | ... |
@@ -22,7 +22,7 @@ ETCD_PORT=${ETCD_PORT:-4001} |
22 | 22 |
API_PORT=${API_PORT:-8080} |
23 | 23 |
API_HOST=${API_HOST:-127.0.0.1} |
24 | 24 |
KUBELET_PORT=${KUBELET_PORT:-10250} |
25 |
-GO_OUT=$(dirname $0)/../output/go/bin |
|
25 |
+GO_OUT=$(dirname $0)/../_output/go/bin |
|
26 | 26 |
|
27 | 27 |
# Check openshift version |
28 | 28 |
out=$(${GO_OUT}/openshift version) |
... | ... |
@@ -14,7 +14,7 @@ find_test_dirs() { |
14 | 14 |
-o -wholename './target' \ |
15 | 15 |
-o -wholename '*/third_party/*' \ |
16 | 16 |
-o -wholename '*/Godeps/*' \ |
17 |
- -o -wholename '*/output/*' \ |
|
17 |
+ -o -wholename '*/_output/*' \ |
|
18 | 18 |
\) -prune \ |
19 | 19 |
\) -name '*_test.go' -print0 | xargs -0n1 dirname | sort -u | xargs -n1 printf "${OS_GO_PACKAGE}/%s\n" |
20 | 20 |
} |
... | ... |
@@ -26,7 +26,7 @@ fi |
26 | 26 |
|
27 | 27 |
REPO_ROOT="$(cd "$(dirname "$0")/../" && pwd -P)" |
28 | 28 |
|
29 |
-files="$(find ${REPO_ROOT} -type f | grep "[.]go$" | grep -v "third_party/\|release/\|output/\|target/\|Godeps/")" |
|
29 |
+files="$(find ${REPO_ROOT} -type f | grep "[.]go$" | grep -v "third_party/\|release/\|_output/\|target/\|Godeps/")" |
|
30 | 30 |
bad=$(gofmt -s -l ${files}) |
31 | 31 |
if [[ -n "${bad}" ]]; then |
32 | 32 |
echo "$bad" |