Skip to content
This repository was archived by the owner on Jul 16, 2024. It is now read-only.

Commit e4a5ffd

Browse files
authored
Merge pull request #158 from dlipovetsky/build-with-make
Build with make
2 parents 6938f5f + 800de39 commit e4a5ffd

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ GIT_STORAGE_MOUNT := $(shell source ./git_utils.sh; container_git_storage_mount)
2929
default: $(BIN)
3030

3131
container-build:
32-
docker run --rm -e VERSION_OVERRIDE=${VERSION_OVERRIDE} -v $(PWD):$(PACKAGE_GOPATH) -w $(PACKAGE_GOPATH) $(GIT_STORAGE_MOUNT) golang:1.11 /bin/bash -c "make ensure && make"
32+
docker run --rm -e VERSION_OVERRIDE=${VERSION_OVERRIDE} -v $(PWD):$(PACKAGE_GOPATH) -w $(PACKAGE_GOPATH) $(GIT_STORAGE_MOUNT) golang:1.12 /bin/bash -c "make ensure && make"
3333

3434
$(BIN):
3535
GO111MODULE=on go build -ldflags "$(LDFLAGS)"

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,15 @@ For major project goals, see the [roadmap](ROADMAP.md)
2626

2727
### Building
2828

29-
```
30-
go get -u sigs.k8s.io/etcdadm
31-
```
29+
1. Clone the git repository.
30+
1. Build on the host:
31+
```
32+
make etcdadm
33+
```
34+
1. Build in a container, using docker:
35+
```
36+
make container-build
37+
```
3238

3339
### Creating a new cluster
3440

0 commit comments

Comments
 (0)