The code is already wrapped in the Docker Image. If you already have Docker installed on your computer, follow the steps below to download the Docker Image and build your own Container to run this code.
-
pull image from docker hub
docker pull shayan113/yelp
-
check the image and get ImageID
docker images
-
build a container from image,
docker run -it ImageID /bin/bash
-
in container environment, change working directory to yelp folder
cd yelp/
-
two files are stored in
yelp/
.py
file is source code,.csv
file is data run commandpython3.5 Untitled-Copy1.py
to processing data. -
after running, stop container
docker stop container_ID
-
before next running of container, start container first
docker start container_ID
thendocker exec -it container_ID /bin/bash