Skip to content

Instantly share code, notes, and snippets.

@fakuivan
Last active March 11, 2021 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fakuivan/8e6f07e2f51627ab72ef6cd107c88160 to your computer and use it in GitHub Desktop.
Save fakuivan/8e6f07e2f51627ab72ef6cd107c88160 to your computer and use it in GitHub Desktop.
Dockerfile for building SeaDrive

Building seadrive packages using podman or docker

This dockerfile will build the seadrive packages under ubuntu 20.04.

FROM raspberrypi_os:latest as backend
RUN export DEBIAN_FRONTEND="noninteractive" && \
apt clean && apt update && \
apt install autoconf \
automake \
libtool \
libevent-dev \
libcurl4-openssl-dev \
libgtk2.0-dev \
uuid-dev \
intltool \
libsqlite3-dev \
valac \
libjansson-dev \
libssl-dev \
libfuse-dev \
git -y && \
apt install autoconf \
automake \
libtool \
libevent-dev \
libcurl4-openssl-dev \
libgtk2.0-dev \
uuid-dev \
intltool \
libsqlite3-dev \
valac \
libjansson-dev \
cmake \
qtchooser \
qtbase5-dev \
libqt5webkit5-dev \
qttools5-dev \
qttools5-dev-tools \
# qtwebengine5-dev \
libssl-dev -y && \
apt install python dh-python -y
RUN mkdir /build
WORKDIR /build
ARG SEARCP_VERSION=v3.2-latest
RUN git clone --branch ${SEARCP_VERSION} https://github.com/haiwen/libsearpc.git && \
cd libsearpc && \
./autogen.sh && \
dpkg-buildpackage --build=binary && \
cd ..
RUN apt install ./libsearpc1_*.deb ./libsearpc-dev_*.deb
ARG SEADRIVE_VERSION=v2.0.10
RUN git clone --branch ${SEADRIVE_VERSION} https://github.com/haiwen/seadrive-fuse.git && \
cd seadrive-fuse && \
./autogen.sh && \
dpkg-buildpackage --build=binary && \
cd ..
RUN git clone --branch ${SEADRIVE_VERSION} https://github.com/haiwen/seadrive-gui.git && \
cd seadrive-gui && \
set paths && \
export PREFIX=/usr && \
export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH" && \
export PATH="$PREFIX/bin:$PATH" && \
cmake -DCMAKE_BUILD_TYPE=Release -DUSE_QT_WEBKIT=true -DCMAKE_INSTALL_PREFIX=$PREFIX . && \
make && \
make install && \
ln -s /usr usr && \
dpkg-buildpackage --build=binary && \
cd ..
FROM ubuntu:20.04 as backend
RUN export DEBIAN_FRONTEND="noninteractive" && \
apt clean && apt update && \
apt install autoconf \
automake \
libtool \
libevent-dev \
libcurl4-openssl-dev \
libgtk2.0-dev \
uuid-dev \
intltool \
libsqlite3-dev \
valac \
libjansson-dev \
libssl-dev \
libfuse-dev \
git -y && \
apt install autoconf \
automake \
libtool \
libevent-dev \
libcurl4-openssl-dev \
libgtk2.0-dev \
uuid-dev \
intltool \
libsqlite3-dev \
valac \
libjansson-dev \
cmake \
qtchooser \
qtbase5-dev \
libqt5webkit5-dev \
qttools5-dev \
qttools5-dev-tools \
qtwebengine5-dev \
libssl-dev -y && \
apt install python dh-python -y
RUN mkdir /build
WORKDIR /build
ARG SEARCP_VERSION=v3.2-latest
RUN git clone --branch ${SEARCP_VERSION} https://github.com/haiwen/libsearpc.git && \
cd libsearpc && \
./autogen.sh && \
dpkg-buildpackage --build=binary && \
cd ..
RUN apt install ./libsearpc1_*.deb ./libsearpc-dev_*.deb
ARG SEADRIVE_VERSION=v2.0.10
RUN git clone --branch ${SEADRIVE_VERSION} https://github.com/haiwen/seadrive-fuse.git && \
cd seadrive-fuse && \
./autogen.sh && \
dpkg-buildpackage --build=binary && \
cd ..
RUN git clone --branch ${SEADRIVE_VERSION} https://github.com/haiwen/seadrive-gui.git && \
cd seadrive-gui && \
set paths && \
export PREFIX=/usr && \
export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH" && \
export PATH="$PREFIX/bin:$PATH" && \
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PREFIX . && \
make && \
make install && \
ln -s /usr usr && \
dpkg-buildpackage --build=binary && \
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment