Created on 06-28-201610:19 PM - edited 08-17-201911:51 AM
How to get a docker image up and running which encapulates a PyCharm IDE integrated with spark and pybuilder. The IDE reside on the docker container and will be display on your laptop/machine. This is to isolate your development enviorment with has spark integrated with spark.
Why? I am a spark developer and spend significant time trying to build a integrated environment. I am spending way too much time on integration before doing what I get paid to do --- Develop! Creating a isolated environment which is integrated with spark and a CIT, easily spun up and down, and repeatable is something which would accelerate my efficiency.
To run docker containers or build images a docker machine is required. Download docker machine from here.
Download xQuartz to display the IDE on your laptop.
View my docker page for information on the docker image here.
Clone my PyCharm github repo. You are doing this bootstrap code sample code I have built to your docker container during launch. For example I performed git clone in my /Users/smanjee/docktest
replace ~/docktest/pycharm/PycharmProjects with your path to pycharm which you downloaded from my github repo
Replace ~/docktest/pycharm/.Pycharm40 with your path to pycharm which you downloaded from my github repo
Click on I do not have previous versions
Click on OK
Click on OPEN to open the project you mounted to the docker container
Find the PyCharm project to open
Now the project has been imported
So you have the project imported into your IDE which is running within the docker container. To prove the IDE is connected/integrated with spark simply run the python file and you will see spark modules have been imported