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
Local docker compose #108
Merged
Merged
Local docker compose #108
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
aba622c
feat: make payroll running on local docker compose
johnnyluo 17d5c6d
fix: update Redis port in docker-compose configuration
johnnyluo 6bce386
feat: update docker-compose configuration for payroll services and re…
johnnyluo a37c2f1
Merge branch 'main' into local-docker-compose
johnnyluo cbde9e9
docs: update README to remove deprecated Keygen and Resend endpoints,…
johnnyluo 5fca4df
Merge remote-tracking branch 'origin/local-docker-compose' into local…
johnnyluo 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,47 @@ | ||
| # 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/payroll/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 payroll.server.example.json config.json | ||
| COPY ./etc/vultisig/payroll.yml /etc/vultisig/payroll.yml | ||
|
|
||
| ENV LD_LIBRARY_PATH=/usr/local/lib/dkls/includes/linux/:$LD_LIBRARY_PATH | ||
|
|
||
| # Expose the port the application listens on | ||
| EXPOSE 8080 | ||
|
|
||
| # Run the application | ||
| CMD ["./server"] | ||
|
johnnyluo marked this conversation as resolved.
|
||
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 | ||
|
johnnyluo marked this conversation as resolved.
|
||
|
|
||
| ENV LD_LIBRARY_PATH=/usr/local/lib/dkls/includes/linux/:${LD_LIBRARY_PATH:-} | ||
|
|
||
| # Build the application | ||
| RUN go build -o worker ./cmd/payroll/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/* | ||
|
|
||
| # 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 payroll.worker.example.json config.json | ||
| COPY ./etc/vultisig/payroll.yml /etc/vultisig/payroll.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
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.
Uh oh!
There was an error while loading. Please reload this page.