-
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
839b7e2
commit e3724bd
Showing
1 changed file
with
24 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
arch=$(dpkg --print-architecture) | ||
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 | ||
dnf update -y | ||
dnf install ./mount-s3.rpm git pip pigz awscli -y | ||
tar -xzvf hfsubset-linux_amd64.tar.gz | ||
rm hfsubset-linux_amd64.tar.gz mount-s3.rpm | ||
mv hfsubset /usr/bin/hfsubset | ||
git clone https://github.com/CIROH-UA/ngen-datastream.git | ||
aws configure set s3.max_concurrent_requests 256 | ||
dnf update | ||
dnf -y install dnf-plugins-core | ||
dnf install docker -y | ||
systemctl start docker | ||
usermod -aG docker ec2-user | ||
newgrp docker | ||
mkdir ./docker | ||
aws s3 sync s3://ngen-datastream/docker/docker ./docker | ||
cd docker | ||
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!" | ||
|