Skip to content

Latest commit

 

History

History
53 lines (32 loc) · 1.29 KB

build.md

File metadata and controls

53 lines (32 loc) · 1.29 KB

Build from source

Note: See Prerequisite

You can set the docker client to the Minikube docker environment by executing:

  • windows: @FOR /f "tokens=*" %i IN ('minikube docker-env') DO @%i
  • linux/mac: eval $(minikube docker-env)

Service Manager

Navigate to the project root directory.

The following command will build Service Manager binary and put it in the bin folder. Make sure you set PLATFORM and ARCH environment variable to your platform and architecture:

make build

Alternatively you can build a docker image:

docker build -t "service-manager:latest" -f Dockerfile .

Navigate to the project root directory.

First fetch all dependencies:

dep ensure -v --vendor-only

To build an executable run the following command:

go build -o cf-proxy github.com/Peripli/service-broker-proxy-cf

Navigate to the project root directory.

Build the image:

docker build -t "sb-proxy-k8s:latest" -f Dockerfile .

If you have set your docker client to the Minikube docker you can directly use the above image to run a pod with the k8s proxy.