-
Notifications
You must be signed in to change notification settings - Fork 67
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 2 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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
version: '3.7' | ||
|
||
services: | ||
db: | ||
image: mariadb:10.4 | ||
|
@@ -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 | ||
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. Is the idea here that we do not want to default to having port drayage functionality on? 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. @paulbourelly999 Yeah. It's not used by anybody at the moment. It'll be better to have it commented out unless somebody will use it. 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. Leave a comment indicating how to get port drayage functionality back and/or to come up with a more elegant solution to not including port drayage by default. 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. Added comments with instructions 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. All, I think we need to leave the port_drayage as is. The expectation is that whatever was deployed in the past should be backwards compatible or scenarios would continue to work as is, unless we notify the client we're removing this feature or retiring it. 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. Changed back |
||
|
||
php: | ||
image: usdotfhwaops/php_arm:latest | ||
container_name: php | ||
network_mode: host | ||
depends_on: | ||
restart: always | ||
depends_on: | ||
- db | ||
- v2xhub | ||
stdin_open: true | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
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 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 | ||
mkdir -p secrets && cd secrets | ||
|
||
|
@@ -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 | ||
|
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.
@jwillmartin Why are we removing this version
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.
@paulbourelly999 It was throwing a compatibility warning when running docker compose. I read through their documentation and the versioning is optional/doesn't do anything.
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.
Add this back