Skip to content

Commit

Permalink
move AWS into cloud and pip install to startup
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanLaserGit committed Feb 2, 2024
1 parent 77a6d7a commit 9628689
Show file tree
Hide file tree
Showing 18 changed files with 67 additions and 65 deletions.
29 changes: 0 additions & 29 deletions AWS/user_data.sh

This file was deleted.

29 changes: 0 additions & 29 deletions AWS/user_data.txt

This file was deleted.

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.
21 changes: 21 additions & 0 deletions cloud/AWS/startup_ec2.sh
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.
26 changes: 26 additions & 0 deletions cloud/start_up_debian.sh
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
20 changes: 20 additions & 0 deletions cloud/startup_fedora.sh
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.
7 changes: 0 additions & 7 deletions scripts/stream.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,6 @@ fi
mkdir -p $DATA_PATH
NGEN_RUN_PATH="${DATA_PATH%/}/ngen-run"

if [ -e "$DATA_PATH" ]; then
:
else
echo "$DATA_PATH doesn't not exist!"
exit 1
fi

DATASTREAM_CONF_PATH="${DATA_PATH%/}/datastream-configs"
DATASTREAM_RESOURCES="${DATA_PATH%/}/datastream-resources"
mkdir -p $DATASTREAM_CONF_PATH
Expand Down

0 comments on commit 9628689

Please sign in to comment.