From 4085afe3c0d8b87e36706b7bfa213ecb8b21079b Mon Sep 17 00:00:00 2001 From: "Brandon D. Northcutt" Date: Wed, 7 Jun 2017 13:50:26 -0700 Subject: [PATCH] rm tools/docker. --- tools/docker/Dockerfile.nvidia | 20 ---------------- tools/docker/Dockerfile.opensource | 20 ---------------- tools/docker/README.md | 38 ------------------------------ tools/docker/entrypoint.sh | 12 ---------- 4 files changed, 90 deletions(-) delete mode 100644 tools/docker/Dockerfile.nvidia delete mode 100644 tools/docker/Dockerfile.opensource delete mode 100644 tools/docker/README.md delete mode 100755 tools/docker/entrypoint.sh diff --git a/tools/docker/Dockerfile.nvidia b/tools/docker/Dockerfile.nvidia deleted file mode 100644 index 0ac031f891c9..000000000000 --- a/tools/docker/Dockerfile.nvidia +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright 2016-2017 Toyota Research Institute. All rights reserved. -FROM nvidia/cuda:8.0-devel-ubuntu16.04 -RUN apt-get update && apt-get -y install --no-install-recommends \ - git \ - wget \ - build-essential \ - sudo \ - ca-certificates \ - apt-utils \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean all -RUN mkdir /drake -COPY / /drake -RUN apt-get update && yes "Y" \ - | /drake/setup/ubuntu/16.04/install_prereqs.sh \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean all -RUN mkdir /drake/build && cd /drake/build && cmake .. && make -j16 && cd /drake && bazel build ... && bazel test ... -COPY tools/docker/entrypoint.sh / -ENTRYPOINT ["/entrypoint.sh"] diff --git a/tools/docker/Dockerfile.opensource b/tools/docker/Dockerfile.opensource deleted file mode 100644 index 038b482f592a..000000000000 --- a/tools/docker/Dockerfile.opensource +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright 2016-2017 Toyota Research Institute. All rights reserved. -FROM ubuntu:16.04 -RUN apt-get update && apt-get -y install --no-install-recommends \ - git \ - wget \ - build-essential \ - sudo \ - ca-certificates \ - apt-utils \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean all -RUN mkdir /drake -COPY / /drake -RUN apt-get update && yes "Y" \ - | /drake/setup/ubuntu/16.04/install_prereqs.sh \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean all -RUN mkdir /drake/build && cd /drake/build && cmake .. && make -j16 && cd /drake && bazel build ... && bazel test ... -COPY tools/docker/entrypoint.sh / -ENTRYPOINT ["/entrypoint.sh"] diff --git a/tools/docker/README.md b/tools/docker/README.md deleted file mode 100644 index a20d3303c2b5..000000000000 --- a/tools/docker/README.md +++ /dev/null @@ -1,38 +0,0 @@ -Copyright 2016-2017 Toyota Research Institute. All rights reserved. - - -# Drake Docker containers -There are two Docker containers provided that can build Drake in isolated -Ubuntu 16.04 environments. -# Building -$ cd - -If you have the Nvidia drivers installed: -$ docker build -t drake -f tools/docker/Dockerfile.nvidia . - -If you are using open source graphics drivers (Nouveau, Intel, ...): -$ docker build -t drake -f tools/docker/Dockerfile.opensource . - -# Running -## Passive Acrobot Simulation -### Nvidia drivers: (requires nvidia-docker plugin) -$ xhost +local:root; nvidia-docker run -ti --rm -e DISPLAY \ --e QT_X11_NO_MITSHM=1 -v /tmp/.X11-unix:/tmp/.X11-unix \ ---privileged drake; xhost -local:root - -### Open source drivers: -$ xhost +local:root; docker run -ti --rm -e DISPLAY \ --e QT_X11_NO_MITSHM=1 -v /tmp/.X11-unix:/tmp/.X11-unix \ ---privileged drake; xhost -local:root - -Note: The --privileged argument is only necessary under security enhanced -linux. - -## Enter An Interactive Shell -An arbitrary command can be passed to the docker image by appending the -argument to the above commands. Type bash at the end to enter a bash shell in -the docker image. -$ xhost +local:root; docker run -ti --rm -e DISPLAY \ --e QT_X11_NO_MITSHM=1 -v /tmp/.X11-unix:/tmp/.X11-unix \ ---privileged drake bash; xhost -local:root - diff --git a/tools/docker/entrypoint.sh b/tools/docker/entrypoint.sh deleted file mode 100755 index 3c7469c50654..000000000000 --- a/tools/docker/entrypoint.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -# Copyright 2016-2017 Toyota Research Institute. All rights reserved. -set -e -[[ $# -eq 0 ]] && { - cd /drake/build/install/bin - ./drake-visualizer & - sleep 3 - cd /drake/build/drake/examples/Acrobot - ./acrobot_run_passive -} || { - eval "$@" -}