Skip to content

Commit

Permalink
modified: configuration/arm64/docker-compose.yml
Browse files Browse the repository at this point in the history
	modified:   configuration/arm64/initialization.sh
	modified:   configuration/arm64/mysql/add_v2xhub_user.bash
  • Loading branch information
jwillmartin committed Mar 20, 2024
1 parent 9c2ffb0 commit d9c29df
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
17 changes: 8 additions & 9 deletions configuration/arm64/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.7'

services:
db:
image: mariadb:10.4
Expand All @@ -16,14 +14,15 @@ services:
- mysql_root_password
volumes:
- ./mysql/localhost.sql:/docker-entrypoint-initdb.d/localhost.sql
- ./mysql/port_drayage.sql:/docker-entrypoint-initdb.d/port_drayage.sql
# - ./mysql/port_drayage.sql:/docker-entrypoint-initdb.d/port_drayage.sql
- mysql-datavolume:/var/lib/mysql

php:
image: usdotfhwaops/php_arm:latest
container_name: php
network_mode: host
depends_on:
restart: always
depends_on:
- db
- v2xhub
stdin_open: true
Expand All @@ -34,7 +33,7 @@ services:
container_name: v2xhub
network_mode: host
restart: always
depends_on:
depends_on:
- db
environment:
- MYSQL_PASSWORD=/run/secrets/mysql_password
Expand All @@ -43,10 +42,10 @@ services:
volumes:
- ./logs:/var/log/tmx
- ./MAP:/var/www/plugins/MAP
port_drayage_webservice:
image: usdotfhwaops/port-drayage-webservice_arm:latest
container_name: port_drayage_webservice
network_mode: host
# port_drayage_webservice:
# image: usdotfhwaops/port-drayage-webservice_arm:latest
# container_name: port_drayage_webservice
# network_mode: host
secrets:
mysql_password:
file: ./secrets/mysql_password.txt
Expand Down
7 changes: 1 addition & 6 deletions configuration/arm64/initialization.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ sudo apt update -y && sudo apt upgrade -y
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 -p secrets && cd secrets

Expand Down Expand Up @@ -45,10 +42,8 @@ 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
sudo docker compose up -d

#create v2xhub user
cd $mysqlDir
Expand Down
2 changes: 1 addition & 1 deletion configuration/arm64/mysql/add_v2xhub_user.bash
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ arch=$(dpkg --print-architecture)
if [ $arch = "amd64" ]; then
REQUIRED_PKG="mysql-client"
else
REQUIRED_PKG="mariadb-client-10.5"
REQUIRED_PKG="mariadb-client"
fi
PKG_OK=$(dpkg-query -W --showformat='${Status}\n' $REQUIRED_PKG|grep "install ok installed")
echo Checking for $REQUIRED_PKG: $PKG_OK
Expand Down

0 comments on commit d9c29df

Please sign in to comment.