Skip to content

Commit

Permalink
feat: add Oasis CLI 0.5.0 to Sapphire-dev container
Browse files Browse the repository at this point in the history
  • Loading branch information
CedarMist committed Oct 10, 2023
1 parent 1d92253 commit bbb6605
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docker/sapphire-dev/Dockerfile
Expand Up @@ -18,6 +18,7 @@ FROM ubuntu:22.04

# Docker-specific variables
ENV OASIS_CORE_VERSION=22.2.11
ENV OASIS_CLI_VERSION=0.5.0
ENV PARATIME_VERSION=0.6.4-testnet
ENV PARATIME_NAME=sapphire
ENV GATEWAY__CHAIN_ID=0x5afd
Expand All @@ -41,7 +42,7 @@ ARG DEBIAN_FRONTEND=noninteractive
# Install Postgresql and other tools packaged by Ubuntu.
RUN apt update -qq \
&& apt dist-upgrade -qq -y \
&& apt install jq postgresql unzip -y \
&& apt install jq postgresql unzip ca-certificates -y \
&& rm -rf /var/lib/apt/lists/*

# simple-keymanager
Expand All @@ -67,6 +68,12 @@ ADD "https://github.com/oasisprotocol/${PARATIME_NAME}-paratime/releases/downloa
RUN unzip "paratime.orc" \
&& chmod a+x "runtime.elf"

# Configure oasis-cli.
ADD "https://github.com/oasisprotocol/cli/releases/download/v${OASIS_CLI_VERSION}/oasis_cli_${OASIS_CLI_VERSION}_linux_amd64.tar.gz" /
RUN tar -xvf "/oasis_cli_${OASIS_CLI_VERSION}_linux_amd64.tar.gz" \
&& mv "/oasis_cli_${OASIS_CLI_VERSION}_linux_amd64/oasis" / \
&& rm -rf "/oasis_cli_${OASIS_CLI_VERSION}_linux_amd64/"

# Write VERSION information.
RUN echo "${VERSION}" > /VERSION

Expand Down

0 comments on commit bbb6605

Please sign in to comment.