Skip to content

Commit

Permalink
Update config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kruegersp authored Apr 17, 2020
1 parent 35d8003 commit b922b2d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,18 @@ jobs:
steps:
- run: git clone https://github.com/usdot-fhwa-stol/carma-cloud.git cc
- run: wget http://apache.mirrors.lucidnetworks.net/tomcat/tomcat-9/v9.0.34/bin/apache-tomcat-9.0.34.tar.gz && tar -xzf apache-tomcat-9.0.34.tar.gz && mv apache-tomcat-9.0.34 tomcat
- run: mkdir -p tomcat/webapps/carmacloud/ROOT && mv carma-cloud/web/* tomcat/webapps/carmacloud/ROOT/
- run: find ./cc/src -name "*.java" > sources.txt && mkdir -p tomcat/webapps/carmacloud/ROOT/WEB-INF/classes
- run: javac -cp tomcat/lib/servlet-api.jar:cc/lib/commons-compress-1.18.jar:cc/lib/javax.json.jar -d tomcat/webapps/carmacloud/ROOT/WEB-INF/classes @sources.txt
- run: sed -i '/<\/Engine>/ i \ \ \ \ \ <Host name="carmacloud" appBase="webapps/carmacloud" unpackWARs="false" autoDeploy="false">\n </Host>' tomcat/conf/server.xml
- run: sudo -u root ls -lrt /usr
- run: sudo -u root cat /etc/hosts
- run: echo -e '127.0.0.1\tcarmacloud' | sudo -u root tee -a /etc/hosts
- run: mv carma-cloud/lib tomcat/webapps/carmacloud/ROOT/WEB-INF/
- run: touch tomcat/webapps/carmacloud/event.csv
- run: mv carma-cloud/osmbin/rop.csv tomcat/webapps/carmacloud/
- run: mv carma-cloud/osmbin/storm.csv tomcat/webapps/carmacloud/
- run: java -cp tomcat/webapps/carmacloud/ROOT/WEB-INF/classes/:tomcat/lib/servlet-api.jar cc.ws.UserMgr ccadmin admin_testpw > tomcat/webapps/carmacloud/user.csv
- run: gunzip carma-cloud/osmbin/*.gz
- run: mv carma-cloud/osmbin tomcat/webapps/carmacloud/
- run: rm -f sources.txt && rm -rf carma-cloud
- run: echo "JAVA_HOME=/usr/local/openjdk-11" > tomcat/bin/setenv.sh
- run: sudo -u root mv tomcat /opt/

0 comments on commit b922b2d

Please sign in to comment.