Skip to content

Commit 13836c2

Browse files
authored
Merge pull request #299 from mythi/gitclone
READMEs: use git clone to get the code
2 parents 8d5708f + f145541 commit 13836c2

File tree

6 files changed

+33
-27
lines changed

6 files changed

+33
-27
lines changed

cmd/fpga_admissionwebhook/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ controller webhook plugin.
5959
## Getting the source code
6060

6161
```bash
62-
$ go get -d -u github.com/intel/intel-device-plugins-for-kubernetes
62+
$ mkdir -p $(go env GOPATH)/src/github.com/intel
63+
$ git clone https://github.com/intel/intel-device-plugins-for-kubernetes $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes
6364
```
6465

6566
## Deploying via the script
@@ -86,7 +87,7 @@ The script has some pre-requisite tools that must be installed on your system:
8687
Before the webhook can be deployed, its container image needs to be built:
8788

8889
```bash
89-
$ cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes
90+
$ cd $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes
9091
$ make intel-fpga-admissionwebhook
9192
...
9293
Successfully tagged intel/intel-fpga-admissionwebhook:devel
@@ -98,7 +99,7 @@ To deploy the webhook, run the [`scripts/webhook-deploy.sh`](../../scripts/webho
9899
script:
99100

100101
```bash
101-
$ cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes
102+
$ cd $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes
102103
$ ./scripts/webhook-deploy.sh
103104
Create secret including signed key/cert pair for the webhook
104105
...

cmd/fpga_crihook/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,14 @@ prestart hook.
4848
## Getting the source code
4949

5050
```bash
51-
$ go get -d -u github.com/intel/intel-device-plugins-for-kubernetes
51+
$ mkdir -p $(go env GOPATH)/src/github.com/intel
52+
$ git clone https://github.com/intel/intel-device-plugins-for-kubernetes $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes
5253
```
5354

5455
## Building the image
5556

5657
```bash
57-
$ cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes
58+
$ cd $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes
5859
$ make intel-fpga-initcontainer
5960
...
6061
Successfully tagged intel/intel-fpga-initcontainer:devel

cmd/fpga_plugin/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ To obtain the YAML files used for deployment, or to obtain the source tree if yo
161161
do a hand-deployment or build your own image, you will require access to the source code:
162162

163163
```bash
164-
$ go get -d -u github.com/intel/intel-device-plugins-for-kubernetes
164+
$ mkdir -p $(go env GOPATH)/src/github.com/intel
165+
$ git clone https://github.com/intel/intel-device-plugins-for-kubernetes $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes
165166
```
166167

167168
## Verify node kubelet config
@@ -286,7 +287,7 @@ When deploying by hand, you only need to build the plugin itself, and not the wh
286287
container image:
287288

288289
```bash
289-
$ cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes
290+
$ cd $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes
290291
$ make fpga_plugin
291292
```
292293

@@ -295,7 +296,7 @@ $ make fpga_plugin
295296
```bash
296297
$ export KUBE_CONF=/var/run/kubernetes/admin.kubeconfig # path to kubeconfig with admin's credentials
297298
$ export NODE_NAME="<node name>" # if the node's name was overridden and differs from hostname
298-
$ sudo -E $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes/cmd/fpga_plugin/fpga_plugin -mode af -kubeconfig $KUBE_CONF
299+
$ sudo -E $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes/cmd/fpga_plugin/fpga_plugin -mode af -kubeconfig $KUBE_CONF
299300
FPGA device plugin started in af mode
300301
device-plugin start server at: /var/lib/kubelet/device-plugins/fpga.intel.com-af-f7df405cbd7acf7222f144b0b93acd18.sock
301302
device-plugin registered
@@ -310,7 +311,7 @@ Furthermore, the deployments `securityContext` must be configured with appropria
310311
```bash
311312
$ export KUBE_CONF=/var/run/kubernetes/admin.kubeconfig # path to kubeconfig with admin's credentials
312313
$ export NODE_NAME="<node name>" # if the node's name was overridden and differs from hostname
313-
$ sudo -E $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes/cmd/fpga_plugin/fpga_plugin -mode region -kubeconfig $KUBE_CONF
314+
$ sudo -E $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes/cmd/fpga_plugin/fpga_plugin -mode region -kubeconfig $KUBE_CONF
314315
FPGA device plugin started in region mode
315316
device-plugin start server at: /var/lib/kubelet/device-plugins/fpga.intel.com-region-ce48969398f05f33946d560708be108a.sock
316317
device-plugin registered

cmd/gpu_plugin/README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ Examples are provided showing how to deploy the plugin either using a DaemonSet
4848
> that meets the minimum required version.
4949
5050
```bash
51-
$ go get -d -u github.com/intel/intel-device-plugins-for-kubernetes
51+
$ mkdir -p $(go env GOPATH)/src/github.com/intel
52+
$ git clone https://github.com/intel/intel-device-plugins-for-kubernetes $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes
5253
```
5354

5455
## Verify node kubelet config
@@ -76,7 +77,7 @@ The image build tool can be changed from the default `docker` by setting the `BU
7677
to the [`Makefile`](Makefile).
7778

