diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index bc3de1e2df..40e3eac6a5 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -36,5 +36,3 @@ jobs: push: true tags: ${{ env.REPO_URL }}/limechain/geth:latest - - name: Test Docker image - run: docker run --rm ethereum/client-go:latest version diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml deleted file mode 100644 index 78410aab10..0000000000 --- a/.github/workflows/go.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: i386 linux tests - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - workflow_dispatch: - -jobs: - lint: - name: Lint - runs-on: self-hosted - steps: - - uses: actions/checkout@v4 - - # Cache build tools to avoid downloading them each time - - uses: actions/cache@v4 - with: - path: build/cache - key: ${{ runner.os }}-build-tools-cache-${{ hashFiles('build/checksums.txt') }} - - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: 1.23.0 - cache: false - - - name: Run linters - run: | - go run build/ci.go lint - go run build/ci.go check_generate - go run build/ci.go check_baddeps - - build: - runs-on: self-hosted - steps: - - uses: actions/checkout@v4 - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: 1.24.0 - cache: false - - name: Run tests - run: go test -short ./... - env: - GOOS: linux - GOARCH: 386 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000000..5d1c739e89 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,23 @@ +version: '3.8' + +services: + geth: + build: + context: . + dockerfile: Dockerfile + image: limechain-geth:latest + ports: + - "8545:8545" # JSON-RPC HTTP + - "8546:8546" # WebSocket + - "30303:30303" # P2P + - "30303:30303/udp" # P2P discovery + volumes: + - geth-data:/root/.ethereum + command: > + --dev --http --http.addr=0.0.0.0 --http.api=eth,net,web3,personal,miner,debug,txpool --http.corsdomain="*" --ws --ws.addr=0.0.0.0 --ws.api=eth,net,web3 --ws.origins="*" --allow-insecure-unlock --mine --networkid=1337 + restart: unless-stopped + +volumes: + geth-data: + +