forked from alliedvision/gst-vimbasrc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (37 loc) · 1.33 KB
/
Dockerfile
File metadata and controls
44 lines (37 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from ubuntu:18.04 as build_base
RUN apt-get update && \
apt-get install --no-install-recommends -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# More modern CMake version needed -> Build and install ourselves
# Alternatively one might download a precompiled tar.gz from Github, but building it
# is platform agnostic
from build_base as cmake_installer
RUN apt-get update && \
apt-get install --no-install-recommends -y \
wget \
ca-certificates \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
RUN wget https://github.com/Kitware/CMake/releases/download/v3.19.4/cmake-3.19.4.tar.gz && \
tar xf cmake-3.19.4.tar.gz && \
rm cmake-3.19.4.tar.gz && \
cd ./cmake-3.19.4 && \
./bootstrap --prefix=/usr/local && \
make && \
make install
# This image will perform the actual GStreamer plugin build process
FROM build_base as gst-vimbasrc_builder
RUN apt-get update && \
apt-get install --no-install-recommends -y \
libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev \
&& rm -rf /var/lib/apt/lists/*
COPY --from=cmake_installer /usr/local /usr/local
ENV VIMBA_HOME=/vimba
# mount the checked out repository into this volume
VOLUME ["/gst-vimbasrc"]
WORKDIR /gst-vimbasrc
# Follow README
CMD ["sh", "build.sh"]
# Plugin will be located at plugins/.libs/libgstvimba.so