This repository was archived by the owner on Feb 8, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
🔧 Config added for fees, makefile added to run dev mode (hot reloadin… #113
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
27627fa
🔧 Config added for fees, makefile added to run dev mode (hot reloadin…
ac59b12
đź”§ Added fee server hot reloading and static files.
076b88d
đź”§ Add local redis config changes
daa9ac8
Merge branch 'main' into fee-local-config-changes
garry-sharp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,44 @@ | ||
| # Use the official Go image as the base image | ||
| FROM golang:1.24 as builder | ||
|
|
||
| # Set the working directory | ||
| WORKDIR /app | ||
|
|
||
| # Copy go.mod and go.sum to install dependencies | ||
| COPY go.mod go.sum ./ | ||
| RUN go mod download | ||
|
|
||
| # Copy the source code | ||
| COPY . . | ||
|
|
||
| RUN wget https://github.com/vultisig/go-wrappers/archive/refs/heads/master.tar.gz | ||
| RUN tar -xzf master.tar.gz && \ | ||
| cd go-wrappers-master && \ | ||
| mkdir -p /usr/local/lib/dkls && \ | ||
| cp --recursive includes /usr/local/lib/dkls | ||
|
|
||
| ENV LD_LIBRARY_PATH=/usr/local/lib/dkls/includes/linux/:${LD_LIBRARY_PATH:-} | ||
|
|
||
| # Build the application | ||
| RUN go build -o server ./cmd/fees/server | ||
|
|
||
| # Use a minimal base image for the final stage | ||
| FROM ubuntu:24.04 | ||
|
|
||
| RUN apt-get update && \ | ||
| apt-get install -y wget && \ | ||
| rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Set the working directory | ||
| WORKDIR /app | ||
|
|
||
| # Copy the built binary from the builder stage | ||
| COPY --from=builder /app/server . | ||
| COPY --from=builder /usr/local/lib/dkls /usr/local/lib/dkls | ||
| COPY fee.server.example.json config.json | ||
| COPY ./etc/vultisig/fee.yml /etc/vultisig/fee.yml | ||
|
|
||
| ENV LD_LIBRARY_PATH=/usr/local/lib/dkls/includes/linux/:${LD_LIBRARY_PATH:-} | ||
|
|
||
| # Run the application | ||
| CMD ["./server"] | ||
This file contains hidden or 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,41 @@ | ||
| # Use the official Go image as the base image | ||
| FROM golang:1.24 | ||
|
Comment on lines
+1
to
+2
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pin to an existing Go release – 1.24 does not yet exist The official images only go up to 1.22.x at the moment. Referencing a non-existent tag will break the build once the cache is bust. 🤖 Prompt for AI Agents |
||
|
|
||
| # Install air for hot reloading | ||
| RUN go install github.com/air-verse/air@latest | ||
|
|
||
| # Set the working directory | ||
| WORKDIR /app | ||
|
|
||
| # Copy go.mod and go.sum to install dependencies | ||
| COPY go.mod go.sum ./ | ||
| RUN go mod download | ||
|
|
||
| # Download and install DKLS wrappers | ||
| RUN wget https://github.com/vultisig/go-wrappers/archive/refs/heads/master.tar.gz | ||
| RUN tar -xzf master.tar.gz && \ | ||
| cd go-wrappers-master && \ | ||
| mkdir -p /usr/local/lib/dkls && \ | ||
| cp --recursive includes /usr/local/lib/dkls | ||
|
|
||
| ENV LD_LIBRARY_PATH=/usr/local/lib/dkls/includes/linux/:${LD_LIBRARY_PATH:-} | ||
|
|
||
| # Create tmp directory for air | ||
| RUN mkdir -p /app/tmp | ||
|
|
||
| # Create air configuration | ||
| RUN echo 'root = "."' > .air.toml && \ | ||
| echo '' >> .air.toml && \ | ||
| echo '[build]' >> .air.toml && \ | ||
| echo ' bin = "./tmp/main"' >> .air.toml && \ | ||
| echo ' cmd = "go build -o ./tmp/main ./cmd/fees/server"' >> .air.toml && \ | ||
| echo ' delay = 1000' >> .air.toml && \ | ||
| echo ' exclude_dir = ["assets", "tmp", "vendor", "testdata"]' >> .air.toml && \ | ||
| echo ' exclude_regex = ["_test.go"]' >> .air.toml | ||
|
|
||
| # Copy configuration files | ||
| COPY fee.server.example.json config.json | ||
| COPY ./etc/vultisig/fee.yml /etc/vultisig/fee.yml | ||
|
|
||
| # Run air for hot reloading | ||
| CMD ["air"] | ||
This file contains hidden or 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,44 @@ | ||
| # Use the official Go image as the base image | ||
| FROM golang:1.24 as builder | ||
|
|
||
| # Set the working directory | ||
| WORKDIR /app | ||
|
|
||
| # Copy go.mod and go.sum to install dependencies | ||
| COPY go.mod go.sum ./ | ||
| RUN go mod download | ||
|
|
||
| # Copy the source code | ||
| COPY . . | ||
|
|
||
| RUN wget https://github.com/vultisig/go-wrappers/archive/refs/heads/master.tar.gz | ||
| RUN tar -xzf master.tar.gz && \ | ||
| cd go-wrappers-master && \ | ||
| mkdir -p /usr/local/lib/dkls && \ | ||
| cp --recursive includes /usr/local/lib/dkls | ||
|
|
||
| ENV LD_LIBRARY_PATH=/usr/local/lib/dkls/includes/linux/:${LD_LIBRARY_PATH:-} | ||
|
|
||
| # Build the application | ||
| RUN go build -o worker ./cmd/fees/worker | ||
|
|
||
| # Use a minimal base image for the final stage | ||
| FROM ubuntu:24.04 | ||
|
|
||
| RUN apt-get update && \ | ||
| apt-get install -y wget && \ | ||
| rm -rf /var/lib/apt/lists/* | ||
|
garry-sharp marked this conversation as resolved.
|
||
|
|
||
| # Set the working directory | ||
| WORKDIR /app | ||
|
|
||
| # Copy the built binary from the builder stage | ||
| COPY --from=builder /app/worker . | ||
| COPY --from=builder /usr/local/lib/dkls /usr/local/lib/dkls | ||
| COPY fee.worker.example.json config.json | ||
| COPY ./etc/vultisig/fee.yml /etc/vultisig/fee.yml | ||
|
|
||
| ENV LD_LIBRARY_PATH=/usr/local/lib/dkls/includes/linux/:${LD_LIBRARY_PATH:-} | ||
|
|
||
| # Run the application | ||
| CMD ["./worker"] | ||
This file contains hidden or 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,41 @@ | ||
| # Use the official Go image as the base image | ||
| FROM golang:1.24 | ||
|
|
||
| # Install air for hot reloading | ||
| RUN go install github.com/air-verse/air@latest | ||
|
|
||
| # Set the working directory | ||
| WORKDIR /app | ||
|
|
||
| # Copy go.mod and go.sum to install dependencies | ||
| COPY go.mod go.sum ./ | ||
| RUN go mod download | ||
|
|
||
| # Download and install DKLS wrappers | ||
| RUN wget https://github.com/vultisig/go-wrappers/archive/refs/heads/master.tar.gz | ||
| RUN tar -xzf master.tar.gz && \ | ||
| cd go-wrappers-master && \ | ||
| mkdir -p /usr/local/lib/dkls && \ | ||
| cp --recursive includes /usr/local/lib/dkls | ||
|
|
||
| ENV LD_LIBRARY_PATH=/usr/local/lib/dkls/includes/linux/:${LD_LIBRARY_PATH:-} | ||
|
|
||
| # Create tmp directory for air | ||
| RUN mkdir -p /app/tmp | ||
|
|
||
| # Create air configuration | ||
| RUN echo 'root = "."' > .air.toml && \ | ||
| echo '' >> .air.toml && \ | ||
| echo '[build]' >> .air.toml && \ | ||
| echo ' bin = "./tmp/main"' >> .air.toml && \ | ||
| echo ' cmd = "go build -o ./tmp/main ./cmd/fees/worker"' >> .air.toml && \ | ||
| echo ' delay = 1000' >> .air.toml && \ | ||
| echo ' exclude_dir = ["assets", "tmp", "vendor", "testdata"]' >> .air.toml && \ | ||
| echo ' exclude_regex = ["_test.go"]' >> .air.toml | ||
|
|
||
| # Copy configuration files | ||
| COPY fee.worker.example.json config.json | ||
| COPY ./etc/vultisig/fee.yml /etc/vultisig/fee.yml | ||
|
|
||
| # Run air for hot reloading | ||
| CMD ["air"] |
This file contains hidden or 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 hidden or 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 hidden or 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,37 @@ | ||
| services: | ||
| fee-worker: | ||
| build: | ||
| context: . | ||
| dockerfile: Dockerfile.Fee.worker.dev | ||
| volumes: | ||
| - ./cmd:/app/cmd | ||
| - ./plugin:/app/plugin | ||
| - ./internal:/app/internal | ||
| - ./api:/app/api | ||
| - ./storage:/app/storage | ||
| - ./common:/app/common | ||
| - ./pkg:/app/pkg | ||
| - ./service:/app/service | ||
| - ./fee.worker.example.json:/app/config.json | ||
|
|
||
| fee-server: | ||
| build: | ||
| context: . | ||
| dockerfile: Dockerfile.Fee.server.dev | ||
| volumes: | ||
| - ./cmd:/app/cmd | ||
| - ./plugin:/app/plugin | ||
| - ./internal:/app/internal | ||
| - ./api:/app/api | ||
| - ./storage:/app/storage | ||
| - ./common:/app/common | ||
| - ./pkg:/app/pkg | ||
| - ./service:/app/service | ||
| - ./fee.server.example.json:/app/config.json | ||
|
|
||
| volumes: | ||
| db_data: | ||
| minio_data: | ||
| networks: | ||
| shared_network: | ||
| external: true |
This file contains hidden or 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 hidden or 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,3 @@ | ||
| type: fee | ||
| version: 0.0.1 | ||
| rpc_url: https://eth.llamarpc.com |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Invalid base tag – Go 1.24 image not yet published
Switch to an existing tag (
golang:1.22, etc.) or your private registry mirror.🤖 Prompt for AI Agents