Building & Running SDC Simulator natively in OSX
If you are following Building and running SDC using Docker for OSX, then you would probably be wondering that, running SDC simulator in docker doesn't help much for your setup. That's because, docker for mac is following Apple's sandboxing guidelines and certain system folders like /etc or any custom folder in / path, for example /data cannot be mounted to containers.
This guide would help you run SDC simulator in native mode with Tomcat local installation and help you access SDC running in your local machine.
Install Tomcat & start it
wget http://www-eu.apache.org/dist/tomcat/tomcat-8/v8.5.32/bin/apache-tomcat-8.5.32.tar.gz
tar xvzf apache-tomcat-8.5.32.tar.gz
cd apache-tomcat-8.5.32
export CATALINA_HOME=`pwd`
cp -r webapps\ROOT \tmp\ROOT-back # This will be replaced.
bin\startup.sh
Port conflict with 8080
SDC Swagger would be running in port 8080 incase if you run both SDC and simulator in same machine. Hence goto conf/server.xml and change the tomcat port to 9000
Deploy Webseal Simulator WAR
# path to webseal simulator
mvn clean install
cd target
cp WSSimulator-1.3.0-SNAPSHOT.war /path/to/tomcat/webapps/ROOT.war
Tomcat ROOT.war replacement alert
Replacing ROOT.war is necessary because sdcproxy will try to redirect the URL to "/sdc1" . Hence it is necessary that this simulator is placed in / path.
That's it. Now just point to http://localhost:9000/login and proceed with any predefined user or create new users in `webseal.conf`