fix docker build (#437)
* fix docker build * docs Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
This commit is contained in:
parent
bba6d880d1
commit
defcad2bcd
@ -8,6 +8,7 @@ WORKDIR /go/src/github.com/Chainsafe/ethermint
|
|||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN apk add --update $PACKAGES
|
RUN apk add --update $PACKAGES
|
||||||
|
RUN apk add linux-headers
|
||||||
|
|
||||||
# Add source files
|
# Add source files
|
||||||
COPY . .
|
COPY . .
|
||||||
|
10
Makefile
10
Makefile
@ -104,11 +104,11 @@ all: tools verify install
|
|||||||
|
|
||||||
build: go.sum
|
build: go.sum
|
||||||
ifeq ($(OS), Windows_NT)
|
ifeq ($(OS), Windows_NT)
|
||||||
go build -mod=readonly $(BUILD_FLAGS) -o build/$(DETECTED_OS)/$(ETHERMINT_DAEMON_BINARY).exe ./cmd/$(ETHERMINT_DAEMON_BINARY)
|
go build -mod=readonly $(BUILD_FLAGS) -o build/$(ETHERMINT_DAEMON_BINARY).exe ./cmd/$(ETHERMINT_DAEMON_BINARY)
|
||||||
go build -mod=readonly $(BUILD_FLAGS) -o build/$(DETECTED_OS)/$(ETHERMINT_CLI_BINARY).exe ./cmd/$(ETHERMINT_CLI_BINARY)
|
go build -mod=readonly $(BUILD_FLAGS) -o build/$(ETHERMINT_CLI_BINARY).exe ./cmd/$(ETHERMINT_CLI_BINARY)
|
||||||
else
|
else
|
||||||
go build -mod=readonly $(BUILD_FLAGS) -o build/$(DETECTED_OS)/$(ETHERMINT_DAEMON_BINARY) ./cmd/$(ETHERMINT_DAEMON_BINARY)
|
go build -mod=readonly $(BUILD_FLAGS) -o build/$(ETHERMINT_DAEMON_BINARY) ./cmd/$(ETHERMINT_DAEMON_BINARY)
|
||||||
go build -mod=readonly $(BUILD_FLAGS) -o build/$(DETECTED_OS)/$(ETHERMINT_CLI_BINARY) ./cmd/$(ETHERMINT_CLI_BINARY)
|
go build -mod=readonly $(BUILD_FLAGS) -o build/$(ETHERMINT_CLI_BINARY) ./cmd/$(ETHERMINT_CLI_BINARY)
|
||||||
endif
|
endif
|
||||||
go build -mod=readonly ./...
|
go build -mod=readonly ./...
|
||||||
|
|
||||||
@ -129,7 +129,7 @@ install:
|
|||||||
clean:
|
clean:
|
||||||
@rm -rf ./build ./vendor
|
@rm -rf ./build ./vendor
|
||||||
|
|
||||||
docker:
|
docker-build:
|
||||||
docker build -t ${DOCKER_IMAGE}:${DOCKER_TAG} .
|
docker build -t ${DOCKER_IMAGE}:${DOCKER_TAG} .
|
||||||
docker tag ${DOCKER_IMAGE}:${DOCKER_TAG} ${DOCKER_IMAGE}:latest
|
docker tag ${DOCKER_IMAGE}:${DOCKER_TAG} ${DOCKER_IMAGE}:latest
|
||||||
docker tag ${DOCKER_IMAGE}:${DOCKER_TAG} ${DOCKER_IMAGE}:${COMMIT_HASH}
|
docker tag ${DOCKER_IMAGE}:${DOCKER_TAG} ${DOCKER_IMAGE}:${COMMIT_HASH}
|
||||||
|
@ -26,7 +26,7 @@ ethermintcli -h
|
|||||||
You can build Ethermint using Docker by running:
|
You can build Ethermint using Docker by running:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
make docker
|
make docker-build
|
||||||
```
|
```
|
||||||
|
|
||||||
This will install the binaries on the `./build` directory. Now, check that the binaries have been
|
This will install the binaries on the `./build` directory. Now, check that the binaries have been
|
||||||
|
Loading…
Reference in New Issue
Block a user