-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e00058
commit 0ad5a65
Showing
4 changed files
with
84 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,27 @@ | ||
#!/bin/bash | ||
arch=$(dpkg --print-architecture) | ||
if [ "$arch" == "amd64" ]; then | ||
curl -L -O https://github.com/LynkerIntel/hfsubset/releases/download/hfsubset-release-12/hfsubset-linux_amd64.tar.gz | ||
curl -L -O https://s3.amazonaws.com/mountpoint-s3-release/latest/x86_64/mount-s3.rpm | ||
else | ||
echo "no release for hfsubset on arm64" | ||
curl -L -O https://s3.amazonaws.com/mountpoint-s3-release/latest/arm64/mount-s3.rpm | ||
fi | ||
echo "Arch: "$arch | ||
curl -L -O https://github.com/LynkerIntel/hfsubset/releases/download/hfsubset-release-12/hfsubset-linux_amd64.tar.gz | ||
curl -L -O https://s3.amazonaws.com/mountpoint-s3-release/latest/x86_64/mount-s3.rpm | ||
sudo dnf update -y | ||
sudo dnf install git pip pigz awscli -y | ||
tar -xzvf hfsubset-linux_amd64.tar.gz | ||
rm hfsubset-linux_amd64.tar.gz | ||
sudo mv hfsubset /usr/bin/hfsubset | ||
git clone https://github.com/CIROH-UA/ngen-datastream.git | ||
python3 -m pip install --upgrade pip | ||
pip3 install -r /home/ec2-user/ngen-datastream/python/requirements.txt --no-cache | ||
# python3 -m pip install --upgrade pip | ||
# pip3 install -r /home/ec2-user/ngen-datastream/python/requirements.txt --no-cache | ||
aws configure | ||
aws configure set s3.max_concurrent_requests 256 | ||
mkdir docker | ||
aws s3 sync s3://ngen-datastream/docker/docker ~/docker | ||
sudo dnf update | ||
sudo dnf -y install dnf-plugins-core | ||
sudo dnf install docker -y | ||
sudo systemctl start docker | ||
sudo usermod -aG docker ${USER} | ||
mkdir -p /home/ec2-user/ngen-datastream/data/mount | ||
sudo yum install -y ./mount-s3.rpm | ||
|
||
echo "cd docker && sudo docker build -t awiciroh/ngen-deps:latest -f Dockerfile.ngen-deps --no-cache . && docker build -t awiciroh/t-route:latest -f Dockerfile.t-route . --no-cache && docker build -t awiciroh/ngen -f Dockerfile.ngen . --no-cache && docker build -t awiciroh/ciroh-ngen-image:latest-local -f Dockerfile . --no-cache" | ||
echo "copy that ^^ and log out of session, log back in and run that command" | ||
sudo usermod -aG docker ec2-user | ||
sudo newgrp docker | ||
mkdir docker | ||
aws s3 sync s3://ngen-datastream/docker/docker ~/docker | ||
cd docker | ||
sudo docker build -t awiciroh/ngen-deps:latest -f Dockerfile.ngen-deps --no-cache . && docker build -t awiciroh/t-route:latest -f Dockerfile.t-route . --no-cache && docker build -t awiciroh/ngen -f Dockerfile.ngen . --no-cache && docker build -t awiciroh/ciroh-ngen-image:latest-local -f Dockerfile . --no-cache | ||
echo "done!" | ||
|