Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
id: docker_build
uses: docker/build-push-action@v2
with:
file: ./portable.Dockerfile
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
no-cache: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-build-prs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
- name: Build
uses: docker/build-push-action@v2
with:
file: ./portable.Dockerfile
file: ./Dockerfile
platforms: linux/amd64
push: false

# snapcraft:
# runs-on: ubuntu-latest
# strategy:
Expand Down
14 changes: 0 additions & 14 deletions configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,26 +140,12 @@ installreqs() {
# edt requires numpy to build
venv/bin/pip install numpy==2.3.2
venv/bin/pip install -r requirements.txt --ignore-installed
#if [ ! -z "$GPU_INSTALL" ]; then
#fi
set +e
}

install() {
installreqs

if [ ! -z "$PORTABLE_INSTALL" ]; then
echo "Replacing g++ and gcc with our scripts for portability..."
if [ ! -e /usr/bin/gcc_real ]; then
sudo mv -v /usr/bin/gcc /usr/bin/gcc_real
sudo cp -v ./docker/gcc /usr/bin/gcc
fi
if [ ! -e /usr/bin/g++_real ]; then
sudo mv -v /usr/bin/g++ /usr/bin/g++_real
sudo cp -v ./docker/g++ /usr/bin/g++
fi
fi

set -eo pipefail

echo "Compiling SuperBuild"
Expand Down
3 changes: 0 additions & 3 deletions docker/README

This file was deleted.

17 changes: 0 additions & 17 deletions docker/g++

This file was deleted.

17 changes: 0 additions & 17 deletions docker/gcc

This file was deleted.

13 changes: 7 additions & 6 deletions gpu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM nvidia/cuda:13.0.0-devel-ubuntu24.04 AS builder
# Env variables
ENV DEBIAN_FRONTEND=noninteractive \
PYTHONPATH="/code/SuperBuild/install/lib/python3.12/dist-packages:/code/SuperBuild/install/bin/opensfm" \
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/code/SuperBuild/install/lib"
LD_LIBRARY_PATH="/code/SuperBuild/install/lib"

# Prepare directories
WORKDIR /code
Expand All @@ -12,7 +12,7 @@ WORKDIR /code
COPY . ./

# Run the build
RUN PORTABLE_INSTALL=YES GPU_INSTALL=YES bash configure.sh install
RUN bash configure.sh install

# Run the tests
ENV PATH="/code/venv/bin:$PATH"
Expand All @@ -30,7 +30,7 @@ FROM nvidia/cuda:13.0.0-devel-ubuntu24.04
# Env variables
ENV DEBIAN_FRONTEND=noninteractive \
PYTHONPATH="/code/SuperBuild/install/lib/python3.12/dist-packages:/code/SuperBuild/install/bin/opensfm" \
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/code/SuperBuild/install/lib" \
LD_LIBRARY_PATH="/code/SuperBuild/install/lib" \
PDAL_DRIVER_PATH="/code/SuperBuild/install/bin"

WORKDIR /code
Expand All @@ -40,12 +40,13 @@ COPY --from=builder /code /code

ENV PATH="/code/venv/bin:$PATH"

RUN apt-get update -y \
&& apt-get install -y ffmpeg libtbb2
# Install shared libraries that we depend on via APT, but *not*
# the -dev packages to save space!
# Also run a smoke test on ODM and OpenSfM
RUN bash configure.sh installruntimedepsonly \
RUN apt-get update -y \
# ffmpeg & libtbb2 needed for GPU build only
&& apt-get install -y ffmpeg libtbb2 \
&& bash configure.sh installruntimedepsonly \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& bash run.sh --help \
Expand Down
53 changes: 0 additions & 53 deletions portable.Dockerfile

This file was deleted.

6 changes: 0 additions & 6 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,6 @@ parts:
override-build: |
snapcraftctl set-version $(cat VERSION)

# Portable build
test -f /usr/bin/gcc_real || mv -v /usr/bin/gcc /usr/bin/gcc_real
test -f /usr/bin/gcc || cp -v ./docker/gcc /usr/bin/gcc
test -f /usr/bin/g++_real || mv -v /usr/bin/g++ /usr/bin/g++_real
test -f /usr/bin/g++ || cp -v ./docker/g++ /usr/bin/g++

pip3 install --user -r requirements.txt

# Build the SuperBuild libraries
Expand Down
6 changes: 0 additions & 6 deletions snap/snapcraft21.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,6 @@ parts:
override-build: |
snapcraftctl set-version $(cat VERSION)

# Portable build
test -f /usr/bin/gcc_real || mv -v /usr/bin/gcc /usr/bin/gcc_real
test -f /usr/bin/gcc || cp -v ./docker/gcc /usr/bin/gcc
test -f /usr/bin/g++_real || mv -v /usr/bin/g++ /usr/bin/g++_real
test -f /usr/bin/g++ || cp -v ./docker/g++ /usr/bin/g++

pip3 install --user -r requirements.txt

# Build the SuperBuild libraries
Expand Down
6 changes: 0 additions & 6 deletions snap/snapcraft24.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,6 @@ parts:
override-build: |
snapcraftctl set-version $(cat VERSION)

# Portable build
test -f /usr/bin/gcc_real || mv -v /usr/bin/gcc /usr/bin/gcc_real
test -f /usr/bin/gcc || cp -v ./docker/gcc /usr/bin/gcc
test -f /usr/bin/g++_real || mv -v /usr/bin/g++ /usr/bin/g++_real
test -f /usr/bin/g++ || cp -v ./docker/g++ /usr/bin/g++

pip3 install --user -r requirements.txt

# Build the SuperBuild libraries
Expand Down
Loading