commit 6ae5d8ae8163b9eb4335159e87795df70b602f4f Author: Luke Childs Date: Fri Dec 13 19:11:40 2019 +0700 Initial commit diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..0c2e22a --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,7 @@ +github: + - 'lukechilds' +custom: + - 'https://blockstream.info/address/1LukeQU5jwebXbMLDVydeH4vFSobRV9rkj' + - 'https://blockstream.info/address/3Luke2qRn5iLj4NiFrvLBu2jaEj7JeMR6w' + - 'https://blockstream.info/address/bc1qlukeyq0c69v97uss68fet26kjkcsrymd2kv6d4' + - 'https://tippin.me/@lukechilds' diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1377554 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.swp diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..349948f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM qemu/arm as dockerpi-base +LABEL maintainer="Luke Childs " + +ADD https://github.com/dhruvvyas90/qemu-rpi-kernel/archive/master.zip /tmp/qemu-rpi-kernel-master.zip + +RUN unzip /tmp/qemu-rpi-kernel-master.zip -d ~ && rm -rf /tmp/* + +VOLUME /filesystem.img + +ENTRYPOINT ["qemu-system-arm"] +CMD [ \ + "-M", "versatilepb", \ + "-cpu", "arm1176", \ + "-m", "256", \ + "-hda", "/filesystem.img", \ + "-net", "nic", \ + "-net", "user,hostfwd=tcp::5022-:22", \ + "-dtb", "/root/qemu-rpi-kernel-master/versatile-pb.dtb", \ + "-kernel", "/root/qemu-rpi-kernel-master/kernel-qemu-4.19.50-buster", \ + "-append", "root=/dev/sda2 panic=1", \ + "-no-reboot", \ + "-display", "none", \ + "-serial", "mon:stdio" \ +] diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f27ee9b --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017 Luke Childs + +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. diff --git a/README.md b/README.md new file mode 100644 index 0000000..970f55a --- /dev/null +++ b/README.md @@ -0,0 +1,32 @@ +# dockerpi + +[![Actions Status](https://badgen.net/github/checks/lukechilds/dockerpi?icon=github&label=Build%20Status)](https://github.com/lukechilds/dockerpi/actions) +[![Docker Pulls](https://badgen.net/docker/pulls/lukechilds/dockerpi?icon=docker&label=Docker%20pulls)](https://hub.docker.com/r/lukechilds/dockerpi/) +[![Docker Image Size](https://badgen.net/docker/size/lukechilds/dockerpi/latest/amd64?icon=docker&label=lukechilds/dockerpi)](https://hub.docker.com/r/lukechilds/dockerpi/tags?name=latest) +[![GitHub Donate](https://badgen.net/badge/GitHub/Sponsor/D959A7?icon=github)](https://github.com/sponsors/lukechilds) +[![Bitcoin Donate](https://badgen.net/badge/Bitcoin/Donate/F19537?icon=bitcoin)](https://blockstream.info/address/3Luke2qRn5iLj4NiFrvLBu2jaEj7JeMR6w) +[![Lightning Donate](https://badgen.net/badge/Lightning/Donate/F6BC41?icon=bitcoin-lightning)](https://tippin.me/@lukechilds) + +> A Virtualised Raspberry Pi inside a Docker image + +Gives you access to a virtualised ARM based Raspberry Pi machine running the Raspian operating system. + +This is not just a Raspian Docker image, it's a full ARM based Raspberry Pi virtual machine environment. + +## Usage + +``` +docker run -it lukechilds/dockerpi +``` + +## Build + +Build this image yourself by checking out this repo, `cd` ing into it and running: + +``` +docker build -t lukechilds/dockerpi . +``` + +## License + +MIT © Luke Childs