7879
```bash
79-
$ cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes
80+
$ cd $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes
8081
$ make intel-gpu-plugin
8182
...
8283
Successfully tagged intel/intel-gpu-plugin:devel
@@ -117,7 +118,7 @@ In this case, you do not need to build the complete container image, and can bui
117118
First we build the plugin:
118119

119120
```bash
120-
$ cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes
121+
$ cd $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes
121122
$ make gpu_plugin
122123
```
123124

@@ -126,7 +127,7 @@ $ make gpu_plugin
126127
Now we can run the plugin directly on the node:
127128

128129
```bash
129-
$ sudo $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes/cmd/gpu_plugin/gpu_plugin
130+
$ sudo $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes/cmd/gpu_plugin/gpu_plugin
130131
device-plugin start server at: /var/lib/kubelet/device-plugins/gpu.intel.com-i915.sock
131132
device-plugin registered
132133
```
@@ -158,7 +159,7 @@ We can test the plugin is working by deploying the provided example OpenCL image
158159
1. Create a job running unit tests off the local Docker image:
159160

160161
```bash
161-
$ cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes
162+
$ cd $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes
162163
$ kubectl apply -f demo/intelgpu-job.yaml
163164
job.batch/intelgpu-demo-job created
164165
```

cmd/qat_plugin/README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ The demonstrations have their own requirements, listed in their own specific sec
127127
## Getting the source code
128128

129129
```bash
130-
$ go get -d -u https://github.com/intel/intel-device-plugins-for-kubernetes
130+
$ mkdir -p $(go env GOPATH)/src/github.com/intel
131+
$ git clone https://github.com/intel/intel-device-plugins-for-kubernetes $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes
131132
```
132133

133134
## Verify node kubelet config
@@ -154,7 +155,7 @@ with the tag `devel`. The image build tool can be changed from the default docke
154155
`BUILDER` argument to the [Makefile](../../Makefile).
155156

156157
```bash
157-
$ cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes
158+
$ cd $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes
158159
$ make intel-qat-plugin
159160
...
160161
Successfully tagged intel/intel-qat-plugin:devel
@@ -171,7 +172,7 @@ Deploying the plugin involves first the deployment of a
171172

172173
There is a kustomization for deploying both:
173174
```bash
174-
$ cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes
175+
$ cd $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes
175176
$ kubectl apply -k deployments/qat_plugin
176177
```
177178
and an alternative kustomization for deploying the plugin in the debug mode:
@@ -211,7 +212,7 @@ In this case, you do not need to build the complete container image, and can bui
211212
### Build QAT device plugin
212213

213214
```bash
214-
$ cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes
215+
$ cd $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes
215216
$ make qat_plugin
216217
```
217218

@@ -221,7 +222,7 @@ Deploy the plugin on a node by running it as `root`. The below is just an exampl
221222
paramaters as necessary for your setup:
222223

223224
```bash
224-
$ sudo $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes/cmd/qat_plugin/qat_plugin \
225+
$ sudo $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes/cmd/qat_plugin/qat_plugin \
225226
-dpdk-driver igb_uio -kernel-vf-drivers dh895xccvf -max-num-devices 10 -debug
226227
QAT device plugin started
227228
Discovered Devices below:
@@ -269,7 +270,7 @@ The demo uses a container image. You can either use the
269270
To build the DPDK demo image:
270271

271272
```bash
272-
$ cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes/demo
273+
$ cd $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes/demo
273274
$ ./build-image.sh crypto-perf
274275
...
275276
Successfully tagged crypto-perf:devel
@@ -283,7 +284,7 @@ For example, `qat.intel.com/generic: <number of devices>` for a container reques
283284
For a DPDK-based workload, you may need to add hugepage request and limit.
284285

285286
```bash
286-
$ cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes
287+
$ cd $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes
287288
$ kubectl apply -k deployments/qat_dpdk_app/base/
288289
$ kubectl get pods
289290
NAME READY STATUS RESTARTS AGE
@@ -318,7 +319,7 @@ It is also possible to deploy and run `crypto-perf` using the following
318319
`kustomize` overlays:
319320

320321
```bash
321-
$ cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes
322+
$ cd $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes
322323
$ kubectl apply -k deployments/qat_dpdk_app/test-crypto1
323324
$ kubectl apply -k deployments/qat_dpdk_app/test-compress1
324325
$ kubectl logs qat-dpdk-test-crypto-perf-tc1

cmd/vpu_plugin/README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ Examples are provided showing how to deploy the plugin either using a DaemonSet
4747
> that meets the minimum required version.
4848
4949
```bash
50-
$ go get -d -u github.com/intel/intel-device-plugins-for-kubernetes
50+
$ mkdir -p $(go env GOPATH)/src/github.com/intel
51+
$ git clone https://github.com/intel/intel-device-plugins-for-kubernetes $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes
5152
```
5253

5354
## Verify node kubelet config
@@ -75,7 +76,7 @@ The image build tool can be changed from the default `docker` by setting the `BU
7576
to the [`Makefile`](Makefile).
7677

7778
```bash
78-
$ cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes
79+
$ cd $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes
7980
$ make intel-vpu-plugin
8081
...
8182
Successfully tagged intel/intel-vpu-plugin:devel
@@ -106,7 +107,7 @@ First we build the plugin:
106107
> **Note:** this vpu plugin has dependency of libusb-1.0-0-dev, you need install it before building vpu plugin
107108
108109
```bash
109-
$ cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes
110+
$ cd $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes
110111
$ make vpu_plugin
111112
```
112113

@@ -115,7 +116,7 @@ $ make vpu_plugin
115116
Now we can run the plugin directly on the node:
116117

117118
```bash
118-
$ sudo $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes/cmd/vpu_plugin/vpu_plugin
119+
$ sudo $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes/cmd/vpu_plugin/vpu_plugin
119120
VPU device plugin started
120121
```
121122

@@ -146,7 +147,7 @@ Successfully tagged ubuntu-demo-openvino:devel
146147
### Create a job running unit tests off the local Docker image
147148

148149
```bash
149-
$ cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes
150+
$ cd $(go env GOPATH)/src/github.com/intel/intel-device-plugins-for-kubernetes
150151
$ kubectl apply -f demo/intelvpu-job.yaml
151152
job.batch/intelvpu-demo-job created
152153
```

0 commit comments

Comments
 (0)