DAPR
[ 1 Installation ] [ 1.1 Windows ] [ 2 DAPR Sources ] [ 2.1 Dependencies ] [ 2.2 Build ]
Installation
Windows
DAPR Sources
Primary Resources: DAPR Developing Instructions
Dependencies
Install docker
Install go into
/opt/go
.Environment variables
mkdir /opt/go-extras
echo "export GOPATH=/opt/go-extras" >> ~/.bashrc
echo "export PATH=${GOPATH}:/opt/go/bin:${PATH}" >> ~/.bashrc
Install delve
# This will install into ${GOPATH}
$ go install github.com/go-delve/delve/cmd/dlv@latest
Build
into the override.conf
of systemd-resolved
via
# Sources
$ git clone https://github.com/dapr/dapr
# Build binaries - these will appear in dapr/dist
$ cd dapr
$ make build
# Move it to ~/.dapr
$ mv ~/.dapr/bin/daprd ~/.daprd/bin/daprd.original
$ ln -s `realpath ./dist/linux_amd64/release/daprd` ~/.dapr/bin/daprd
# Docker Containers
$ export DAPR_REGISTRY=dapr
$ export DAPR_TAG=devel
$ make docker-build
$ docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
dapr/sentry devel-linux-amd64 4923ee6ba9ef 7 seconds ago 36.1MB
dapr/placement devel-linux-amd64 fe6f0cf36cd7 8 seconds ago 17.7MB
dapr/daprd devel-linux-amd64 200ed3bf9cf6 9 seconds ago 87.3MB
dapr/dapr devel-linux-amd64 4d70a1a13a7d 10 seconds ago 206MB