From 621a94e65c5575da09d50d736de60f2165273027 Mon Sep 17 00:00:00 2001 From: Ethan Weber Date: Sun, 17 Apr 2022 16:36:09 +0000 Subject: [PATCH] removing docker and fixing nfs issue --- .gitignore | 3 +- environment/.nfs000000000000d6ec00000292 | 1 - environment/README.md | 20 ------- environment/mattport.dockerfile | 75 ------------------------ 4 files changed, 2 insertions(+), 97 deletions(-) delete mode 100644 environment/.nfs000000000000d6ec00000292 delete mode 100644 environment/README.md delete mode 100644 environment/mattport.dockerfile diff --git a/.gitignore b/.gitignore index 6d423944a..b8382ed16 100644 --- a/.gitignore +++ b/.gitignore @@ -168,4 +168,5 @@ data/ # Misc old/ -temp* \ No newline at end of file +temp* +.nfs* \ No newline at end of file diff --git a/environment/.nfs000000000000d6ec00000292 b/environment/.nfs000000000000d6ec00000292 deleted file mode 100644 index 0164bc6fd..000000000 --- a/environment/.nfs000000000000d6ec00000292 +++ /dev/null @@ -1 +0,0 @@ -python -m jupyter lab --ip 0.0.0.0 --port 9999 --no-browser --config environments/jupyter.py \ No newline at end of file diff --git a/environment/README.md b/environment/README.md deleted file mode 100644 index bf98aae6b..000000000 --- a/environment/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# Environment - -# Installing docker - -#### Troubleshooting - -``` -# https://forums.docker.com/t/failing-to-start-dockerd-failed-to-create-nat-chain-docker/78269 -sudo update-alternatives --set iptables /usr/sbin/iptables-legacy -sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy -sudo service docker start - -VERSION_STRING=18.03.1~ce~3-0~ubuntu -sudo apt-get install docker-ce=$VERSION_STRING docker-ce-cli=$VERSION_STRING containerd.io - -# https://github.com/docker/for-linux/issues/123#issuecomment-346546953 -sudo ip link add name docker0 type bridge -sudo ip addr add dev docker0 172.17.0.1/16 -sudo dockerd --debug --iptables=false -``` \ No newline at end of file diff --git a/environment/mattport.dockerfile b/environment/mattport.dockerfile deleted file mode 100644 index aa8bad9b1..000000000 --- a/environment/mattport.dockerfile +++ /dev/null @@ -1,75 +0,0 @@ -FROM nvidia/cuda:10.2-devel-ubuntu18.04 - -# Set the shell to /bin/bash instead of /bin/sh so conda works correctly. -# https://towardsdatascience.com/conda-pip-and-docker-ftw-d64fe638dc45 -SHELL [ "/bin/bash", "--login", "-c" ] - -# Prepare and empty machine for building -RUN apt-get update && apt-get install -y \ - git \ - cmake \ - vim \ - build-essential \ - libboost-program-options-dev \ - libboost-filesystem-dev \ - libboost-graph-dev \ - libboost-system-dev \ - libboost-test-dev \ - libeigen3-dev \ - libsuitesparse-dev \ - libfreeimage-dev \ - libgoogle-glog-dev \ - libgflags-dev \ - libglew-dev \ - qtbase5-dev \ - libqt5opengl5-dev \ - libcgal-dev \ - libcgal-qt5-dev \ - wget - -# Build and install ceres solver -RUN apt-get -y install \ - libatlas-base-dev \ - libsuitesparse-dev -RUN git clone https://github.com/ceres-solver/ceres-solver.git --branch 1.14.0 -RUN cd ceres-solver && \ - mkdir build && \ - cd build && \ - cmake .. -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF && \ - make -j4 && \ - make install - -# Clear space # https://askubuntu.com/questions/179955/var-lib-apt-lists-is-huge -RUN rm -rf /var/lib/apt/lists/* - -# Build and install COLMAP - -# Note: This Dockerfile has been tested using COLMAP pre-release 3.6. -# Later versions of COLMAP (which will be automatically cloned as default) may -# have problems using the environment described thus far. If you encounter -# problems and want to install the tested release, then uncomment the branch -# specification in the line below -RUN git clone https://github.com/colmap/colmap.git #--branch 3.6 - -RUN cd colmap && \ - git checkout dev && \ - mkdir build && \ - cd build && \ - cmake .. && \ - make -j4 && \ - make install - -# Install Conda -ENV PATH="/root/miniconda3/bin:${PATH}" -ARG PATH="/root/miniconda3/bin:${PATH}" -RUN wget \ - https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \ - && mkdir /root/.conda \ - && bash Miniconda3-latest-Linux-x86_64.sh -b \ - && rm -f Miniconda3-latest-Linux-x86_64.sh -RUN conda --version - -# Install friends conda environment -COPY ./run_install_friends_conda.sh /tmp/run_install_friends_conda.sh -COPY ./requirements_friends.txt /tmp/requirements_friends.txt -RUN yes "Y" | bash /tmp/run_install_friends_conda.sh