Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add checks and fix bootnode docker entrypoint #1739

Merged
merged 2 commits into from
Dec 17, 2019
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 _assets/build/Dockerfile-bootnode
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ LABEL description="bootnode is an Ethereum bootnode with patched Discovery V5."
RUN apk add --no-cache ca-certificates bash

COPY --from=builder /go/src/github.com/status-im/status-go/build/bin/bootnode /usr/local/bin/
ENTRYPOINT /usr/local/bin/bootnode
ENTRYPOINT ["/usr/local/bin/bootnode"]
6 changes: 6 additions & 0 deletions _assets/compose/bootnode/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ export PUBLIC_IP ?= $(shell curl -s https://ipecho.net/plain)
all: checks start show info enode

checks:
ifeq (, $(shell which docker))
$(error No $(BOLD)docker$(RESET) in your $$PATH. Please install it)
endif
ifeq (, $(shell docker version | grep Server))
$(error No permissions to run $(BOLD)docker$(RESET). Add yourself to docker group)
endif
ifeq (, $(shell which docker-compose))
$(error No $(BOLD)docker-compose$(RESET) in your $$PATH. Please install it)
endif
Expand Down
6 changes: 6 additions & 0 deletions _assets/compose/mailserver/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ export PUBLIC_IP ?= $(shell curl -s https://ipecho.net/plain)
all: checks start show info enode

checks:
ifeq (, $(shell which docker))
$(error No $(BOLD)docker$(RESET) in your $$PATH. Please install it)
endif
ifeq (, $(shell docker version | grep Server))
$(error No permissions to run $(BOLD)docker$(RESET). Add yourself to docker group)
endif
ifeq (, $(shell which docker-compose))
$(error No $(BOLD)docker-compose$(RESET) in your $$PATH. Please install it)
endif
Expand Down