-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Docker image for building
- Loading branch information
1 parent
6193486
commit 924d099
Showing
3 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Set up build stage | ||
FROM ubuntu:18.04 AS buildstage | ||
ENV DEBIAN_FRONTEND=noninteractive TZ=Europe/Amsterdam | ||
|
||
RUN dpkg --add-architecture i386 | ||
|
||
RUN apt-get update && \ | ||
apt-get -y install zip wget git build-essential make \ | ||
libc6:i386 libncurses5:i386 libstdc++6:i386 | ||
|
||
ENV ROOTDIR=/pocketbook-jailbreak | ||
WORKDIR ${ROOTDIR} | ||
|
||
RUN wget https://toolchains.bootlin.com/downloads/releases/toolchains/armv7-eabihf/tarballs/armv7-eabihf--musl--stable-2018.11-1.tar.bz2 | ||
RUN tar -xvf armv7-eabihf--musl--stable-2018.11-1.tar.bz2 | ||
|
||
RUN wget https://github.com/ezdiy/pocketbook-sdk5/archive/master.tar.gz | ||
RUN tar -xvf master.tar.gz | ||
|
||
ENV PATH="${ROOTDIR}/pocketbook-sdk5-master/bin:${ROOTDIR}/armv7-eabihf--musl--stable-2018.11-1/bin:${PATH}" | ||
|
||
WORKDIR /pbjb | ||
|
||
CMD make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
docker run --rm -it --volume=$(pwd):/pbjb pbjb "$@" |