Skip to content

Commit

Permalink
[CE-470] Fix NFS port mapping
Browse files Browse the repository at this point in the history
Currently, the nfs uses a local host network, which is too broad.

We change it to port mapping.

Change-Id: Ibc52db5575e3e6c76c10cf6c0728097c6475f99a
Signed-off-by: Baohua Yang <[email protected]>
  • Loading branch information
yeasy committed Sep 10, 2018
1 parent 987d36c commit 7a7772f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docker-compose-files/docker-compose-nfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ services:
restart: unless-stopped
environment:
- SHARED_DIRECTORY=/cello
- SYNC=true
ports:
- 2049:2049
volumes:
- $ROOT_PATH/src/agent/docker/_compose_files:/cello
privileged: true
network_mode: host
2 changes: 1 addition & 1 deletion scripts/worker_node/setup_worker_node_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ else
}
fi

MASTER_NODE ?= "127.0.0.1"
MASTER_NODE=${MASTER_NODE:-"127.0.0.1"}

echo_b "Make sure docker and docker-compose are installed"
command -v docker >/dev/null 2>&1 || { echo_r >&2 "No docker-engine found, try installing"; curl -sSL https://get.docker.com/ | sh; sudo dockerd -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock --api-cors-header='*' --default-ulimit=nofile=8192:16384 --default-ulimit=nproc=8192:16384 -D & }
Expand Down

0 comments on commit 7a7772f

Please sign in to comment.