How to run Spark Scala code ( Used intellij to develop the spark application ) in Hortonworks docker container

I am trying to run spark code in a HDP docker container , I am using Intellij to develop the Spark Scala code . Any help is much appreciated

Thanks