If you are running ConnectedVCS Tools locally, you can use the following instructions:
NOTE: Bing Maps is now deprecated and new users are no longer allowed to create API keys. We will be migrating to a different map provider and updating this documentation soon.
ConnectedVCS Tools has been developed using Ubuntu 20.04 and Ubuntu 22.04. Further testing with other operating systems is needed before guidance is created. For the moment, please use Ubuntu 20.04 or later Ubuntu LTS Release.
- Install JDK (openjdk-8-jdk).
sudo apt-get install -y openjdk-8-jdk
- Install Maven (3.6.3).
sudo apt-get install -y maven
- Install gettext-base
sudo apt-get install -y gettext-base
- Clone the ConnectedVCS Tools respository:
git clone https://github.com/usdot-fhwa-stol/connectedvcs-tools.git
- Set up LD_LIBRARY_PATH by running:
echo export LD_LIBRARY_PATH="[path_to_connectedvcs-tools]/fedgov-cv-lib-asn1c/third_party_lib" >> ~/.bashrc
- NOTE: Change the above path to point to the correct third_party_lib path.
- If using SSL certificates:
export SECURITY_CONSTRAINT="<security-constraint><web-resource-collection><web-resource-name>Everything</web-resource-name><url-pattern>/*</url-pattern></web-resource-collection><user-data-constraint><transport-guarantee>CONFIDENTIAL</transport-guarantee></user-data-constraint></security-constraint>";
- If not using SSL:
export SECURITY_CONSTRAINT="";
envsubst '$SECURITY_CONSTRAINT' < root/WEB-INF/web.xml > /tmp/web.xml.tmp && \
mv /tmp/web.xml.tmp root/WEB-INF/web.xml && \
envsubst '$SECURITY_CONSTRAINT' < fedgov-cv-TIMcreator-webapp/src/main/webapp/WEB-INF/web.xml > /tmp/web.xml.tmp && \
mv /tmp/web.xml.tmp fedgov-cv-TIMcreator-webapp/src/main/webapp/WEB-INF/web.xml && \
envsubst '$SECURITY_CONSTRAINT' < fedgov-cv-ISDcreator-webapp/src/main/webapp/WEB-INF/web.xml > /tmp/web.xml.tmp && \
mv /tmp/web.xml.tmp fedgov-cv-ISDcreator-webapp/src/main/webapp/WEB-INF/web.xml
-
To generate API keys required for the MAP Tool, first create user accounts with Google Maps Platform, Esri ArcGIS Location Platform, Azure Maps Platform.
-
Generate new API Keys for Google Maps, Esri, and Azure. Use the Google Maps Platform, Esri ArcGIS Location Platform, Azure Maps Platform.
- Please read the Google Maps API Key Guidance.
- Please read the Esri Maps API Key Guidance
- Please read the Azure Maps API Key Guidance
- Please read the S3 Bucket Configuration.
-
Enter your keys into the application.properties file (within "google.map.api.key", "azure.map.api.key", and "esri.map.api.key").
-
Run:
sudo ./build.sh
- Locate
root.war,private-resources.war,isd.war, andtim.warinconnectedvcs-tools/,connectedvcs-tools/fedgov-cv-ISDcreator-webapp/targetandconnectedvcs-tools/fedgov-cv-TIMcreator-webapp/targetrespectively. - Deploy as servlets in conjunction with Apache Tomcat.