Skip to content

Commit

Permalink
fix: needs to source ~/.bashrc to access movement and avalanchego man…
Browse files Browse the repository at this point in the history
…agement should now be in movement CLI only.
  • Loading branch information
l-monninger committed Feb 1, 2024
1 parent 13287db commit af5217f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docker/testnet.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ RUN chmod +x install.sh
# Execute the script with the desired arguments
RUN ./install.sh --version ${VERSION}

RUN movement manage install m1 testnet --version ${VERSION}
RUN source ~/.bashrc && movement manage install m1 testnet --ver ${VERSION}

CMD ["/bin/bash"]
16 changes: 8 additions & 8 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@ dev_deps() {
avalanche_setup() {

# Download and install avalanche-network-runner
log_info "Setting up Avalanche."
curl -sSfL https://raw.githubusercontent.com/ava-labs/avalanche-network-runner/main/scripts/install.sh | sh -s
# log_info "Setting up Avalanche."
# curl -sSfL https://raw.githubusercontent.com/ava-labs/avalanche-network-runner/main/scripts/install.sh | sh -s

# Add avalanche-network-runner binary to PATH
echo 'export PATH="$HOME/bin:$PATH"' >> "$HOME/.bashrc"
Expand All @@ -309,15 +309,15 @@ avalanche_setup() {
if [ "$OS" == "linux" ]; then
AVALANCHEGO_RELEASE_URL="https://github.com/ava-labs/avalanchego/releases/download/$AVALANCHEGO_VERSION/avalanchego-linux-$ARCH-$AVALANCHEGO_VERSION.tar.gz"
AVALANCHEGO_ARCHIVE="avalanchego-linux-$ARCH-$AVALANCHEGO_VERSION.tar.gz"
wget "$AVALANCHEGO_RELEASE_URL" -O "$AVALANCHEGO_ARCHIVE"
mkdir -p "$AVALANCHEGO_DIR"
tar xvf "$AVALANCHEGO_ARCHIVE" -C "$AVALANCHEGO_DIR" --strip-components=1
# wget "$AVALANCHEGO_RELEASE_URL" -O "$AVALANCHEGO_ARCHIVE"
# mkdir -p "$AVALANCHEGO_DIR"
# tar xvf "$AVALANCHEGO_ARCHIVE" -C "$AVALANCHEGO_DIR" --strip-components=1
elif [ "$OS" == "macos" ]; then
AVALANCHEGO_RELEASE_URL="https://github.com/ava-labs/avalanchego/releases/download/$AVALANCHEGO_VERSION/avalanchego-macos-$AVALANCHEGO_VERSION.zip"
AVALANCHEGO_ARCHIVE="avalanchego-macos-$AVALANCHEGO_VERSION.zip"
wget "$AVALANCHEGO_RELEASE_URL" -O "$AVALANCHEGO_ARCHIVE"
mkdir -p "$AVALANCHEGO_DIR"
unzip "$AVALANCHEGO_ARCHIVE" -d "$AVALANCHEGO_DIR"
# wget "$AVALANCHEGO_RELEASE_URL" -O "$AVALANCHEGO_ARCHIVE"
# mkdir -p "$AVALANCHEGO_DIR"
# unzip "$AVALANCHEGO_ARCHIVE" -d "$AVALANCHEGO_DIR"
else
echo "Unsupported OS: $OS"
exit 1
Expand Down

0 comments on commit af5217f

Please sign in to comment.