From 6871a080b8d46898b6c279292466b4eca4b4d841 Mon Sep 17 00:00:00 2001 From: wangyan Date: Tue, 1 Aug 2017 14:35:08 +0800 Subject: [PATCH 1/2] update compile guite --- docs/compile_guide.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/compile_guide.md b/docs/compile_guide.md index 53a1108d3..30c3c0440 100644 --- a/docs/compile_guide.md +++ b/docs/compile_guide.md @@ -59,6 +59,12 @@ You can compile the code by one of the three approaches: $ make install GOBUILDIMAGE=golang:1.7.3 COMPILETAG=compile_golangimage CLARITYIMAGE=vmware/harbor-clarity-ui-builder:1.2.7 NOTARYFLAG=true ``` +* Build, install and bring up Harbor with Clair: + + ```sh + $ make install GOBUILDIMAGE=golang:1.7.3 COMPILETAG=compile_golangimage CLARITYIMAGE=vmware/harbor-clarity-ui-builder:1.2.7 CLAIRFLAG=true + ``` + #### II. Compile code with your own Golang environment, then build Harbor * Move source code to $GOPATH @@ -69,20 +75,20 @@ You can compile the code by one of the three approaches: $ mv harbor $GOPATH/src/github.com/vmware/. ``` -* Build, install and run Harbor without Notary: +* Build, install and run Harbor without Notary and Clair: ```sh $ cd $GOPATH/src/github.com/vmware/harbor $ make install ``` -* Build, install and run Harbor with Notary: +* Build, install and run Harbor with Notary and Clair: ```sh $ cd $GOPATH/src/github.com/vmware/harbor - $ make install -e NOTARYFLAG=true + $ make install -e NOTARYFLAG=true CLAIRFLAG=true ``` - + ### Verify your installation If everything worked properly, you can get the below message: From 8331fe20d4fb13cf20ba0d241ae122e50dee17ec Mon Sep 17 00:00:00 2001 From: wangyan Date: Tue, 1 Aug 2017 14:42:56 +0800 Subject: [PATCH 2/2] update compile guite --- docs/compile_guide.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/compile_guide.md b/docs/compile_guide.md index 30c3c0440..f5ab6ffba 100644 --- a/docs/compile_guide.md +++ b/docs/compile_guide.md @@ -112,6 +112,7 @@ CLARITYIMAGE | Clarity UI builder image, default: harbor-clarity-ui-builde DEVFLAG | Build model flag, default: dev COMPILETAG | Compile model flag, default: compile_normal (local golang build) NOTARYFLAG | Notary mode flag, default: false +CLAIRFLAG | Clair mode flag, default: false HTTPPROXY | NPM http proxy for Clarity UI builder REGISTRYSERVER | Remote registry server IP address REGISTRYUSER | Remote registry server user name