-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PR: fix localnet start error (#545)
- Loading branch information
Showing
4 changed files
with
24 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Makefile for the "gaiadnode" docker image. | ||
# Makefile for the "okexchainnode" docker image. | ||
|
||
all: | ||
docker build --tag okexchain/node node | ||
docker build --tag okexchain/node -f node/Dockerfile ../../../okexchain | ||
|
||
.PHONY: all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
#FROM alpine:3.10.2 | ||
# | ||
#RUN apk update && \ | ||
# apk upgrade && \ | ||
# apk --no-cache add curl jq file | ||
FROM golang:stretch as build-env | ||
|
||
# Changed from Alpine to Ubuntu because the keyring PR is linking to libc | ||
# Alpine uses muslc instead of libc | ||
# Install minimum necessary dependencies | ||
ENV PACKAGES curl make git libc-dev bash gcc | ||
RUN apt-get update && apt-get upgrade -y && \ | ||
apt-get install -y $PACKAGES | ||
|
||
FROM ubuntu:18.04 | ||
WORKDIR /okexchain | ||
# Add source files | ||
COPY . . | ||
|
||
RUN apt-get update && \ | ||
apt-get -y upgrade && \ | ||
apt-get -y install curl jq file | ||
# build OKExChain | ||
RUN make build-linux | ||
|
||
# Final image | ||
FROM golang:1.14 as final | ||
|
||
VOLUME ["/okexchaind"] | ||
WORKDIR /okexchaind | ||
# Copy over binaries from the build-env | ||
COPY --from=build-env /okexchain/build/okexchaind /usr/bin/okexchaind | ||
COPY --from=build-env /okexchain/build/okexchaincli /usr/bin/okexchaincli | ||
COPY --from=build-env /okexchain/networks/local/node/wrapper.sh /usr/bin/wrapper.sh | ||
|
||
EXPOSE 26656 26657 | ||
ENTRYPOINT ["/usr/bin/wrapper.sh"] | ||
CMD ["start"] | ||
STOPSIGNAL SIGTERM | ||
|
||
COPY wrapper.sh /usr/bin/wrapper.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters