-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modified: configuration/arm64/docker-compose.yml #585
Changes from all commits
d9c29df
49a43ad
b4f7638
12d665a
a30e860
607b719
e10ea50
d7a8bc7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,28 +2,24 @@ | |
directory=$(pwd) | ||
mysqlDir="$directory/mysql" | ||
|
||
# update and upgrade commands to update linux OS | ||
# 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 necessary and useful apps | ||
sudo apt-get install chromium-browser -y | ||
|
||
#install docker | ||
curl -L https://raw.githubusercontent.com/usdot-fhwa-stol/carma-platform/develop/engineering_tools/install-docker.sh | bash | ||
|
||
#make passwords for mysql | ||
# Make passwords for mysql | ||
mkdir -p secrets && cd secrets | ||
|
||
#creates password files where user inputs password | ||
# Creates password files where user inputs password | ||
FILE1=mysql_root_password.txt | ||
FILE2=mysql_password.txt | ||
if test -f "$FILE1"; then | ||
echo "$FILE1 exists." | ||
else | ||
read -p "enter password for the mysql_root_password: " sql_root_pass | ||
echo "$sql_root_pass" > sql_root_pass.txt | ||
#remove endline characters from password files | ||
# Remove endline characters from password files | ||
tr -d '\n' <sql_root_pass.txt> mysql_root_password.txt && rm sql_root_pass.txt | ||
fi | ||
|
||
|
@@ -32,24 +28,30 @@ if test -f "$FILE2"; then | |
else | ||
read -p "enter password for mysql_password: " sql_pass | ||
echo "$sql_pass" > sql_pass.txt | ||
#remove endline characters from password files | ||
# Remove endline characters from password files | ||
tr -d '\n' <sql_pass.txt> mysql_password.txt && rm sql_pass.txt | ||
fi | ||
|
||
#AMD64 initialzation | ||
# AMD64 initialization | ||
cd $directory | ||
sudo apt-get -y remove docker docker-engine docker.io containerd runc | ||
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 -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 | ||
for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done | ||
# Add Docker's official GPG key: | ||
sudo apt-get update | ||
sudo apt-get install ca-certificates curl | ||
sudo install -m 0755 -d /etc/apt/keyrings | ||
sudo curl -fsSL https://download.docker.com/linux/$(. /etc/os-release && echo "$ID")/gpg -o /etc/apt/keyrings/docker.asc | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add curl back so this script does not fail for people without curl installed. |
||
sudo chmod a+r /etc/apt/keyrings/docker.asc | ||
|
||
# Add the repository to Apt sources: | ||
echo \ | ||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/$(. /etc/os-release && echo "$ID") \ | ||
$(. /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 -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin | ||
sudo docker compose up -d | ||
|
||
# Create V2X Hub user | ||
cd $mysqlDir | ||
./add_v2xhub_user.bash | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,28 +2,24 @@ | |
directory=$(pwd) | ||
mysqlDir="$directory/mysql" | ||
|
||
# update and upgrade commands to update linux OS | ||
# 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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add curl back. See comments above. |
||
# Install necessary and useful apps | ||
sudo apt-get install chromium-browser -y | ||
|
||
#install docker | ||
curl -L https://raw.githubusercontent.com/usdot-fhwa-stol/carma-platform/develop/engineering_tools/install-docker.sh | bash | ||
paulbourelly999 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
#make passwords for mysql | ||
# Make passwords for mysql | ||
mkdir -p secrets && cd secrets | ||
|
||
#creates password files where user inputs password | ||
# Creates password files where user inputs password | ||
FILE1=mysql_root_password.txt | ||
FILE2=mysql_password.txt | ||
if test -f "$FILE1"; then | ||
echo "$FILE1 exists." | ||
else | ||
read -p "enter password for the mysql_root_password: " sql_root_pass | ||
echo "$sql_root_pass" > sql_root_pass.txt | ||
#remove endline characters from password files | ||
# Remove endline characters from password files | ||
tr -d '\n' <sql_root_pass.txt> mysql_root_password.txt && rm sql_root_pass.txt | ||
fi | ||
|
||
|
@@ -32,25 +28,30 @@ if test -f "$FILE2"; then | |
else | ||
read -p "enter password for mysql_password: " sql_pass | ||
echo "$sql_pass" > sql_pass.txt | ||
#remove endline characters from password files | ||
# Remove endline characters from password files | ||
tr -d '\n' <sql_pass.txt> mysql_password.txt && rm sql_pass.txt | ||
fi | ||
|
||
#ARM initialization | ||
# ARM64 initialization | ||
cd $directory | ||
sudo apt-get -y remove docker docker-engine docker.io containerd runc | ||
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 -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 | ||
for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Was getting warnings about gpg key deprecation. Updated and tested using Docker's official Debian installation steps |
||
# Add Docker's official GPG key: | ||
sudo apt-get update | ||
sudo apt-get install ca-certificates curl | ||
sudo install -m 0755 -d /etc/apt/keyrings | ||
sudo curl -fsSL https://download.docker.com/linux/$(. /etc/os-release && echo "$ID")/gpg -o /etc/apt/keyrings/docker.asc | ||
sudo chmod a+r /etc/apt/keyrings/docker.asc | ||
|
||
# Add the repository to Apt sources: | ||
echo \ | ||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/$(. /etc/os-release && echo "$ID") \ | ||
$(. /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 -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin | ||
sudo docker compose up -d | ||
|
||
# Create V2X Hub user | ||
cd $mysqlDir | ||
./add_v2xhub_user.bash | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why as curl removed. Is it not used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be added back. It is still used