-
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.
move AWS into cloud and pip install to startup
- Loading branch information
1 parent
77a6d7a
commit 9628689
Showing
18 changed files
with
67 additions
and
65 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
sudo dnf update -y | ||
sudo dnf install git pip pigz awscli -y | ||
curl -L -O https://github.com/LynkerIntel/hfsubset/releases/download/hfsubset-release-12/hfsubset-linux_amd64.tar.gz | ||
tar -xzvf 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 $PACAKGE_DIR/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} | ||
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" | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
sudo apt update -y | ||
sudo apt-get update -y | ||
sudo apt install git pigz awscli -y | ||
git clone https://github.com/CIROH-UA/ngen-datastream.git | ||
curl -L -O https://github.com/LynkerIntel/hfsubset/releases/download/hfsubset-release-12/hfsubset-linux_amd64.tar.gz | ||
tar -xzvf hfsubset-linux_amd64.tar.gz | ||
sudo mv hfsubset /usr/bin/hfsubset | ||
aws configure | ||
mkdir docker | ||
aws s3 sync s3://ngen-datastream/docker/docker ~/docker | ||
sudo apt-get update -y | ||
sudo apt-get install ca-certificates curl gnupg -y | ||
sudo install -m 0755 -d /etc/apt/keyrings -y | ||
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | ||
sudo chmod a+r /etc/apt/keyrings/docker.gpg | ||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | ||
sudo apt-get update | ||
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin | ||
sudo usermod -aG docker ${USER} | ||
|
||
echo "log out and back in" | ||
|
||
#!/bin/bash | ||
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 |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
sudo dnf update -y | ||
sudo dnf install git pip pigz awscli -y | ||
curl -L -O https://github.com/LynkerIntel/hfsubset/releases/download/hfsubset-release-12/hfsubset-linux_amd64.tar.gz | ||
tar -xzvf hfsubset-linux_amd64.tar.gz | ||
mv hfsubset /usr/bin/hfsubset | ||
git clone https://github.com/CIROH-UA/ngen-datastream.git | ||
aws configure | ||
aws configure set s3.max_concurrent_requests 256 | ||
mkdir docker | ||
aws s3 sync s3://ngen-datastream/docker/docker ~/docker | ||
sudo dnf update -y | ||
sudo dnf -y install dnf-plugins-core | ||
sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo | ||
sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y | ||
sudo systemctl start docker | ||
sudo usermod -aG docker ${USER} | ||
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" | ||
|
File renamed without changes.
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