-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into ap/add-claim-records
- Loading branch information
Showing
2 changed files
with
21 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,25 @@ | ||
# Simple usage with a mounted data directory: | ||
# > docker build -t simapp . | ||
# | ||
# Server: | ||
# > docker run -it -p 26657:26657 -p 26656:26656 -v ~/.simapp:/root/.simapp simapp simd init test-chain | ||
# TODO: need to set validator in genesis so start runs | ||
# > docker run -it -p 26657:26657 -p 26656:26656 -v ~/.simapp:/root/.simapp simapp simd start | ||
# | ||
# Client: (Note the simapp binary always looks at ~/.simapp we can bind to different local storage) | ||
# > docker run -it -p 26657:26657 -p 26656:26656 -v ~/.simappcli:/root/.simapp simapp simd keys add foo | ||
# > docker run -it -p 26657:26657 -p 26656:26656 -v ~/.simappcli:/root/.simapp simapp simd keys list | ||
# TODO: demo connecting rest-server (or is this in server now?) | ||
FROM golang:alpine AS build-env | ||
|
||
# Install minimum necessary dependencies, | ||
ENV PACKAGES curl make git libc-dev bash gcc linux-headers eudev-dev python3 | ||
RUN apk add --no-cache $PACKAGES | ||
|
||
# Set working directory for the build | ||
WORKDIR /go/src/github.com/cosmos/cosmos-sdk | ||
|
||
# Add source files | ||
FROM golang:1.20.5-alpine AS build-env | ||
|
||
# Set up dependencies | ||
ENV PACKAGES bash curl make git libc-dev gcc linux-headers eudev-dev python3 | ||
|
||
# ADD . /code | ||
WORKDIR /code | ||
|
||
COPY . . | ||
|
||
# install simapp, remove packages | ||
RUN make build-linux | ||
ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.2.1/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.a | ||
|
||
RUN apk add --no-cache $PACKAGES && \ | ||
BUILD_TAGS=muslc LINK_STATICALLY=true make install && \ | ||
rm -rf /var/cache/apk/* | ||
|
||
# Final image | ||
FROM alpine:edge | ||
|
||
# Install ca-certificates | ||
RUN apk add --update ca-certificates | ||
WORKDIR /root | ||
|
||
# Copy over binaries from the build-env | ||
COPY --from=build-env /go/src/github.com/cosmos/cosmos-sdk/build/simd /usr/bin/simd | ||
WORKDIR /code | ||
|
||
EXPOSE 26656 26657 1317 9090 | ||
COPY --from=build-env /go/bin/passage /usr/local/bin/passage | ||
|
||
# Run simd by default, omit entrypoint to ease using container with simcli | ||
CMD ["simd"] | ||
CMD ["passage"] |
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