diff options
author | dakkar <dakkar@thenautilus.net> | 2018-07-13 10:02:04 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2018-07-13 10:02:04 +0100 |
commit | bd51fb520c7af69f8eed068224811a3b481e15c0 (patch) | |
tree | a8abd88d97c8b3870ee5d6738ea4f41d12adc290 | |
parent | first attempt (diff) | |
download | dakkar-android-huawei-m5-bd51fb520c7af69f8eed068224811a3b481e15c0.tar.gz dakkar-android-huawei-m5-bd51fb520c7af69f8eed068224811a3b481e15c0.tar.bz2 dakkar-android-huawei-m5-bd51fb520c7af69f8eed068224811a3b481e15c0.zip |
import docker stuff
-rwxr-xr-x | docker-build | 11 | ||||
-rw-r--r-- | docker/Dockerfile | 43 |
2 files changed, 54 insertions, 0 deletions
diff --git a/docker-build b/docker-build new file mode 100755 index 0000000..7ff5226 --- /dev/null +++ b/docker-build @@ -0,0 +1,11 @@ +#!/bin/bash + +output="$1" +shift + +exec docker run -ti \ + -v "$(pwd)":/treble \ + -v "$output":/treble_output \ + -w /treble_output \ + treble \ + /bin/bash /treble/build.sh "$@" diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..e5140a9 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,43 @@ +FROM ubuntu:16.04 +MAINTAINER Pierre-Hugues Husson <phh@phh.me> + +ENV DEBIAN_FRONTEND noninteractive +ENV USER root +RUN dpkg --add-architecture i386 +RUN apt update && apt install -y \ + build-essential \ + imagemagick \ + xorriso \ + locales \ + openjdk-8-jdk \ + python \ + git \ + m4 \ + unzip \ + bison \ + zip \ + gperf \ + libxml2-utils \ + zlib1g:i386 \ + libstdc++6:i386 \ + bc \ + curl \ + lzop \ + lzip \ + lunzip \ + sudo ; \ + apt-get clean autoclean + +RUN ln -s /usr/bin/xorrisofs /usr/bin/mkisofs + +RUN locale-gen en_US.UTF-8 +RUN dpkg-reconfigure locales + +# Download and install repo +RUN curl https://storage.googleapis.com/git-repo-downloads/repo > /usr/local/bin/repo +RUN chmod a+x /usr/local/bin/repo + +RUN git config --global user.name "buildbot" +RUN git config --global user.email "buildbot@phh.me" + +USER root |