Skip to content

Latest commit

 

History

History
49 lines (40 loc) · 1.24 KB

building.md

File metadata and controls

49 lines (40 loc) · 1.24 KB

Build Binaries

go get -d tkestack.io/galaxy
cd $GOPATH/src/tkestack.io/galaxy

# building all binaries
make
# OR
make BINS="galaxy galaxy-ipam"

# building galaxy-ipam
make BINS="galaxy-ipam"

Build Docker Image

# building all images
make image

# builing galaxy-ipam
make image BINS="galaxy-ipam"

Build Docker Image for specified arch

# building all images for linux_arm64
make image.multiarch PLATFORMS="linux_arm64"

FAQ

Q: Cannot fetch some modules like 'modernc.org/golex', 'modernc.org/xc', etc? A: The build.sh script will call go mod command to download these modules from gitlab.com, but there are some compatibility problem for go mod when resolving gitlab.com addresses, To fix it, add belowing configuration to ~/.gitconfig :

[url "https://gitlab.com/cznic/mathutil.git"]
        insteadOf = https://gitlab.com/cznic/mathutil
[url "https://gitlab.com/cznic/xc.git"]
        insteadOf = https://gitlab.com/cznic/xc
[url "https://gitlab.com/cznic/strutil.git"]
        insteadOf = https://gitlab.com/cznic/strutil
[url "https://gitlab.com/cznic/golex.git"]
        insteadOf = https://gitlab.com/cznic/golex
[url "https://gitlab.com/cznic/cc.git"]
        insteadOf = https://gitlab.com/cznic/cc