From 6a6eb4beab8a578f966989d9127cc17ab64db681 Mon Sep 17 00:00:00 2001 From: Rafal Sapala Date: Mon, 16 Sep 2024 13:57:36 +0200 Subject: [PATCH] SDL cleanup (#86) --- Dockerfile | 74 ----------------------- mediapipe/examples/coral/Dockerfile.amd64 | 45 -------------- mediapipe/examples/coral/Dockerfile.arm64 | 47 -------------- mediapipe/examples/coral/Dockerfile.armhf | 47 -------------- 4 files changed, 213 deletions(-) delete mode 100644 Dockerfile delete mode 100644 mediapipe/examples/coral/Dockerfile.amd64 delete mode 100644 mediapipe/examples/coral/Dockerfile.arm64 delete mode 100644 mediapipe/examples/coral/Dockerfile.armhf diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 04489e0b56..0000000000 --- a/Dockerfile +++ /dev/null @@ -1,74 +0,0 @@ -# Copyright 2019 The MediaPipe Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -FROM ubuntu:20.04 - -WORKDIR /io -WORKDIR /mediapipe - -ENV DEBIAN_FRONTEND=noninteractive - -RUN apt-get update && apt-get install -y --no-install-recommends \ - build-essential \ - gcc-8 g++-8 \ - ca-certificates \ - curl \ - ffmpeg \ - git \ - wget \ - unzip \ - nodejs \ - npm \ - python3-dev \ - python3-opencv \ - python3-pip \ - libopencv-core-dev \ - libopencv-highgui-dev \ - libopencv-imgproc-dev \ - libopencv-video-dev \ - libopencv-calib3d-dev \ - libopencv-features2d-dev \ - software-properties-common && \ - add-apt-repository -y ppa:openjdk-r/ppa && \ - apt-get update && apt-get install -y openjdk-8-jdk && \ - apt-get install -y mesa-common-dev libegl1-mesa-dev libgles2-mesa-dev && \ - apt-get install -y mesa-utils && \ - apt-get clean && \ - rm -rf /var/lib/apt/lists/* - -RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 100 --slave /usr/bin/g++ g++ /usr/bin/g++-8 -RUN pip3 install --upgrade setuptools -RUN pip3 install wheel -RUN pip3 install future -RUN pip3 install absl-py numpy opencv-contrib-python protobuf==3.20.1 -RUN pip3 install six==1.14.0 -RUN pip3 install tensorflow -RUN pip3 install tf_slim - -RUN ln -s /usr/bin/python3 /usr/bin/python - -# Install bazel -ARG BAZEL_VERSION=6.1.1 -RUN mkdir /bazel && \ - wget --no-check-certificate -O /bazel/installer.sh "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/b\ -azel-${BAZEL_VERSION}-installer-linux-x86_64.sh" && \ - wget --no-check-certificate -O /bazel/LICENSE.txt "https://raw.githubusercontent.com/bazelbuild/bazel/master/LICENSE" && \ - chmod +x /bazel/installer.sh && \ - /bazel/installer.sh && \ - rm -f /bazel/installer.sh - -COPY . /mediapipe/ - -# If we want the docker image to contain the pre-built object_detection_offline_demo binary, do the following -# RUN bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 mediapipe/examples/desktop/demo:object_detection_tensorflow_demo diff --git a/mediapipe/examples/coral/Dockerfile.amd64 b/mediapipe/examples/coral/Dockerfile.amd64 deleted file mode 100644 index 68b1b27f2e..0000000000 --- a/mediapipe/examples/coral/Dockerfile.amd64 +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 2021 The MediaPipe Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -FROM debian:buster -MAINTAINER -RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ - build-essential \ - crossbuild-essential-arm64 \ - pkg-config \ - zip \ - unzip \ - curl \ - wget \ - git \ - tree \ - vim \ - sudo \ - python3-all \ - python3-pip \ - python3-numpy \ - ca-certificates \ - software-properties-common \ - libusb-1.0-0-dev \ - libopencv-core-dev \ - libopencv-imgproc-dev \ - libopencv-video-dev \ - libopencv-highgui-dev \ - libopencv-videoio-dev \ - libopencv-contrib-dev -RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 3 -RUN wget -O /usr/bin/bazel \ - https://github.com/bazelbuild/bazelisk/releases/download/v1.10.0/bazelisk-linux-amd64 && \ - echo "038c0990a48ccd69932e4e8ecf8baa459e05a6b4c9e4cc492ac836b777caaf9d /usr/bin/bazel" sha256sum --check - && \ - chmod +x /usr/bin/bazel -ENV BAZEL_CPU=k8 diff --git a/mediapipe/examples/coral/Dockerfile.arm64 b/mediapipe/examples/coral/Dockerfile.arm64 deleted file mode 100644 index dc42c286bf..0000000000 --- a/mediapipe/examples/coral/Dockerfile.arm64 +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 2021 The MediaPipe Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -FROM debian:buster -MAINTAINER -RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ - build-essential \ - crossbuild-essential-arm64 \ - pkg-config \ - zip \ - unzip \ - curl \ - wget \ - git \ - tree \ - vim \ - sudo \ - python3-all \ - python3-pip \ - python3-numpy \ - ca-certificates \ - software-properties-common -RUN dpkg --add-architecture arm64 -RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ - libusb-1.0-0-dev:arm64 \ - libopencv-core-dev:arm64 \ - libopencv-imgproc-dev:arm64 \ - libopencv-video-dev:arm64 \ - libopencv-highgui-dev:arm64 \ - libopencv-videoio-dev:arm64 \ - libopencv-contrib-dev:arm64 -RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 3 -RUN wget -O /usr/bin/bazel \ - https://github.com/bazelbuild/bazelisk/releases/download/v1.10.0/bazelisk-linux-amd64 && \ - echo "038c0990a48ccd69932e4e8ecf8baa459e05a6b4c9e4cc492ac836b777caaf9d /usr/bin/bazel" sha256sum --check - && \ - chmod +x /usr/bin/bazel -ENV BAZEL_CPU=aarch64 diff --git a/mediapipe/examples/coral/Dockerfile.armhf b/mediapipe/examples/coral/Dockerfile.armhf deleted file mode 100644 index 9210cb7d94..0000000000 --- a/mediapipe/examples/coral/Dockerfile.armhf +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 2021 The MediaPipe Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -FROM debian:buster -MAINTAINER -RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ - build-essential \ - crossbuild-essential-armhf \ - pkg-config \ - zip \ - unzip \ - curl \ - wget \ - git \ - tree \ - vim \ - sudo \ - python3-all \ - python3-pip \ - python3-numpy \ - ca-certificates \ - software-properties-common -RUN dpkg --add-architecture armhf -RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ - libusb-1.0-0-dev:armhf \ - libopencv-core-dev:armhf \ - libopencv-imgproc-dev:armhf \ - libopencv-video-dev:armhf \ - libopencv-highgui-dev:armhf \ - libopencv-videoio-dev:armhf \ - libopencv-contrib-dev:armhf -RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 3 -RUN wget -O /usr/bin/bazel \ - https://github.com/bazelbuild/bazelisk/releases/download/v1.10.0/bazelisk-linux-amd64 && \ - echo "038c0990a48ccd69932e4e8ecf8baa459e05a6b4c9e4cc492ac836b777caaf9d /usr/bin/bazel" sha256sum --check - && \ - chmod +x /usr/bin/bazel -ENV BAZEL_CPU=armv7a