Skip to content

Commit

Permalink
Add chmod +x in Dockerfile
Browse files Browse the repository at this point in the history
This is a better way to prevent users from accidentally removing the executable permission
  • Loading branch information
j3soon committed Nov 21, 2024
1 parent 8b81666 commit d2a140e
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 6 deletions.
4 changes: 4 additions & 0 deletions Dockerfile_general
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
FROM nvcr.io/nvidia/pytorch:23.12-py3

# Tools and scripts for Omniverse Farm
COPY thirdparty/omnicli /omnicli
COPY scripts/docker/run.sh /run.sh

# Prevent users from accidentally removing the executable permission.
RUN chmod +x /omnicli/omnicli && chmod +x /run.sh
3 changes: 3 additions & 0 deletions Dockerfile_isaac_lab_1_1_0
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,6 @@ RUN apt-get update \
# Tools and scripts for Omniverse Farm
COPY thirdparty/omnicli /omnicli
COPY scripts/docker/run.sh /run.sh

# Prevent users from accidentally removing the executable permission.
RUN chmod +x /omnicli/omnicli && chmod +x /run.sh
5 changes: 5 additions & 0 deletions Dockerfile_isaac_sim_2023_1_1
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
FROM nvcr.io/nvidia/isaac-sim:2023.1.1

# Tools and scripts for Omniverse Farm
COPY thirdparty/omnicli /omnicli
COPY scripts/docker/run.sh /run.sh

# Prevent users from accidentally removing the executable permission.
RUN chmod +x /omnicli/omnicli && chmod +x /run.sh
5 changes: 5 additions & 0 deletions Dockerfile_isaac_sim_4_0_0
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
FROM nvcr.io/nvidia/isaac-sim:4.0.0

# Tools and scripts for Omniverse Farm
COPY thirdparty/omnicli /omnicli
COPY scripts/docker/run.sh /run.sh

# Prevent users from accidentally removing the executable permission.
RUN chmod +x /omnicli/omnicli && chmod +x /run.sh
5 changes: 5 additions & 0 deletions Dockerfile_isaac_sim_4_1_0
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
FROM nvcr.io/nvidia/isaac-sim:4.1.0

# Tools and scripts for Omniverse Farm
COPY thirdparty/omnicli /omnicli
COPY scripts/docker/run.sh /run.sh

# Prevent users from accidentally removing the executable permission.
RUN chmod +x /omnicli/omnicli && chmod +x /run.sh
5 changes: 5 additions & 0 deletions Dockerfile_isaac_sim_4_2_0
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
FROM nvcr.io/nvidia/isaac-sim:4.2.0

# Tools and scripts for Omniverse Farm
COPY thirdparty/omnicli /omnicli
COPY scripts/docker/run.sh /run.sh

# Prevent users from accidentally removing the executable permission.
RUN chmod +x /omnicli/omnicli && chmod +x /run.sh
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ Then, submit the job:

```sh
scripts/submit_task.sh isaac-sim-basic-example \
"bash /run.sh \
"/run.sh \
--download-src 'omniverse://$NUCLEUS_HOSTNAME/Projects/$FARM_USER/Isaac/4.1/Scripts/isaac-sim-simulation-example.py' \
--download-dest '/src/isaac-sim-simulation-example.py' \
--upload-src '/results/isaac-sim-simulation-example.txt' \
Expand Down Expand Up @@ -276,7 +276,7 @@ Then, submit the job:

```sh
scripts/submit_task.sh isaac-sim-nucleus-example \
"bash /run.sh \
"/run.sh \
--download-src 'omniverse://$NUCLEUS_HOSTNAME/Projects/$FARM_USER/Isaac/4.1/Scripts/isaac-sim-simulation-example.py' \
--download-dest '/src/isaac-sim-simulation-example.py' \
--upload-src '/results/isaac-sim-simulation-example.txt' \
Expand Down Expand Up @@ -316,7 +316,7 @@ Then, submit the job:

```sh
scripts/submit_task.sh isaac-sim-volume-example \
"bash /run.sh \
"/run.sh \
--download-src 'omniverse://$NUCLEUS_HOSTNAME/Projects/$FARM_USER/Isaac/4.1/Scripts/isaac-sim-simulation-example.py' \
--download-dest '/src/isaac-sim-simulation-example.py' \
'ls /mnt/nfs' \
Expand Down Expand Up @@ -383,7 +383,7 @@ Now that you have learned all the basics and successfully run Isaac Sim tasks, y
5. Download and extract the dataset.
```sh
scripts/submit_task.sh ${FARM_USER}-general-volume-example-1 \
"bash /run.sh \
"/run.sh \
--download-src 'omniverse://$NUCLEUS_HOSTNAME/Projects/$FARM_USER/Isaac/4.1/Data' \
--download-dest '/mnt/nfs/$FARM_USER/data' \
'ls /mnt/nfs/$FARM_USER/data/MNIST/raw' \
Expand All @@ -400,7 +400,7 @@ Now that you have learned all the basics and successfully run Isaac Sim tasks, y
6. Submit the job.
```sh
scripts/submit_task.sh ${FARM_USER}-general-volume-example-1 \
"bash /run.sh \
"/run.sh \
--download-src 'omniverse://$NUCLEUS_HOSTNAME/Projects/$FARM_USER/Isaac/4.1/Scripts/mnist' \
--download-dest '/src/mnist' \
--upload-src '/mnt/nfs/$FARM_USER/results/mnist/checkpoints' \
Expand Down Expand Up @@ -450,7 +450,7 @@ Then, submit the job:

```sh
scripts/submit_task.sh isaac-lab-volume-example \
"bash /run.sh \
"/run.sh \
--upload-src '/root/IsaacLab/logs' \
--upload-dest 'omniverse://$NUCLEUS_HOSTNAME/Projects/$FARM_USER/Isaac/4.1/Results/IsaacLab/logs' \
'ls /mnt/nfs' \
Expand Down

0 comments on commit d2a140e

Please sign in to comment.