Skip to content

Commit

Permalink
incorporate martin feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoVillar committed Aug 16, 2023
1 parent 325c041 commit 5257cac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ ENV AVALANCHEGO_PLUGIN_PATH=$GOPATH/src/github.com/ava-labs/avalanchego/build/pl
# Download AvalancheGo Binary
WORKDIR /
COPY ./scripts/versions.sh /
COPY ./.devcontainer/install.sh /
COPY ./.devcontainer/install_avalanchego.sh /

ENV AVALANCHEGO_EXEC_PATH=/avalanchego

RUN bash -c "source ./install.sh"
RUN bash -c "source ./install_avalanchego.sh"

# Install Node.js and npm using the official Node.js image
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/bash
# Pulls latest pre-built node binary from GitHub
# Context of container, NOT local workspace

#stop on errors
set -e
Expand Down Expand Up @@ -60,6 +59,7 @@ else
exit
fi

# Define architecture
foundArch="$(uname -m)"

if [ "$foundArch" = "aarch64" ]; then
Expand All @@ -80,14 +80,8 @@ fi

# Import environment variables
source ./versions.sh
echo $AVALANCHEGO_VERSION
echo $getArch
echo "PRINTED AGO VERSION!"

# Download AvalancheGo binary
echo "https://github.com/ava-labs/avalanchego/releases/download/$AVALANCHEGO_VERSION/avalanchego-linux-$getArch-$AVALANCHEGO_VERSION.tar.gz"
curl -LJ -o avalanchego.tar.gz "https://github.com/ava-labs/avalanchego/releases/download/$AVALANCHEGO_VERSION/avalanchego-linux-$getArch-$AVALANCHEGO_VERSION.tar.gz"
echo "DOWNLOADED TAR FILE"
tar -xzf avalanchego.tar.gz --wildcards '*/avalanchego' --strip-components=1 -C /avalanchego
echo "TARRED THE FILE!"
rm avalanchego.tar.gz

0 comments on commit 5257cac

Please sign in to comment.