mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
docker file add bootnode
This commit is contained in:
parent
d33ce83cba
commit
a1d097b31e
2 changed files with 26 additions and 1 deletions
24
.github/workflows/test-dockerimage.yml
vendored
Normal file
24
.github/workflows/test-dockerimage.yml
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
name: Bor Docker Image CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: arpit/bor-docker
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Build the Bor Docker image
|
||||||
|
env:
|
||||||
|
DOCKERHUB: ${{ secrets.DOCKERHUB }}
|
||||||
|
DOCKERHUB_KEY: ${{ secrets.DOCKERHUB_KEY }}
|
||||||
|
run: |
|
||||||
|
ls -l
|
||||||
|
echo "Docker login"
|
||||||
|
docker login -u $DOCKERHUB -p $DOCKERHUB_KEY
|
||||||
|
echo "running build"
|
||||||
|
docker build -t maticnetwork/bor:docker-1 .
|
||||||
|
echo "pushing image"
|
||||||
|
docker push maticnetwork/bor:docker-1
|
||||||
|
echo "DONE!"
|
||||||
|
|
@ -4,12 +4,13 @@ FROM golang:1.16-alpine as builder
|
||||||
RUN apk add --no-cache make gcc musl-dev linux-headers git
|
RUN apk add --no-cache make gcc musl-dev linux-headers git
|
||||||
|
|
||||||
ADD . /bor
|
ADD . /bor
|
||||||
RUN cd /bor && make bor
|
RUN cd /bor && make bor-all
|
||||||
|
|
||||||
# Pull Bor into a second stage deploy alpine container
|
# Pull Bor into a second stage deploy alpine container
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
RUN apk add --no-cache ca-certificates
|
RUN apk add --no-cache ca-certificates
|
||||||
COPY --from=builder /bor/build/bin/bor /usr/local/bin/
|
COPY --from=builder /bor/build/bin/bor /usr/local/bin/
|
||||||
|
COPY --from=builder /bor/build/bin/bootnode /usr/local/bin/
|
||||||
|
|
||||||
EXPOSE 8545 8546 8547 30303 30303/udp
|
EXPOSE 8545 8546 8547 30303 30303/udp
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue