diff --git a/docker/raspi3-utils/Dockerfile b/docker/raspi3-utils/Dockerfile new file mode 100644 index 00000000..3abb890e --- /dev/null +++ b/docker/raspi3-utils/Dockerfile @@ -0,0 +1,73 @@ +# -*- coding: utf-8 -*- +# +# ============================================================================= +# +# MIT License +# +# Copyright (c) 2017-2019 Andre Richter +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. +# +# ============================================================================= +FROM ubuntu:18.04 + +LABEL maintainer="The Cortex-A team , Andre Richter " + +RUN set -ex; \ + apt-get update; \ + apt-get install -q -y --no-install-recommends \ + build-essential \ + ca-certificates \ + git \ + libglib2.0-dev \ + libpixman-1-dev \ + locales \ + pkg-config \ + python \ + screen \ + tmux \ + ; \ + echo "set -g mouse on" > ~/.tmux.conf; \ + # Cleanup + apt-get autoremove -q -y; \ + apt-get clean -q -y; \ + rm -rf /var/lib/apt/lists/* + +RUN locale-gen en_US.UTF-8 + +ENV LANG=en_US.UTF-8 \ + LANGUAGE=en_US:en \ + LC_ALL=en_US.UTF-8 + +RUN git clone git://git.qemu.org/qemu.git; \ + cd qemu; \ + ./configure --target-list=aarch64-softmmu --enable-modules \ + --enable-tcg-interpreter --enable-debug-tcg \ + --python=/usr/bin/python2.7; \ + make; \ + make install; \ + cd ..; \ + rm -rf qemu + +RUN git clone https://github.com/andre-richter/raspbootin.git; \ + cd raspbootin/raspbootcom; \ + make; \ + cp raspbootcom /usr/bin; \ + cd ../..; \ + rm -rf raspbootin