Skip to content

Commit

Permalink
Correctly fix DNS issue
Browse files Browse the repository at this point in the history
  • Loading branch information
j3soon committed Dec 16, 2024
1 parent ab24055 commit 8a0f942
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 10 deletions.
6 changes: 6 additions & 0 deletions job_definitions/echo-example.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
]
}
},
"dnsConfig": {
"nameservers": [
"8.8.8.8",
"8.8.4.4"
]
},
"hostIPC": true
},
"container": "ubuntu:latest",
Expand Down
6 changes: 6 additions & 0 deletions job_definitions/isaac-lab-volume-example.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@
]
}
},
"dnsConfig": {
"nameservers": [
"8.8.8.8",
"8.8.4.4"
]
},
"hostIPC": true
},
"container": "j3soon/omni-farm-isaaclab:latest",
Expand Down
6 changes: 6 additions & 0 deletions job_definitions/isaac-sim-basic-example.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
]
}
},
"dnsConfig": {
"nameservers": [
"8.8.8.8",
"8.8.4.4"
]
},
"hostIPC": true
},
"container": "j3soon/omni-farm-isaac-sim:4.1.0",
Expand Down
6 changes: 6 additions & 0 deletions job_definitions/isaac-sim-dummy-example.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
]
}
},
"dnsConfig": {
"nameservers": [
"8.8.8.8",
"8.8.4.4"
]
},
"hostIPC": true
},
"container": "nvcr.io/nvidia/isaac-sim:4.1.0",
Expand Down
6 changes: 6 additions & 0 deletions job_definitions/isaac-sim-nucleus-example.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
]
}
},
"dnsConfig": {
"nameservers": [
"8.8.8.8",
"8.8.4.4"
]
},
"hostIPC": true
},
"container": "j3soon/omni-farm-isaac-sim:4.1.0",
Expand Down
6 changes: 6 additions & 0 deletions job_definitions/isaac-sim-volume-example.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@
]
}
},
"dnsConfig": {
"nameservers": [
"8.8.8.8",
"8.8.4.4"
]
},
"hostIPC": true
},
"container": "j3soon/omni-farm-isaac-sim:4.1.0",
Expand Down
6 changes: 6 additions & 0 deletions job_definitions/j3soon-general-volume-example-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@
]
}
},
"dnsConfig": {
"nameservers": [
"8.8.8.8",
"8.8.4.4"
]
},
"hostIPC": true
},
"container": "j3soon/omni-farm-general",
Expand Down
10 changes: 0 additions & 10 deletions scripts/docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,6 @@ ulimit -s $(ulimit -Hs)
echo "Current ulimit:"
ulimit -a

echo "Proactively set Google DNS to prevent potential internet connectivity issues..."
# Idempotently add Google DNS to /etc/resolv.conf
RESOLV_CONF="/etc/resolv.conf"
for ns in "8.8.8.8" "8.8.4.4"; do
if ! grep -q "^nameserver $ns$" "$RESOLV_CONF"; then
echo "DNS $ns not found in $RESOLV_CONF, adding..."
echo "nameserver $ns" >> "$RESOLV_CONF"
fi
done

if [ -n "$DOWNLOAD_SRC" ] || [ -n "$DOWNLOAD_DEST" ]; then
if [ -e "$DOWNLOAD_DEST" ]; then
if [ -d "$DOWNLOAD_DEST" ]; then
Expand Down

0 comments on commit 8a0f942

Please sign in to comment.