Skip to content

Commit

Permalink
Merge pull request #985 from StanfordVL/no-og-in-dev-docker
Browse files Browse the repository at this point in the history
Remove OmniGibson from Docker dev image
  • Loading branch information
cgokmen authored Oct 16, 2024
2 parents f786978 + 65edcf0 commit bf1cd0d
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions docker/prod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,28 @@ RUN micromamba run -n omnigibson /bin/bash --login -c 'source /isaac-sim/setup_c
# Test OMPL
RUN micromamba run -n omnigibson python -c "from ompl import base"

# Add setup to be executed on bash launch
RUN echo "OMNIGIBSON_NO_OMNIVERSE=1 python omnigibson/download_datasets.py" >> /root/.bashrc

# Copy over omnigibson source
ADD . /omnigibson-src
WORKDIR /omnigibson-src

# Set the shell
SHELL ["micromamba", "run", "-n", "omnigibson", "/bin/bash", "--login", "-c"]

# Optionally install OmniGibson (e.g. unless the DEV_MODE flag is set)
# Optionally install OmniGibson (e.g. unless the DEV_MODE flag is set) or
# remove the OmniGibson source code if we are in dev mode and change the workdir
ARG DEV_MODE
ENV DEV_MODE=${DEV_MODE}
ARG WORKDIR_PATH=/omnigibson-src
RUN if [ "$DEV_MODE" != "1" ]; then \
micromamba run -n omnigibson pip install -e .[dev]; \
echo "OMNIGIBSON_NO_OMNIVERSE=1 python omnigibson/download_datasets.py" >> /root/.bashrc; \
micromamba run -n omnigibson pip install -e .[dev]; \
else \
WORKDIR_PATH=/; \
cd / && rm -rf /omnigibson-src; \
fi

ENTRYPOINT ["micromamba", "run", "-n", "omnigibson"]
# Reset the WORKDIR based on whether or not we are in dev mode
WORKDIR ${WORKDIR_PATH}

ENTRYPOINT ["micromamba", "run", "-n", "omnigibson"]
CMD ["/bin/bash"]

0 comments on commit bf1cd0d

Please sign in to comment.