You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.adoc
+28-11
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Or if you are interested in development, start with:
20
20
21
21
== Download from GitHub
22
22
23
-
The OpenShift team periodically publishes binaries to GitHub on https://github.com/openshift/origin/releases[the Releases page]. These are Linux, Windows, or Mac OS X 64bit binaries (note that Mac and Windows are client only). You'll need Docker installed on your local system (see https://docs.docker.com/installation/#installation[the installation page] if you've never installed Docker before).
23
+
The OpenShift team periodically publishes binaries to GitHub on https://github.com/openshift/origin/releases[the Releases page]. These are Linux, Windows, or Mac OS X 64bit binaries (note that Mac and Windows are client only). You'll need Docker installed on your local system (see https://docs.docker.com/installation/[the installation page] if you've never installed Docker before).
24
24
25
25
The tar file for each platform contains a single binary `openshift` which is the all-in-one OpenShift installation.
26
26
@@ -31,7 +31,7 @@ The tar file for each platform contains a single binary `openshift` which is the
31
31
32
32
== OpenShift Development
33
33
34
-
To get started, https://help.github.com/articles/fork-a-repo[fork] the https://github.com/openshift/origin[origin repo]
34
+
To get started, https://help.github.com/articles/fork-a-repo[fork] the https://github.com/openshift/origin[origin repo].
35
35
36
36
=== Develop locally on your host
37
37
@@ -45,7 +45,7 @@ Here's how to get set up:
45
45
1. For Go, Git and optionally also Docker, follow the links below to get to installation information for these tools: +
46
46
** http://golang.org/doc/install[Installing Go]. You must install Go 1.4 and NOT use $HOME/go directory for Go installation.
** https://docs.docker.com/installation/#installation[Installing Docker]. NOTE: OpenShift now requires at least Docker 1.6. RPMs for CentOS 7 are not yet available in the default yum repositories. If you're running CentOS, please see the link:README.md#docker-16[README] for information on where to get Docker 1.6 RPMs for your platform.
48
+
** https://docs.docker.com/installation/[Installing Docker]. NOTE: OpenShift requires Docker 1.6 or higher or 1.6.2 on CentOS/RHEL.
49
49
2. Next, create a Go workspace directory: +
50
50
+
51
51
----
@@ -67,9 +67,9 @@ export PATH=$PATH:$GOPATH/bin
67
67
68
68
5. From here, you can generate the OpenShift binaries by running:
69
69
70
-
$ make clean run
70
+
$ make clean build
71
71
72
-
6. Next, assuming you have installed Docker 1.3.2 or higher, and that you have not changed the kubernetes/openshift service subnet configuration from the default value of 172.30.0.0/16, you need to instruct the Docker daemon to trust any Docker registry on the 172.30.0.0/16 subnet. If you are running Docker as a service via `systemd`, add the `--insecure-registry 172.30.0.0/16` argument to the options value in `/etc/sysconfig/docker` and restart the Docker daemon. Otherwise, add "--insecure-registry 172.30.0.0/16" to the Docker daemon invocation, eg:
72
+
6. Next, assuming you have not changed the kubernetes/openshift service subnet configuration from the default value of 172.30.0.0/16, you need to instruct the Docker daemon to trust any Docker registry on the 172.30.0.0/16 subnet. If you are running Docker as a service via `systemd`, add the `--insecure-registry 172.30.0.0/16` argument to the options value in `/etc/sysconfig/docker` and restart the Docker daemon. Otherwise, add "--insecure-registry 172.30.0.0/16" to the Docker daemon invocation, eg:
73
73
74
74
$ docker -d --insecure-registry 172.30.0.0/16
75
75
@@ -94,9 +94,9 @@ export PATH=$PATH:$GOPATH/bin
94
94
95
95
11. If it is not there already, add the current directory to the $PATH, so you can leverage the OpenShift commands elsewhere.
96
96
97
-
12. You are now ready to edit the OpenShift source, rebuild / restart OpenShift, and test your changes.
97
+
12. You are now ready to edit the source, rebuild and restart OpenShift to test your changes.
98
98
99
-
13. NOTE: to properly stop OpenShift and clean up so you can restart OpenShift, execute:
99
+
13. NOTE: to properly stop OpenShift and clean up, so that you can start fresh instance of OpenShift, execute:
NOTE: when using vagrant synced folder (by default your origin directory is mounted using synced folder into `/data/src/github.com/openshift/origin`) it is advised to use a different directory for volume storage than the one in the synced folder. This can be achieved by passing `--volume-dir=/absolute/path` to `openshift start` command.
140
144
141
145
8. On your host system, try browsing to: https://localhost:8443/console
142
146
143
-
9. From here, you can follow https://github.com/openshift/origin/#start-developing[Start Developing] from the README.
147
+
9. Deploy the private docker registry within OpenShift with the following commands (note, the --credentials option allows secure communication between the internal OpenShift Docker registry and the OpenShift server, and the --config option provides your identity (in this case, cluster-admin) to the OpenShift server):
Copy file name to clipboardExpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,7 @@ Once the container is started, you can jump into a console inside the container
78
78
# See everything you just created!
79
79
$ oc status
80
80
81
-
Any username and password are accepted by default (with no credential system configured). You can view the webconsole at https://localhost:8443/ in your browser - login with the same credentials you used above and you'll see the application you just created.
81
+
Any username and password are accepted by default (with no credential system configured). You can view the webconsole at [https://localhost:8443/console](https://localhost:8443/console) in your browser - login with the same credentials you used above and you'll see the application you just created.
Copy file name to clipboardExpand all lines: docs/debugging-openshift.md
+25-8
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ System Environment
18
18
$ systemctl restart firewalld
19
19
20
20
Alternatively you can disable it via:
21
-
21
+
22
22
$ systemctl stop firewalld
23
23
24
24
1. Setup your host DNS to an address that the containers can reach
@@ -31,7 +31,7 @@ System Environment
31
31
$ iptables-save > /path/to/iptables.bkp
32
32
$ systemctl restart iptables
33
33
$ iptables-restore < /path/to/iptables.bkp
34
-
34
+
35
35
36
36
37
37
Build Failures
@@ -40,7 +40,7 @@ Build Failures
40
40
To investigate a build failure, first check the build logs. You can view the build logs via
41
41
42
42
$ oc build-logs [build_id]
43
-
43
+
44
44
and you can get the build id via:
45
45
46
46
$ oc get builds
@@ -54,7 +54,7 @@ If you're unable to retrieve the logs in this way, you can also get them directl
54
54
The most recent container in that list should be the one that ran your build. The container id is the first column. You can then run:
55
55
56
56
$ docker logs [container id]
57
-
57
+
58
58
Hopefully the logs will provide some indication of what it failed (e.g. failure to find the source repository, an actual build issue, failure to push the resulting image to the docker registry, etc).
59
59
60
60
One issue seen somewhat often is not being able to resolve any hostname (for example github.com) from within running containers. If this shows up in your build logs, restart docker and then resubmit a build:
@@ -105,24 +105,41 @@ There are a number of suspicious looking messages that appear in the openshift l
E0706 11:29:43.421741 3664 kubelet.go:1114] Unable to mount volumes for pod "docker-registry-1-deploy_default": operation not supported; skipping pod
126
+
E0706 11:29:43.438449 3664 pod_workers.go:108] Error syncing pod 4c390e43-23d2-11e5-b42d-080027c5bfa9, skipping: operation not supported
127
+
128
+
This will happen when using our provided Vagrantfile to develop OpenShift with vagrant. One of the reasons
129
+
is that you can't use ACLs on shared directories. The solution to this problem is to use a different directory
130
+
for volume storage than the one in synced folder. This can be achieved by passing `--volume-dir=/absolute/path` to `openshift start` command.
131
+
132
+
116
133
Must Gather
117
134
-----------
118
135
If you find yourself still stuck, before seeking help in #openshift on freenode.net, please recreate your issue with verbose logging and gather the following:
The following bit of scripting will pull logs for **all** containers that have been run on your system. This might be excessive if you don't keep a clean history, so consider manually grabbing logs for the relevant containers instead:
Copy file name to clipboardExpand all lines: examples/sample-app/README.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -121,6 +121,8 @@ This section covers how to perform all the steps of building, deploying, and upd
121
121
122
122
Note: sudo is required so the kubernetes proxy can manipulate iptables rules to expose service ports.
123
123
124
+
Note: when using vagrant synced folder it is advised to use a different directory for volume storage than the one in the synced folder. This can be achieved by passing `--volume-dir=/absolute/path` to `openshift start` command.
125
+
124
126
125
127
3. Set up your client to reach the OpenShift master now running.
126
128
@@ -350,7 +352,7 @@ the ip address shown below with the correct one for your environment.
0 commit comments