123456789101112131415161718192021222324 |
- FROM ubuntu:14.04
- MAINTAINER hej@c3pb.de
- RUN apt-get update && apt-get install -y \
- build-essential \
- git python wget gawk subversion p7zip-full unzip \
- faketime libfaketime libgmp-dev libmpfr-dev libmpc-dev \
- zlib1g-dev ncurses-dev libssl-dev bsdmainutils
- RUN useradd -m build
- ENV HOME /home/build
- RUN sudo -Hu build git config --global user.name "docker-based build" ; sudo -Hu build git config --global user.email "build@hochstift.freifunk.net"
- RUN mkdir /code
- WORKDIR /code
- RUN chown -R build: /code
- RUN echo -en "#!/bin/sh\necho Start this container with "-v /path/to/firmware-repo:/code" to map your repo into it.\n" > /code/build.sh ; chmod +x /code/build.sh
- VOLUME /code
- USER build
- CMD ["/bin/bash", "docker-build.sh"]
|