[documentation] Document building archiver without Brotli support
This commit is contained in:
parent
bf6849ef92
commit
feac943d0f
1 changed files with 13 additions and 1 deletions
|
@ -428,6 +428,8 @@ Install the prerequisites
|
||||||
zypper install go
|
zypper install go
|
||||||
zypper install libbrotli-devel
|
zypper install libbrotli-devel
|
||||||
|
|
||||||
|
* ``libbrotli-*`` is not required if building without Brotli support; (i.e. by adding ``-tags nobrotli`` to ``go build``);
|
||||||
|
|
||||||
|
|
||||||
Prepare the environment
|
Prepare the environment
|
||||||
.......................
|
.......................
|
||||||
|
@ -494,7 +496,7 @@ Compile the Go (dynamic) binaries: ::
|
||||||
./cmd/archiver.go \
|
./cmd/archiver.go \
|
||||||
#
|
#
|
||||||
|
|
||||||
Compile the Go (static) binaries (available only for the server): ::
|
Compile the Go (static) binaries (for archiver it removes Brotli support): ::
|
||||||
|
|
||||||
cd /tmp/kawipiko/src/sources
|
cd /tmp/kawipiko/src/sources
|
||||||
|
|
||||||
|
@ -508,6 +510,16 @@ Compile the Go (static) binaries (available only for the server): ::
|
||||||
./cmd/server.go \
|
./cmd/server.go \
|
||||||
#
|
#
|
||||||
|
|
||||||
|
env \
|
||||||
|
GOPATH=/tmp/kawipiko/go \
|
||||||
|
go build \
|
||||||
|
-tags 'netgo nobrotli' \
|
||||||
|
-ldflags 'all=-s -extld=gcc -extldflags=-static' \
|
||||||
|
-gcflags 'all=-l=4' \
|
||||||
|
-o /tmp/kawipiko/bin/kawipiko-archiver \
|
||||||
|
./cmd/archiver.go \
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
Deploy the binaries
|
Deploy the binaries
|
||||||
...................
|
...................
|
||||||
|
|
Loading…
Reference in a new issue