mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
remove code from shisui
Signed-off-by: Chen Kai <281165273grape@gmail.com>
This commit is contained in:
parent
58195822c4
commit
42f2f3c2b4
5 changed files with 0 additions and 148 deletions
44
.github/workflows/image.yml
vendored
44
.github/workflows/image.yml
vendored
|
|
@ -1,44 +0,0 @@
|
||||||
name: shisui latest image
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ portal ]
|
|
||||||
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
env:
|
|
||||||
REGISTRY: ghcr.io
|
|
||||||
IMAGE_NAME: ${{ github.repository }}
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
|
|
||||||
push_image_to_github:
|
|
||||||
name: Push Docker image to Github
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions: write-all
|
|
||||||
steps:
|
|
||||||
- name: Check out the repo
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: Log in to Docker Hub
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: ${{ env.REGISTRY }}
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Build and push Docker image
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: ./Dockerfile.portal
|
|
||||||
push: true
|
|
||||||
tags: ${{ env.REGISTRY }}/${{ github.repository }}:latest
|
|
||||||
54
.github/workflows/release.yml
vendored
54
.github/workflows/release.yml
vendored
|
|
@ -1,54 +0,0 @@
|
||||||
name: shisui release image
|
|
||||||
|
|
||||||
on:
|
|
||||||
release:
|
|
||||||
types: [created]
|
|
||||||
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
env:
|
|
||||||
releaseBuild: ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags/') }}
|
|
||||||
REGISTRY: ghcr.io
|
|
||||||
IMAGE_NAME: ${{ github.repository }}
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
|
|
||||||
push_image_to_github:
|
|
||||||
name: Push Docker image to Github
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions: write-all
|
|
||||||
steps:
|
|
||||||
- name: Check out the repo
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: Log in to Docker Hub
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: ${{ env.REGISTRY }}
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Extract metadata (tags, labels) for Docker
|
|
||||||
id: meta
|
|
||||||
uses: docker/metadata-action@v5
|
|
||||||
with:
|
|
||||||
images: ${{ env.REGISTRY }}/${{ github.repository }}
|
|
||||||
tags: |
|
|
||||||
type=semver,pattern={{raw}}
|
|
||||||
|
|
||||||
- name: Build and push Docker image
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: ./Dockerfile.portal
|
|
||||||
push: true
|
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
FROM --platform=linux/amd64 golang:1.22 as builder
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY . .
|
|
||||||
RUN go env -w GOPROXY=https://goproxy.cn,direct
|
|
||||||
RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build ./cmd/shisui/main.go
|
|
||||||
|
|
||||||
|
|
||||||
FROM --platform=linux/amd64 ubuntu:22.04
|
|
||||||
|
|
||||||
COPY --from=builder /app/main /usr/local/bin/app
|
|
||||||
|
|
||||||
EXPOSE 8545 9009/udp
|
|
||||||
|
|
||||||
ENTRYPOINT [ "app" ]
|
|
||||||
14
Makefile
14
Makefile
|
|
@ -8,20 +8,6 @@ GOBIN = ./build/bin
|
||||||
GO ?= latest
|
GO ?= latest
|
||||||
GORUN = go run
|
GORUN = go run
|
||||||
|
|
||||||
#? shisui: Build shisui
|
|
||||||
shisui:
|
|
||||||
go build ./cmd/shisui/main.go
|
|
||||||
mkdir -p $(GOBIN)
|
|
||||||
mv main $(GOBIN)/shisui
|
|
||||||
@echo "Done building."
|
|
||||||
@echo "Run \"$(GOBIN)/shisui\" to launch shisui."
|
|
||||||
|
|
||||||
#? shisui-image: Build shisui image
|
|
||||||
shisui-image:
|
|
||||||
docker build -t ghcr.io/optimism-java/shisui:latest -f Dockerfile.portal .
|
|
||||||
|
|
||||||
#? geth: Build geth
|
|
||||||
#? geth: Build geth.
|
|
||||||
#? geth: Build geth.
|
#? geth: Build geth.
|
||||||
geth:
|
geth:
|
||||||
$(GORUN) build/ci.go install ./cmd/geth
|
$(GORUN) build/ci.go install ./cmd/geth
|
||||||
|
|
|
||||||
|
|
@ -54,23 +54,3 @@ var DefaultConfig = Config{
|
||||||
InfluxDBBucket: "geth",
|
InfluxDBBucket: "geth",
|
||||||
InfluxDBOrganization: "geth",
|
InfluxDBOrganization: "geth",
|
||||||
}
|
}
|
||||||
|
|
||||||
// ShisuiDefaultConfig is the default config for metrics used in shisui.
|
|
||||||
var ShisuiDefaultConfig = Config{
|
|
||||||
Enabled: false,
|
|
||||||
EnabledExpensive: false,
|
|
||||||
HTTP: "127.0.0.1",
|
|
||||||
Port: 6060,
|
|
||||||
EnableInfluxDB: false,
|
|
||||||
InfluxDBEndpoint: "http://localhost:8086",
|
|
||||||
InfluxDBDatabase: "shisui",
|
|
||||||
InfluxDBUsername: "test",
|
|
||||||
InfluxDBPassword: "test",
|
|
||||||
InfluxDBTags: "host=localhost",
|
|
||||||
|
|
||||||
// influxdbv2-specific flags
|
|
||||||
EnableInfluxDBV2: false,
|
|
||||||
InfluxDBToken: "test",
|
|
||||||
InfluxDBBucket: "shisui",
|
|
||||||
InfluxDBOrganization: "shisui",
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue