Skip to content

Commit

Permalink
updated documentation about rebuilding k8s manifests file (vmware-arc…
Browse files Browse the repository at this point in the history
  • Loading branch information
paolomainardi committed Feb 3, 2018
1 parent aaa6122 commit 426b20f
Showing 1 changed file with 36 additions and 12 deletions.
48 changes: 36 additions & 12 deletions docs/dev-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export PATH=$GOPATH:$PATH
### Create a working directory for the project

````
working_dir=$GOROOT/src/github.com/kubeless/
mkdir -p $working_dir
export KUBELESS_WORKING_DIR=$GOROOT/src/github.com/kubeless/
mkdir -p $KUBELESS_WORKING_DIR
````

### Fork the repository
Expand All @@ -40,10 +40,9 @@ mkdir -p $working_dir
### Clone from your fork

```
working_dir = $GOROOT/src/github.com/kubeless/
cd $working_dir
cd $KUBELESS_WORKING_DIR
git clone https://github.com/<YOUR FORK>
cd $working_dir/kubeless
cd $KUBELESS_WORKING_DIR/kubeless
git remote add upstream https://github.com/kubeless/kubeless.git
# Never push to upstream master
Expand All @@ -57,15 +56,15 @@ git remote -v
To get all the needed tools to build and test, run:

```
cd $working_dir/kubeless
cd $KUBELESS_WORKING_DIR/kubeless
make bootstrap
```

Or if you want to use a containerized environment you can use [minikube](https://github.com/kubernetes/minikube). If you already have minikube
use the following script to set it up:

```
cd $working_dir/kubeless
cd $KUBELESS_WORKING_DIR/kubeless
./script/start-test-environment.sh
```

Expand All @@ -79,7 +78,7 @@ text editor.
To make the binaries for your platform, run:

```
cd $working_dir/kubeless
cd $KUBELESS_WORKING_DIR/kubeless
make binary
make controller-image
```
Expand All @@ -95,6 +94,31 @@ $ make binary-cross

The binaries accordingly located at `bundles/kubeless_$OS_$arch` folder.

### Building k8s manifests file

To regenerate the most updated k8s manifests file, run:

```
cd $KUBELESS_WORKING_DIR
make all-yaml
```

If everything is ok, you'll have generated manifests file under the $KUBELESS_WORKING_DIR root directory:

```
kubeless-openshift.yaml
kubeless-rbac.yaml
kubeless.yaml
``
You can also generate them separated using the following commands:
```
make kubeless-openshift.yaml
make kubeless-rbac.yaml
make kubeless.yaml
```
### Uploading your kubeless image to Docker Hub
Usually you will need to upload your controller image to a repository so you
Expand Down Expand Up @@ -220,11 +244,11 @@ binaries and make it available on kubernetes.
#export GOPATH=
#export PATH=$GOPATH:$PATH

#working_dir=$GOPATH/src/github.com/kubeless/
#mkdir -p $working_dir
#cd $working_dir
#KUBELESS_WORKING_DIR=$GOPATH/src/github.com/kubeless/
#mkdir -p $KUBELESS_WORKING_DIR
#cd $KUBELESS_WORKING_DIR
#git clone https://github.com/<INCLUDE HERE YOUR FORK AND UNCOMMENT>
#cd $working_dir/kubeless
#cd $KUBELESS_WORKING_DIR/kubeless
#git remote add upstream https://github.com/DXBrazil/kubeless
#git remote set-url --push upstream no_push
#git remote -v
Expand Down

0 comments on commit 426b20f

Please sign in to comment.