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

Build with make #158

Merged
merged 2 commits into from
Apr 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -24,9 +24,15 @@ etcdadm is a command-line tool for operating an etcd cluster. It makes it easy t

### 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