From b922b2d41f127b60abf663ce694d63580c822832 Mon Sep 17 00:00:00 2001 From: kruegersp Date: Fri, 17 Apr 2020 07:10:41 -0500 Subject: [PATCH] Update config.yml --- .circleci/config.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9904666e..7ab2b864 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 \ \ \ \ \ \n ' 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/