Skip to content

Commit

Permalink
Merge pull request #633 from google:rwitten_setup_streamlined
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 629566244
  • Loading branch information
maxtext authors committed Apr 30, 2024
2 parents 92f3abf + d9ccd1e commit 8f132d6
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,13 @@
# Enable "exit immediately if any command fails" option
set -e
export DEBIAN_FRONTEND=noninteractive
export NEEDRESTART_SUSPEND=1
export NEEDRESTART_MODE=l


(sudo bash || bash) <<'EOF'
apt update && \
apt install -y numactl && \
apt install -y lsb-release && \
apt install -y gnupg && \
apt install -y curl && \
apt install -y net-tools && \
apt install -y iproute2 && \
apt install -y procps && \
apt install -y lsof && \
apt install -y git && \
apt install -y ethtool
apt install -y numactl lsb-release gnupg curl net-tools iproute2 procps lsof git ethtool && \
export GCSFUSE_REPO=gcsfuse-`lsb_release -c -s`
echo "deb https://packages.cloud.google.com/apt $GCSFUSE_REPO main" | tee /etc/apt/sources.list.d/gcsfuse.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
Expand Down Expand Up @@ -199,4 +193,4 @@ if [[ "$MODE" == "pinned" ]]; then
else
pip3 install -U -r requirements.txt
fi
[ -d ".git" ] && pre-commit install
[ -d ".git" ] && pre-commit install

0 comments on commit 8f132d6

Please sign in to comment.