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

Commit

Permalink
Merge pull request #158 from dlipovetsky/build-with-make
Browse files Browse the repository at this point in the history
Build with make
  • Loading branch information
k8s-ci-robot committed Apr 27, 2020
2 parents 6938f5f + 800de39 commit e4a5ffd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ GIT_STORAGE_MOUNT := $(shell source ./git_utils.sh; container_git_storage_mount)
default: $(BIN)

container-build:
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"
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"

$(BIN):
GO111MODULE=on go build -ldflags "$(LDFLAGS)"
Expand Down
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,15 @@ For major project goals, see the [roadmap](ROADMAP.md)

### Building

```
go get -u sigs.k8s.io/etcdadm
```
1. Clone the git repository.
1. Build on the host:
```
make etcdadm
```
1. Build in a container, using docker:
```
make container-build
```

### Creating a new cluster

Expand Down

0 comments on commit e4a5ffd

Please sign in to comment.