-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Description Fixes the docker image releases * use debian golang official Docker image * don't download external libraries - use default dependencies and default build process (this also simplifies the Dockerfile) * tested with the full process * use `.dockerfile` extension (lowercase) * fixed the github action ## Stats main (alpine): * build time 3m 54s * build time on change: 2m 55s * build image: 2.95GB * app image: 118M this work (debian): * build time 2m 26s * build time on change 2m 05s * build image: 3.34GB * app image: 179M (232 with updated ca-certificates and apt registry ) --- ### Author Checklist _All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues._ I have... - [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] added `!` to the type prefix if API or client breaking change - [ ] added appropriate labels to the PR - [ ] targeted the correct branch (see [PR Targeting](https://github.com/umee-network/umee/blob/main/CONTRIBUTING.md#pr-targeting)) - [ ] provided a link to the relevant issue or specification - [ ] added a changelog entry to `CHANGELOG.md` - [ ] included comments for [documenting Go code](https://blog.golang.org/godoc) - [ ] updated the relevant documentation or specification - [ ] reviewed "Files changed" and left comments if necessary - [ ] confirmed all CI checks have passed ### Reviewers Checklist _All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items._ I have... - [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] confirmed all author checklist items have been addressed - [ ] reviewed state machine logic - [ ] reviewed API design and naming - [ ] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable)
- Loading branch information
1 parent
3ceefd6
commit 663399b
Showing
7 changed files
with
66 additions
and
55 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 was deleted.
Oops, something went wrong.
This file contains 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,23 @@ | ||
# Stage-1: build | ||
# We use Debian Bullseye rather then Alpine because Alpine has problem building libwasmvm | ||
# - requires to download libwasmvm_muslc from external source. Build with glibc is straightforward. | ||
FROM golang:1.19-bullseye AS builder | ||
|
||
WORKDIR /src/ | ||
COPY . . | ||
|
||
RUN LEDGER_ENABLED=false BUILD_TAGS=badgerdb make install | ||
|
||
# Stage-2: copy binary and required artifacts to a fresh image | ||
# we need to use debian compatible system. | ||
FROM ubuntu:rolling | ||
# RUN apt update && apt upgrade -y ca-certificates | ||
|
||
COPY --from=builder /go/bin/umeed /usr/local/bin/ | ||
COPY --from=builder /go/pkg/mod/github.com/\!cosm\!wasm/wasmvm\@v*/internal/api/libwasmvm.*.so /usr/lib/ | ||
|
||
EXPOSE 26656 26657 1317 9090 | ||
|
||
# Run umeed by default, omit entrypoint to ease using container with CLI | ||
CMD ["umeed"] | ||
STOPSIGNAL SIGTERM |