Open Skeeve opened 5 years ago
I found this to work (Dockerfile)
FROM debian:9-slim
LABEL maintainer="https://github.com/Skeeve"
# ENV SDK_ARCH=A13
# ENV SDK_ARCH=iMX6
ENV SDK_ARCH=B288
ENV SDK_VERSION=6.3.0
ENV SDK_BRANCH=5.19
ENV SDK_URL=https://github.com/pocketbook/SDK_${SDK_VERSION}.git
ENV CMAKE_VERSION=3.21.3
ENV CMAKE_TOOLCHAIN_FILE=/SDK_${SDK_VERSION}/SDK-${SDK_ARCH}/share/cmake/arm_conf.cmake
VOLUME "/project"
WORKDIR "/project"
RUN apt-get update \
&& apt-get upgrade --yes \
&& apt-get install --yes \
locales \
htop \
git \
build-essential \
wget \
rsync \
&& rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 \
&& CMAKE="cmake-${CMAKE_VERSION}-linux-$( uname -m )" \
&& wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/${CMAKE}.tar.gz \
&& tar xzf ${CMAKE}.tar.gz \
&& rsync -rv ${CMAKE}/* /usr/ \
&& rm -rf ${CMAKE} ${CMAKE}.tar.gz \
;
RUN cd / \
&& git clone "$SDK_URL" \
&& BASEPATH=/$( basename "${SDK_URL}" .git ) \
&& PBSDK=${BASEPATH}/SDK-${SDK_ARCH} \
&& cd $( dirname $PBSDK ) \
&& git checkout $SDK_BRANCH \
&& $PBSDK/bin/update_path.sh \
&& chmod +x $BASEPATH/*/usr/bin/pbres \
;
ENTRYPOINT [ "bash" ]
Mount your project directory like so:
docker build -t pbdev .
docker run --rm -it --mount type=bind,source="$(pwd)",target=/project pbdev
Hi! Could you please explain more about the prerequisites?
On a Mac for example, I can't compile. Assuming Linux is a prerequisite. But are there any specific packages to be installed?
Additionally: What are the 3 SDKs for? Which one does what?
Thanks alot.