-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker_commands.sh
21 lines (21 loc) · 1.03 KB
/
docker_commands.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
#
# ################################################################################
# ## Copyright (C) Gaurav Dass - All Rights Reserved
# ## Unauthorized copying of this file, via any medium is strictly prohibited
# ## Proprietary and confidential
# ## Written by Gaurav Dass <[email protected]>, January 2020
#
# ################################################################################
#
docker cp crelib/spark_version_dont_use_yet.py $CONTAINER_ID:/tmp
docker cp crelib.zip $CONTAINER_ID:/tmp
docker cp lspm_deps.zip $CONTAINER_ID:/tmp
docker cp crelib/ $CONTAINER_ID:/tmp
docker cp test_data.txt $CONTAINER_ID:/tmp
docker exec $CONTAINER_ID bin/spark-submit --master spark://master:7077 --class endpoint --py-files /tmp/crelib.zip /tmp/crelib/spark_version_dont_use_yet.py
docker exec $CONTAINER_ID bin/spark-submit --master spark://master:7077 --class endpoint /tmp/crelib/spark_setup.py
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker build -t name_of_image .
service docker restart