Skip to content

Commit

Permalink
updated registry location
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkamprath committed Sep 12, 2019
1 parent 0179b01 commit 34dd5fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions spark-on-docker-swarm/build-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ docker build -t configured-spark-node:latest ./configured-spark-node
docker build -t spark-jupyter-notebook:latest ./spark-jupyter-notebook

# tag image with local repository
docker tag configured-spark-node:latest 10.1.1.1:5000/configured-spark-node:latest
docker tag spark-jupyter-notebook:latest 10.1.1.1:5000/spark-jupyter-notebook:latest
docker tag configured-spark-node:latest master:5000/configured-spark-node:latest
docker tag spark-jupyter-notebook:latest master:5000/spark-jupyter-notebook:latest

# push the images to local repository
docker push 10.1.1.1:5000/configured-spark-node:latest
docker push 10.1.1.1:5000/spark-jupyter-notebook:latest
docker push master:5000/configured-spark-node:latest
docker push master:5000/spark-jupyter-notebook:latest
6 changes: 3 additions & 3 deletions spark-on-docker-swarm/deploy-spark-swarm.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'
services:
spark-master:
image: 10.1.1.1:5000/configured-spark-node:latest
image: master:5000/configured-spark-node:latest
command: bin/spark-class org.apache.spark.deploy.master.Master -h spark-master
hostname: spark-master
environment:
Expand Down Expand Up @@ -29,7 +29,7 @@ services:
memory: 8G

spark-worker:
image: 10.1.1.1:5000/configured-spark-node:latest
image: master:5000/configured-spark-node:latest
command: bin/spark-class org.apache.spark.deploy.worker.Worker spark://spark-master:7077
hostname: spark-worker-1
environment:
Expand All @@ -56,7 +56,7 @@ services:
memory: 52g

spark-jupyter:
image: 10.1.1.1:5000/spark-jupyter-notebook:latest
image: master:5000/spark-jupyter-notebook:latest
hostname: spark-jupyter
environment:
PARK_PUBLIC_DNS: 10.1.1.1
Expand Down

0 comments on commit 34dd5fb

Please sign in to comment.