-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from AlayaNetwork/feature/bump-version-to-0.16.0
Feature/bump version to 0.16.0
- Loading branch information
Showing
303 changed files
with
5,237 additions
and
1,389 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: golangci-lint | ||
on: | ||
pull_request: | ||
branches: '**' | ||
jobs: | ||
golangci: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ^1.16 | ||
id: go | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: make | ||
run: bash ./build/build_deps.sh | ||
|
||
- name: Get dependencies | ||
run : | | ||
go mod download | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v2 | ||
with: | ||
version: 'latest' | ||
args: --no-config --issues-exit-code=0 --timeout=30m --tests=false --skip-dirs="tests" --skip-dirs-use-default=true --disable-all --enable=misspell --enable=goconst --enable=gofmt --enable=goimports --enable=gosec --enable=unconvert --enable=unparam --enable=funlen | ||
skip-go-installation: true | ||
skip-pkg-cache: true |
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
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,15 +1,46 @@ | ||
# Build Geth in a stock Go builder container | ||
FROM golang:1.11-alpine as builder | ||
# Build Alaya in a stock Go builder container | ||
FROM golang:1.15-alpine as builder | ||
|
||
RUN apk add --no-cache make gcc musl-dev linux-headers | ||
RUN apk add --no-cache make gcc musl-dev linux-headers g++ llvm bash cmake git gmp-dev openssl-dev | ||
|
||
ADD . /go-ethereum | ||
RUN cd /go-ethereum && make all | ||
RUN git clone https://github.com/dfinity/bn.git | ||
RUN cd bn && make && make install | ||
|
||
# Pull all binaries into a second stage deploy alpine container | ||
ADD . /Alaya-Go | ||
RUN cd /Alaya-Go && make clean && make alaya | ||
|
||
# Pull Alaya into a second stage deploy alpine container | ||
FROM alpine:latest | ||
|
||
RUN apk add --no-cache ca-certificates | ||
COPY --from=builder /go-ethereum/build/bin/* /usr/local/bin/ | ||
RUN apk add --no-cache ca-certificates libstdc++ bash tzdata gmp-dev | ||
COPY --from=builder /Alaya-Go/build/bin/* /usr/local/bin/ | ||
COPY --from=builder /Alaya-Go/entrypoint.sh /usr/local/bin/ | ||
COPY --from=builder /usr/local/lib/libbls384.so /usr/local/lib/ | ||
COPY --from=builder /usr/local/lib/libmcl.so /usr/local/lib/ | ||
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime | ||
|
||
ENV ENABLE_DEBUG=false | ||
ENV ENABLE_PPROF=false | ||
ENV ENABLE_WS=false | ||
ENV WSAPI= | ||
ENV ENABLE_RPC=false | ||
ENV RPCAPI= | ||
ENV BOOTNODES= | ||
ENV NEW_ACCOUNT=false | ||
ENV INIT=false | ||
ENV VERBOSITY=3 | ||
ENV ENBALE_DISCOVER=false | ||
ENV ENABLE_V5DISC=false | ||
ENV ENABLE_CBFT_TRACING=false | ||
ENV P2PPORT=16789 | ||
ENV WSPORT=6080 | ||
ENV RPCPORT=6789 | ||
ENV PPROFPORT=6060 | ||
ENV MAXPEERS=80 | ||
ENV MAXCONSENSUSPEERS=75 | ||
ENV ENABLE_LIGHT_SRV=false | ||
ENV SYNCMODE=full | ||
|
||
EXPOSE 8545 8546 30303 30303/udp | ||
VOLUME /data/alaya | ||
EXPOSE 6060 6080 6789 16789 16789/udp | ||
ENTRYPOINT ["alaya"] |
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
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.