Skip to content

Commit

Permalink
Merge pull request #69 from movemntdev/m1-pre-core-v2
Browse files Browse the repository at this point in the history
chore: lagging submodule.
  • Loading branch information
l-monninger authored Nov 13, 2023
2 parents f144bc9 + fda84e7 commit ff41066
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
28 changes: 27 additions & 1 deletion .devcontainer/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,40 @@ RUN apt-get update && apt-get install -y \
curl \
build-essential \
pkg-config \
libssl-dev
libssl-dev \
golang

RUN apt-get install -y libclang-dev

# Install Rust using rustup
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

# Add Rust to the PATH
ENV PATH="/root/.cargo/bin:${PATH}"

# Install postrgresql (for indexer service)
RUN apt install -y postgresql libpq-dev

# Install avalanchego

# Install ANR


# Install subnet-cli
ENV VERSION=0.0.4
RUN echo '#!/bin/bash\n\
GOARCH=$(go env GOARCH)\n\
DOWNLOAD_PATH=/tmp/subnet-cli.tar.gz\n\
DOWNLOAD_URL=https://github.com/ava-labs/subnet-cli/releases/download/v'${VERSION}'/subnet-cli_'${VERSION}'_linux_'${GOARCH}'.tar.gz\n\
curl -L ${DOWNLOAD_URL} -o ${DOWNLOAD_PATH}\n\
tar xzvf ${DOWNLOAD_PATH} -C /tmp\n\
mv /tmp/subnet-cli /usr/local/bin/subnet-cli\n\
rm -f ${DOWNLOAD_PATH}\n\
' > /root/download_subnet_cli.sh && chmod +x /root/download_subnet_cli.sh

# Execute the script
RUN /root/download_subnet_cli.sh

# Set the working directory in the container
WORKDIR /workspace

Expand Down
2 changes: 1 addition & 1 deletion aptos-pre-core
2 changes: 1 addition & 1 deletion m1/scripts/start-subnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ avalanche-network-runner control start \
--log-level debug \
--endpoint="0.0.0.0:8080" \
--avalanchego-path="${AVALANCHEGO_EXEC_PATH}"
# --blockchain-specs '[{"vm_name":"subnet","genesis":"/tmp/subnet.genesis.json","blockchain_alias":"movement"}]' \
--blockchain-specs '[{"vm_name":"subnet","genesis":"/tmp/subnet.genesis.json","blockchain_alias":"movement"}]' \

# avalanche-network-runner control create-blockchains '[{"vm_name":"movement", "subnet_id": "srEXiWaHZNDcVtfHLb38cFiwKVLJ8xnhDF5qpWbYdowxEiyid"}]' \
# --log-level debug \
Expand Down

0 comments on commit ff41066

Please sign in to comment.