-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ifm-snmpv3-upgrade' of https://github.com/usdot-fhwa-OP…
…S/V2X-Hub into ifm-snmpv3-upgrade Adding SNMP changes on top of the latest branch update
- Loading branch information
Showing
47 changed files
with
666 additions
and
73 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 |
---|---|---|
|
@@ -14,3 +14,5 @@ | |
Dockerfile | ||
docker-compose.yml | ||
*.md | ||
**/build | ||
|
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,12 +1,45 @@ | ||
#!/bin/bash | ||
|
||
# update and upgrade commands to update linux OS | ||
sudo apt update -y && sudo apt upgrade -y | ||
|
||
#installing necessary and useful apps | ||
sudo apt-get install chromium-browser -y #Chrome required for CARMA platform/V2X Hub UI(?) | ||
sudo apt install curl -y #Curl for downloading files over internet | ||
|
||
#install docker | ||
curl -L https://raw.githubusercontent.com/usdot-fhwa-stol/carma-platform/develop/engineering_tools/install-docker.sh | bash | ||
|
||
#make passwords for mysql | ||
mkdir secrets && cd secrets | ||
|
||
#creates password files where user inputs password | ||
read -p "enter password for the mysql_root_password: " sql_root_pass | ||
echo "$sql_root_pass" > sql_root_pass.txt | ||
|
||
read -p "enter password for mysql_password: " sql_pass | ||
echo "$sql_pass" > sql_pass.txt | ||
|
||
#remove endline characters from password files | ||
tr -d '\n' <sql_root_pass.txt> mysql_root_password.txt && tr -d '\n' <sql_pass.txt> mysql_password.txt | ||
rm sql_root_pass.txt && rm sql_pass.txt | ||
|
||
#AMD64 initialzation | ||
cd .. | ||
sudo apt-get -y remove docker docker-engine docker.io containerd runc | ||
sudo apt-get update | ||
sudo apt-get -y install apt-transport-https ca-certificates curl gnupg-agent software-properties-common | ||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | ||
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | ||
sudo apt-get update | ||
sudo apt-get -y install docker-ce docker-ce-cli containerd.io | ||
sudo apt -y install python3-pip | ||
sudo pip3 install docker-compose | ||
sudo docker-compose pull | ||
sudo apt update -y && sudo apt upgrade -y | ||
sudo docker-compose up -d | ||
|
||
#create v2xhub user | ||
cd mysql | ||
./add_v2xhub_user.bash | ||
|
||
chromium-browser "https://127.0.0.1" > /dev/null 2>&1 & | ||
chromium-browser "https://127.0.0.1:19760" > /dev/null 2>&1 & |
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,13 +1,45 @@ | ||
#!/bin/bash | ||
# update and upgrade commands to update linux OS | ||
sudo apt update -y && sudo apt upgrade -y | ||
|
||
#installing necessary and useful apps | ||
sudo apt-get install chromium-browser -y #Chrome required for CARMA platform/V2X Hub UI(?) | ||
sudo apt install curl -y #Curl for downloading files over internet | ||
|
||
#install docker | ||
curl -L https://raw.githubusercontent.com/usdot-fhwa-stol/carma-platform/develop/engineering_tools/install-docker.sh | bash | ||
|
||
#make passwords for mysql | ||
mkdir secrets && cd secrets | ||
|
||
#creates password files where user inputs password | ||
read -p "enter password for the mysql_root_password: " sql_root_pass | ||
echo "$sql_root_pass" > sql_root_pass.txt | ||
|
||
read -p "enter password for mysql_password: " sql_pass | ||
echo "$sql_pass" > sql_pass.txt | ||
|
||
#remove endline characters from password files | ||
tr -d '\n' <sql_root_pass.txt> mysql_root_password.txt && tr -d '\n' <sql_pass.txt> mysql_password.txt | ||
rm sql_root_pass.txt && rm sql_pass.txt | ||
|
||
#ARM initialization | ||
cd .. | ||
sudo apt-get -y remove docker docker-engine docker.io containerd runc | ||
sudo apt-get update | ||
sudo apt-get -y install apt-transport-https ca-certificates curl gnupg-agent software-properties-common | ||
OS=$(lsb_release -i | awk 'FS=":" {print $3;}' | awk '{print tolower($0)}') | ||
arch=$(dpkg --print-architecture) | ||
curl -fsSL https://download.docker.com/linux/$OS/gpg | sudo apt-key add - | ||
sudo add-apt-repository "deb [arch=$arch] https://download.docker.com/linux/$OS $(lsb_release -cs) stable" | ||
sudo apt-get update | ||
sudo apt-get -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin | ||
sudo apt -y install python3-pip | ||
sudo pip3 install docker-compose | ||
sudo apt update -y && sudo apt upgrade -y | ||
sudo docker-compose up -d | ||
|
||
#create v2xhub user | ||
cd mysql | ||
./add_v2xhub_user.bash | ||
|
||
chromium-browser "https://127.0.0.1" > /dev/null 2>&1 & | ||
chromium-browser "https://127.0.0.1:19760" > /dev/null 2>&1 & |
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
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
Oops, something went wrong.