Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated test scripts to accommodate osmosis zone #126

Merged
merged 1 commit into from Jun 30, 2022

Conversation

zanicar
Copy link
Contributor

@zanicar zanicar commented Jun 29, 2022

  • added liquidstaking2 to icq.yaml
  • created multi-test.sh
  • created registerosmo.json
  • implemented IsMultiZoneTest in setup.sh
  • updated simple-test.sh with var changes
  • added multi zone test vars to vars.sh
  • updated docker-compose.yaml
  • added test-docker-multi and test-docker-multi-regen to makefile

- added liquidstaking2 to icq.yaml
- created multi-test.sh
- created registerosmo.json
- implemented IsMultiZoneTest in setup.sh
- updated simple-test.sh with var changes
- added multi zone test vars to vars.sh
- updated docker-compose.yaml
- added test-docker-multi and test-docker-multi-regen to makefile
@zanicar
Copy link
Contributor Author

zanicar commented Jun 29, 2022

Clone osmosis
Use updated Dockerfile:

# syntax=docker/dockerfile:1

ARG BASE_IMG_TAG=nonroot

# --------------------------------------------------------
# Build 
# --------------------------------------------------------

FROM golang:1.18.2-alpine3.15 as build

RUN set -eux; apk add --no-cache ca-certificates build-base;
RUN apk add git
# Needed by github.com/zondax/hid
RUN apk add linux-headers

WORKDIR /osmosis
COPY . /osmosis

# CosmWasm: see https://github.com/CosmWasm/wasmvm/releases
ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.0.0/libwasmvm_muslc.aarch64.a /lib/libwasmvm_muslc.aarch64.a
ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.0.0/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.x86_64.a
RUN sha256sum /lib/libwasmvm_muslc.aarch64.a | grep 7d2239e9f25e96d0d4daba982ce92367aacf0cbd95d2facb8442268f2b1cc1fc
RUN sha256sum /lib/libwasmvm_muslc.x86_64.a | grep f6282df732a13dec836cda1f399dd874b1e3163504dbd9607c6af915b2740479

# CosmWasm: copy the right library according to architecture. The final location will be found by the linker flag `-lwasmvm_muslc`
RUN cp /lib/libwasmvm_muslc.$(uname -m).a /lib/libwasmvm_muslc.a

RUN BUILD_TAGS=muslc LINK_STATICALLY=true make build

# --------------------------------------------------------
# Runner
# --------------------------------------------------------

FROM alpine:3.15
COPY --from=build /osmosis/build/osmosisd /usr/local/bin/osmosisd
RUN adduser -S -h /osmosis -D osmosis -u 1000
USER osmosis
EXPOSE 26656
EXPOSE 26657
EXPOSE 1317
CMD ["osmosisd", "start"]

Copy link
Contributor

@joe-bowman joe-bowman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@joe-bowman joe-bowman merged commit 4d89a36 into quicksilver-zone:main Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants