-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #641 from oasisprotocol/ptrus/feature/nexus-update
feat(localnet): update nexus to 0.4.1 and exlporer
- Loading branch information
Showing
5 changed files
with
58 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,34 +6,34 @@ RUN cd oasis-web3-gateway && make && strip -S -x oasis-web3-gateway | |
|
||
FROM ghcr.io/oasisprotocol/oasis-core-dev:stable-24.2.x AS oasis-core-dev | ||
|
||
# ARG NEXUS_VERSION=0.4.0 | ||
# RUN wget https://github.com/oasisprotocol/nexus/releases/download/v${NEXUS_VERSION}/oasis_nexus_${NEXUS_VERSION}_linux_amd64.tar.gz \ | ||
# && tar -zxvf oasis_nexus_${NEXUS_VERSION}_linux_amd64.tar.gz \ | ||
# && strip -S -x /oasis_nexus_${NEXUS_VERSION}_linux_amd64/nexus \ | ||
# && mv /oasis_nexus_${NEXUS_VERSION}_linux_amd64/nexus / \ | ||
# && rm -rf /oasis_nexus_${NEXUS_VERSION}_linux_amd64* && \ | ||
# # We also need to fetch the storage migrations. | ||
# git clone https://github.com/oasisprotocol/nexus.git nexus-git --branch v${NEXUS_VERSION} --depth 1 \ | ||
# && mv /nexus-git/storage/migrations /nexus-migrations \ | ||
# && rm -rf nexus-git | ||
ARG NEXUS_VERSION=main | ||
RUN git clone https://github.com/oasisprotocol/nexus.git nexus-git --depth 1 \ | ||
&& cd nexus-git \ | ||
&& git fetch --depth 1 origin ${NEXUS_VERSION} \ | ||
&& git checkout ${NEXUS_VERSION} \ | ||
&& go install github.com/deepmap/oapi-codegen/cmd/[email protected] \ | ||
&& make codegen-go \ | ||
&& go build \ | ||
&& strip -S -x /nexus-git/nexus \ | ||
&& mv /nexus-git/nexus / \ | ||
ARG NEXUS_VERSION=0.4.1 | ||
RUN wget https://github.com/oasisprotocol/nexus/releases/download/v${NEXUS_VERSION}/oasis_nexus_${NEXUS_VERSION}_linux_amd64.tar.gz \ | ||
&& tar -zxvf oasis_nexus_${NEXUS_VERSION}_linux_amd64.tar.gz \ | ||
&& strip -S -x /oasis_nexus_${NEXUS_VERSION}_linux_amd64/nexus \ | ||
&& mv /oasis_nexus_${NEXUS_VERSION}_linux_amd64/nexus / \ | ||
&& rm -rf /oasis_nexus_${NEXUS_VERSION}_linux_amd64* && \ | ||
# We also need to fetch the storage migrations. | ||
git clone https://github.com/oasisprotocol/nexus.git nexus-git --branch v${NEXUS_VERSION} --depth 1 \ | ||
&& mv /nexus-git/storage/migrations /nexus-migrations \ | ||
&& rm -rf /nexus-git | ||
&& rm -rf nexus-git | ||
# ARG NEXUS_VERSION=main | ||
# RUN git clone https://github.com/oasisprotocol/nexus.git nexus-git --depth 1 \ | ||
# && cd nexus-git \ | ||
# && git fetch --depth 1 origin ${NEXUS_VERSION} \ | ||
# && git checkout ${NEXUS_VERSION} \ | ||
# && go install github.com/deepmap/oapi-codegen/cmd/[email protected] \ | ||
# && make codegen-go \ | ||
# && go build \ | ||
# && strip -S -x /nexus-git/nexus \ | ||
# && mv /nexus-git/nexus / \ | ||
# && mv /nexus-git/storage/migrations /nexus-migrations \ | ||
# && rm -rf /nexus-git | ||
|
||
# ARG EXPLORER_REPO=https://github.com/oasisprotocol/explorer.git | ||
# ARG EXPLORER_VERSION=v1.13.0 | ||
# TODO: update once some support for localnet is added: https://github.com/oasisprotocol/explorer/issues/1597 | ||
ARG EXPLORER_REPO=https://github.com/ptrus/explorer.git | ||
ARG EXPLORER_VERSION=1a78782e10fa266707a428c5fd8ba91966d588a1 | ||
ARG EXPLORER_REPO=https://github.com/oasisprotocol/explorer.git | ||
ARG EXPLORER_VERSION=bcb125108db2f6439fcdd536f690b0edfd38aad7 | ||
COPY docker/common/explorer.env /nexus.env.production | ||
RUN git clone ${EXPLORER_REPO} explorer --depth 1 \ | ||
&& cd explorer \ | ||
|
@@ -133,15 +133,16 @@ RUN wget --quiet "https://github.com/oasisprotocol/oasis-core/releases/download/ | |
&& echo "${VERSION}" > /VERSION \ | ||
&& strip -S -x ${OASIS_NET_RUNNER_BINARY} ${OASIS_NODE_BINARY} ${OASIS_CLI_BINARY} | ||
|
||
# Explorer port. | ||
EXPOSE 80/tcp | ||
|
||
# Envoy proxy port. | ||
EXPOSE 8544/tcp | ||
# Web3 gateway http and ws ports. | ||
EXPOSE 8545/tcp | ||
EXPOSE 8546/tcp | ||
# Nexus port. | ||
EXPOSE 8547/tcp | ||
# Explorer port. | ||
EXPOSE 8548/tcp | ||
|
||
USER root | ||
ENTRYPOINT ["/start.sh"] |
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 |
---|---|---|
|
@@ -71,34 +71,34 @@ RUN wget https://github.com/oasisprotocol/${PARATIME_NAME}-paratime/releases/dow | |
# && mv /sapphire-paratime-git/runtime/target/release/sapphire-paratime / \ | ||
# && rm -rf sapphire-paratime-git | ||
|
||
# ARG NEXUS_VERSION=0.4.0 | ||
# RUN wget https://github.com/oasisprotocol/nexus/releases/download/v${NEXUS_VERSION}/oasis_nexus_${NEXUS_VERSION}_linux_amd64.tar.gz \ | ||
# && tar -zxvf oasis_nexus_${NEXUS_VERSION}_linux_amd64.tar.gz \ | ||
# && strip -S -x /oasis_nexus_${NEXUS_VERSION}_linux_amd64/nexus \ | ||
# && mv /oasis_nexus_${NEXUS_VERSION}_linux_amd64/nexus / \ | ||
# && rm -rf /oasis_nexus_${NEXUS_VERSION}_linux_amd64* && \ | ||
# # We also need to fetch the storage migrations. | ||
# git clone https://github.com/oasisprotocol/nexus.git nexus-git --branch v${NEXUS_VERSION} --depth 1 \ | ||
# && mv /nexus-git/storage/migrations /nexus-migrations \ | ||
# && rm -rf nexus-git | ||
ARG NEXUS_VERSION=main | ||
RUN git clone https://github.com/oasisprotocol/nexus.git nexus-git --depth 1 \ | ||
&& cd nexus-git \ | ||
&& git fetch --depth 1 origin ${NEXUS_VERSION} \ | ||
&& git checkout ${NEXUS_VERSION} \ | ||
&& go install github.com/deepmap/oapi-codegen/cmd/[email protected] \ | ||
&& make codegen-go \ | ||
&& go build \ | ||
&& strip -S -x /nexus-git/nexus \ | ||
&& mv /nexus-git/nexus / \ | ||
ARG NEXUS_VERSION=0.4.1 | ||
RUN wget https://github.com/oasisprotocol/nexus/releases/download/v${NEXUS_VERSION}/oasis_nexus_${NEXUS_VERSION}_linux_amd64.tar.gz \ | ||
&& tar -zxvf oasis_nexus_${NEXUS_VERSION}_linux_amd64.tar.gz \ | ||
&& strip -S -x /oasis_nexus_${NEXUS_VERSION}_linux_amd64/nexus \ | ||
&& mv /oasis_nexus_${NEXUS_VERSION}_linux_amd64/nexus / \ | ||
&& rm -rf /oasis_nexus_${NEXUS_VERSION}_linux_amd64* && \ | ||
# We also need to fetch the storage migrations. | ||
git clone https://github.com/oasisprotocol/nexus.git nexus-git --branch v${NEXUS_VERSION} --depth 1 \ | ||
&& mv /nexus-git/storage/migrations /nexus-migrations \ | ||
&& rm -rf /nexus-git | ||
&& rm -rf nexus-git | ||
# ARG NEXUS_VERSION=main | ||
# RUN git clone https://github.com/oasisprotocol/nexus.git nexus-git --depth 1 \ | ||
# && cd nexus-git \ | ||
# && git fetch --depth 1 origin ${NEXUS_VERSION} \ | ||
# && git checkout ${NEXUS_VERSION} \ | ||
# && go install github.com/deepmap/oapi-codegen/cmd/[email protected] \ | ||
# && make codegen-go \ | ||
# && go build \ | ||
# && strip -S -x /nexus-git/nexus \ | ||
# && mv /nexus-git/nexus / \ | ||
# && mv /nexus-git/storage/migrations /nexus-migrations \ | ||
# && rm -rf /nexus-git | ||
|
||
# ARG EXPLORER_REPO=https://github.com/oasisprotocol/explorer.git | ||
# ARG EXPLORER_VERSION=v1.13.0 | ||
# TODO: update once some support for localnet is added: https://github.com/oasisprotocol/explorer/issues/1597 | ||
ARG EXPLORER_REPO=https://github.com/ptrus/explorer.git | ||
ARG EXPLORER_VERSION=1a78782e10fa266707a428c5fd8ba91966d588a1 | ||
# TODO: Update to a released version once a version with localnet explorer support is available (https://github.com/oasisprotocol/explorer/issues/1597). | ||
ARG EXPLORER_REPO=https://github.com/oasisprotocol/explorer.git | ||
ARG EXPLORER_VERSION=3a32a5080a65ed7e5cfd48586a4cd892a7c881c2 | ||
COPY docker/common/explorer.env /nexus.env.production | ||
RUN git clone ${EXPLORER_REPO} explorer --depth 1 \ | ||
&& cd explorer \ | ||
|
@@ -196,15 +196,15 @@ RUN echo "Write VERSION information." \ | |
&& ${OASIS_CLI_BINARY} --version \ | ||
&& echo | ||
|
||
# Explorer port. | ||
EXPOSE 80/tcp | ||
# Envoy proxy port. | ||
EXPOSE 8544/tcp | ||
# Web3 gateway http and ws ports. | ||
EXPOSE 8545/tcp | ||
EXPOSE 8546/tcp | ||
# Nexus port. | ||
EXPOSE 8547/tcp | ||
# Explorer port. | ||
EXPOSE 8548/tcp | ||
|
||
USER root | ||
ENTRYPOINT ["/start.sh"] |