From b06e427f5dc08def6733189f3130fe381a04e25a Mon Sep 17 00:00:00 2001 From: Yiwei Gong Date: Sun, 28 Jan 2024 03:39:05 +0000 Subject: [PATCH] add stella_vslam runtime --- .github/workflows/build.yml | 3 ++- stella_vslam.Dockerfile | 33 --------------------------------- stella_vslam/build.sh | 8 ++++++++ 3 files changed, 10 insertions(+), 34 deletions(-) delete mode 100644 stella_vslam.Dockerfile create mode 100644 stella_vslam/build.sh diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b5557a9..1d4c140 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,5 +20,6 @@ jobs: echo "Using Docker Namespace: ${{ vars.DOCKER_NAMESPACE }}" echo ${{ secrets.DOCKER_PASSWORD }} | docker login --username ${{ secrets.DOCKER_USERNAME }} --password-stdin ${{ vars.DOCKER_REGISTRY }} - docker build . -t ${{ vars.DOCKER_REGISTRY }}/${{ vars.DOCKER_NAMESPACE }}/stella_vslam:latest -f stella_vslam.Dockerfile + bash stella_vslam/build.sh + docker tag stella_vslam:latest ${{ vars.DOCKER_REGISTRY }}/${{ vars.DOCKER_NAMESPACE }}/stella_vslam:latest docker push ${{ vars.DOCKER_REGISTRY }}/${{ vars.DOCKER_NAMESPACE }}/stella_vslam:latest diff --git a/stella_vslam.Dockerfile b/stella_vslam.Dockerfile deleted file mode 100644 index 1ad391a..0000000 --- a/stella_vslam.Dockerfile +++ /dev/null @@ -1,33 +0,0 @@ -FROM ubuntu:22.04 - -ENV DEBIAN_FRONTEND=noninteractive -RUN apt update -RUN apt install -y build-essential software-properties-common wget curl unzip git cmake ninja-build clang-format \ - libgl1-mesa-dev libwayland-dev libxkbcommon-dev wayland-protocols libegl1-mesa-dev \ - libglew-dev libeigen3-dev \ - libjpeg-dev libpng-dev \ - libavcodec-dev libavutil-dev libavformat-dev libswscale-dev libavdevice-dev \ - libssl-dev libopencv-dev libboost-dev libboost-serialization-dev \ - libspdlog-dev libboost-date-time-dev libboost-log-dev libyaml-cpp-dev libsuitesparse-dev \ - libcgal-dev qtbase5-dev qtbase5-dev-tools qt6-base-dev qt6-base-dev-tools \ - libsqlite3-dev libgflags-dev libglew-dev libpango1.0-dev - -WORKDIR /app - -# Pangolin -RUN cd /app && git clone https://github.com/stevenlovegrove/Pangolin.git && cd Pangolin && git checkout 7364b59 && \ - mkdir -p build && cd build && cmake .. && make -j && make install && cd /app - -# g2o -RUN cd /app && git clone --recursive https://github.com/RainerKuemmerle/g2o.git && cd g2o && git checkout e8df200 && \ - mkdir -p build && cd build && cmake .. && make -j && make install && cd /app - -# FBoW -RUN cd /app && git clone --recursive https://github.com/stella-cv/FBoW.git && cd FBoW && \ - mkdir -p build && cd build && cmake .. && make -j && make install && cd /app - -# stella_vslam -RUN cd /app && git clone --recursive https://github.com/stella-cv/stella_vslam.git && cd stella_vslam && git checkout a18add7 && \ - mkdir -p build && cd build && cmake .. && make -j && make install && cd /app - -RUN wget https://github.com/stella-cv/FBoW_orb_vocab/raw/main/orb_vocab.fbow -O /app/orb_vocab.fbow diff --git a/stella_vslam/build.sh b/stella_vslam/build.sh new file mode 100644 index 0000000..72e8c45 --- /dev/null +++ b/stella_vslam/build.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +export SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +cd $SCRIPT_DIR + +git clone https://github.com/stella-cv/stella_vslam.git && \ + cd stella_vslam && git checkout a18add7 +docker build -t stella_vslam -f Dockerfile.socket .