add nanopb (manual)

This commit is contained in:
Philippe G
2022-01-04 11:01:14 -08:00
parent 06b637c55b
commit 39f5a81238
554 changed files with 36793 additions and 3831 deletions

View File

@@ -0,0 +1,17 @@
Docker files
------------
This folder contains docker files that are used in testing nanopb automatically
on various platforms.
By default they take the newest master branch code from github.
To build tests for a single target, use for example:
docker build ubuntu1804
To build tests for all targets, use:
./build_all.sh

View File

@@ -0,0 +1,8 @@
#!/bin/bash -e
# Run all targets
for file in `ls */Dockerfile`
do echo -e "\n\n\n---------------------------------------- Building image for" $file " -------------------------------------------\n\n\n"
docker build $(dirname $file)
done

View File

@@ -0,0 +1,15 @@
FROM ubuntu:bionic
RUN apt -y update
RUN apt -y upgrade
RUN apt -y dist-upgrade
RUN apt -y autoremove
RUN apt -y install --fix-missing
RUN apt -y install apt-utils
RUN apt -y install git scons build-essential g++
RUN apt -y install protobuf-compiler python3-protobuf python3
RUN git clone https://github.com/nanopb/nanopb.git
RUN cd nanopb/tests && scons

View File

@@ -0,0 +1,16 @@
FROM ubuntu:focal
RUN apt -y update
RUN apt -y upgrade
RUN apt -y dist-upgrade
RUN apt -y autoremove
RUN apt -y install --fix-missing
RUN apt -y install apt-utils
RUN apt -y install git scons build-essential g++
RUN apt -y install protobuf-compiler python3.8 python3-protobuf
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1 && update-alternatives --set python /usr/bin/python3.8
RUN git clone https://github.com/nanopb/nanopb.git
RUN cd nanopb/tests && scons