Skip to content

Commit

Permalink
wasmrework and price feeder update
Browse files Browse the repository at this point in the history
  • Loading branch information
danbryan committed Jul 18, 2023
1 parent 4355a0c commit ec9bd00
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions kujirad/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,14 @@ ARG TARGETPLATFORM
# Use muslc for static libs
ARG BUILD_TAGS="muslc"
ARG VERSION
ARG ORACLE_VERSION=v0.6.0
ARG ORACLE_VERSION=v0.6.1
ARG LD_FLAGS=-linkmode=external \
-extldflags '-Wl,-z,muldefs -static'

# Install cli tools for building and final image
RUN apk add --update --no-cache make git bash gcc linux-headers eudev-dev ncurses-dev openssh curl jq
RUN apk add --no-cache musl-dev

# Install CosmWasm.
RUN if [ "${TARGETPLATFORM}" = "linux/amd64" ] ; then \
wget -P /lib https://github.com/CosmWasm/wasmvm/releases/download/v1.2.0/libwasmvm_muslc.x86_64.a ; \
cp /lib/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.a ; \
fi

RUN if [ "${TARGETPLATFORM}" = "linux/arm64" ] ; then \
wget -P /lib https://github.com/CosmWasm/wasmvm/releases/download/v1.2.0/libwasmvm_muslc.aarch64.a ; \
cp /lib/libwasmvm_muslc.aarch64.a /lib/libwasmvm_muslc.a ; \
fi

# Build Chain Binary
WORKDIR /go/src/github.com/Team-Kujira
RUN git clone https://github.com/Team-Kujira/core.git
Expand All @@ -33,6 +22,15 @@ RUN git fetch
RUN git checkout ${VERSION}
WORKDIR /go/src/github.com/Team-Kujira/core

# Install CosmWasm.
RUN set -eux; \
WASM_VERSION=$(go list -m all | grep github.com/CosmWasm/wasmvm | awk '{print $NF}'); \
echo ${WASM_VERSION} ;\
if [ ! -z "${WASM_VERSION}" ]; then \
wget -O /lib/libwasmvm_muslc.a https://github.com/CosmWasm/wasmvm/releases/download/${WASM_VERSION}/libwasmvm_muslc.$(uname -m).a; \
fi; \
go mod download;

RUN if [ "${TARGETPLATFORM}" = "linux/amd64" ] ; then \
BUILD_TAGS=${BUILD_TAGS} make install ; \
fi
Expand Down

0 comments on commit ec9bd00

Please sign in to comment.