Base-Docker on Raspberry Pi
Currently only support for a Raspberry Pi running a 64bit OS is provided. Recommended hardware is a Raspberry Pi 4 with 4GB RAM and above.
Getting started
Raspberry Pi OS Instructions:
Install Ansible and Pythton virtualenv:
sudo apt-get install ansible virtualenv
Install Docker:
curl -sSL https://get.docker.com | sh
sudo usermod -aG docker $USER
Next log out and log back in again to apply the group changes.
Once back in you should not see any errors when running:
docker ps
Clone the base-docker repository to your local machine:
cd
mkdir code
cd code
git clone https://github.com/mikejw/base-docker.git
cd base-docker
Create hosts file entry
Create a /etc/hosts
file entry for www.dev.org
:
127.0.0.1 localhost www.dev.org
Initialise virtualenv within root directory of base-docker
on your machine:
virtualenv ./python
Initialise base-docker config on the machine:
cd ansible
ansible-playbook ../init.yml -e "arch=pi"
Finally test the setup by bootstrappning a new Quickstart project:
cd ansible
ansible-playbook ../main.yml -e "op=qs cb=myproject tpl=elib-base"
Comments
No comments.
Add a comment…
Allowed HTML tags within comments are; 'a', 'img', 'p' and 'pre'.
You can give 'pre' tags a language for the class name. This will apply syntax highlighting through Prism for that language.
<pre class="bash"> echo whoami; </pre>
Produces…
echo whoami;