kubeedge: undefined: ContainerManager - Building edge_core on MacOS
Hi everyone,
I am trying to build edge_core on MacOS. I am facing following issue while building it.
What happened:
$ make edge_core
go build cmd/edge_core.go
# github.com/kubeedge/kubeedge/edge/pkg/edged/containers
pkg/edged/containers/helpers.go:114:33: undefined: ContainerManager
pkg/edged/containers/helpers.go:129:10: undefined: containerManager
make: *** [edge_core] Error 2
How to reproduce it (as minimally and precisely as possible): Clone KubeEdge repository on MacOS.
git clone git@github.com:priyankt68/kubeedge.git $GOPATH/src/github.com/kubeedge/kubeedge
cd $GOPATH/src/github.com/kubeedge
Do I need to do anything else before I build edge_core ?
I do have Docker daemon running on MacOS.
$ docker --version
Docker version 18.09.2, build 6247962
Environment:
- KubeEdge version: latest from master branch
- System Config -
$ uname -a
Darwin Priyanks-MBP-d06f 18.2.0 Darwin Kernel Version 18.2.0: Mon Nov 12 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64 x86_64
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 19 (11 by maintainers)
I don’t think edge-core can run on Mac for now, but you can compile it on Mac using command below:
and copy it to linux, then run it following the KubeEdge instructions.
The error above was caused by container_manager.go, as it has build constraint declared in the file header.