Skip to content

[WIP] Dockerfile to build protobuf with cpp implementation for ARM targets #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
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
27 changes: 27 additions & 0 deletions wrappers/python/container/proto-rpi/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# build protobuff wheel
FROM wirepas/base:1.0-raspbian as wm-proto-builder
RUN [ "cross-build-start" ]
USER root
ARG GIT_TAG=${GIT_TAG:-"v3.7.1"}
RUN sudo apt-get update \
&& sudo apt-get install autoconf automake libtool curl make g++ unzip git

WORKDIR /app_build
RUN git clone https://github.com/protocolbuffers/protobuf.git \
&& cd protobuf \
&& git checkout ${GIT_TAG}\
&& git submodule update --init --recursive \
&& ./autogen.sh \
&& ./configure \
&& make \
&& make check \
&& sudo make install \
&& sudo ldconfig

#configure --disable-shared\

WORKDIR /app_build/protobuf/python/
RUN python3 setup.py build --cpp_implementation \
&& python3 setup.py test --cpp_implementation \

RUN [ "cross-build-end" ]