I wanted to be able to use the WiFi and Bluetooth capabilities as well as have a small OLED display with some control switches that I could use to control different Docker Containers as I develop them. There are a few hoops that I need to get through to accomplish this.
- Install Redmine, get it configured for general projects
- Install Docker repository, integrate with Redmine (MySQL? Git repository?)
- Start Redmine project for test
- Get test install working on RPi for OLED screen, including buttons
- Install Docker on RPi
- Pull test into container, record steps,
- Run test to ensure it works correctly
- Push test container to local repository
- Split test code into two pieces, one for OLED explicitly and one for test code
- Pull two piece test code into two containers
- Run combined test to ensure it works correctly
- Push combined test containers to local repository
I am not going to do each of these in a specific order, however I will document what I do in this post and in
posts to follow. The first thing that I wanted to get accomplished was the setup of the Raspberry Pi.
- first, I mechanically put the docker test platform together
- next, I setup a 16GB micro SD using my Mac Mini with the following commands:
df -k
sudo diskutil unmount /dev/disk3s1
sudo dd bs=1m if=2015-02-16-raspbian-wheezy.img of=/dev/rdisk3
note that I actually used a newer version of raspbian (Stretch) since I was planning on keeping
this as up to date as I possibly could.
- next, I changed two files on the /boot directory of the micro SD.
cd /Volumes/boot
nano wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={
ssid="YOUR_NETWORK_NAME"
psk="YOUR_PASSWORD"
key_mgmt=WPA-PSK
}
touch ssh
- next, I unmounted the micro SD and checked to see that it was unmounted
sudo diskutil unmount /dev/disk3s1
df -k
- next, I installed the micro SD, booted the RPi, checked my router for the IP address of the RPi,
and set ssh on, SPI on, time zone, and expand microSD using raspi-config
- I rebooted the RPi and performed and update
sudo apt-get update
sudo apt-get upgrade
- next, I went to the website for the WaveShare OLED display at
https://www.waveshare.com/wiki/1.3inch_OLED_HAT, gathered some reading material, and started
loading libraries from the instructions at https://www.waveshare.com/wiki/Libraries_Installation_for_RPi.
- I did manage to bork the install of the docker suite using:
curl -sSL https://get.docker.com | sh
I'm not sure of what happened but it appears that the setup I am using has some issues with
power. I apparently need more than some usb cables that I own of being able to provide enough
power; the most success that I have had was using a powered usb hub from Smays which also
doubles as an ethernet connector. Now it appears that I will have to go back and remove docker
and re-install it on my system.
curl -sSL https://get.docker.com | sh
I'm not sure of what happened but it appears that the setup I am using has some issues with
power. I apparently need more than some usb cables that I own of being able to provide enough
power; the most success that I have had was using a powered usb hub from Smays which also
doubles as an ethernet connector. Now it appears that I will have to go back and remove docker
and re-install it on my system.