forked from InjectiveLabs/peggo
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: docker release * chore: move and rename e2e docker to contrib/images * update e2e_setup_test * ci: add concurrency option * use ubuntu rolling release * comments
- Loading branch information
1 parent
62de3e9
commit c8b024a
Showing
12 changed files
with
68 additions
and
51 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 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
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 |
---|---|---|
@@ -1,15 +1,12 @@ | ||
## image for e2e tests | ||
## image for docker Peggo release | ||
|
||
# Fetch base packages | ||
FROM golang:1.19-alpine AS builder | ||
ENV PACKAGES make git libc-dev gcc linux-headers | ||
RUN apk add --no-cache $PACKAGES | ||
WORKDIR /src/app/ | ||
FROM golang:1.19-bullseye AS builder | ||
WORKDIR /src/peggo/ | ||
COPY . . | ||
RUN make install | ||
|
||
FROM alpine:3.14 | ||
RUN apk add bash curl jq | ||
FROM ubuntu:rolling | ||
COPY --from=builder /go/bin/peggo /usr/local/bin/ | ||
CMD ["peggo"] | ||
STOPSIGNAL SIGTERM |
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,27 @@ | ||
## image for e2e tests | ||
## docker build -t peggo-e2e -f ./contrib/images/e2e.dockerfile . | ||
|
||
# Fetch base packages | ||
FROM golang:1.19-bullseye AS builder | ||
|
||
# Compile the peggo binary | ||
WORKDIR /src/peggo/ | ||
COPY . . | ||
RUN go mod download | ||
RUN make install | ||
|
||
# download umeed | ||
WORKDIR /src/umee | ||
RUN wget https://github.com/umee-network/umee/releases/download/v3.3.0-rc3/umeed-v3.3.0-rc3-linux-amd64 && \ | ||
chmod +x umeed-v* && \ | ||
cp umeed-v* umeed && \ | ||
wget https://raw.githubusercontent.com/CosmWasm/wasmvm/v1.1.1/internal/api/libwasmvm.x86_64.so | ||
|
||
# Prepare final image | ||
# FROM gcr.io/distroless/cc:debug | ||
FROM ubuntu:rolling | ||
ARG IMG_TAG=latest | ||
COPY --from=builder /go/bin/peggo /usr/local/bin/ | ||
COPY --from=builder /src/umee/umeed /usr/local/bin/ | ||
COPY --from=builder /src/umee/libwasmvm.x86_64.so /lib/ | ||
EXPOSE 26656 26657 1317 9090 |
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