These are chat archives for hypriot/talk

6th
Jun 2017
Tabaluga
@Tabaluga
Jun 06 2017 18:54
Dear hypriot team and followers, based upon your "Getting started with Docker on your Raspberry Pi" guide I want to install Gitlab and taiga.io onto my Raspberry Pi 2, but which Docker Images should I use for the installation or which ones do you suggest? There are no mentions at your website, so I want to ask for your help. Thanks for your feedback. Best regards
BTW how can I upgrade to the newest version of HypriotOS? I have found no guide at your website.
Psyborgue
@Psyborgue
Jun 06 2017 20:13

I can confirm hypriot runs with btrfs. Lsblk:

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk0 179:0 0 59.5G 0 disk
├─mmcblk0p2 179:2 0 4G 0 part /
├─mmcblk0p3 179:3 0 55.4G 0 part /var/lib/docker
└─mmcblk0p1 179:1 0 64M 0 part /boot

$ cat /etc/docker/daemon.json
{
"experimental": true,
"storage-driver": "btrfs"
}

Just follow the guide and set it up like you would on any other system.

/etc/fstab

$ cat /etc/fstab

proc /proc proc defaults 0 0
/dev/mmcblk0p1 /boot vfat defaults 0 0
/dev/mmcblk0p2 / ext4 defaults,noatime 0 1
/dev/mmcblk0p3 /var/lib/docker btrfs x-systemd.device-timeout=0,noatime,compress=lzo,commit=0,ssd_spread,autodefrag 0 2

(last line options are Debian's recommended for slow flash storage).

docker info reports btrfs as the storage driver and everything I've tried so far works.
gdeverlant
@gdeverlant
Jun 06 2017 20:57
then it would be sweet you make a tutorial
and post it on hypriot os blog
Psyborgue
@Psyborgue
Jun 06 2017 22:35
I'm not sure a tutorial is necessary. I followed the instructions in the docker documentation for the btrfs backend. It's pretty straightforward. The only thing you'll have to do that isn't there is to shrink your root partition and add a new btrfs partition. I'd imagine other storage backends like devicemapper work as well but I haven't tried.