Skip to content

Custom build of nebulouslabs/sia docker image for Raspberry Pi 4. The default imange didn't run so I had to modify the Dockerfile and docker build it on the Raspberry Pi 4 itself. The main change involved

License

Notifications You must be signed in to change notification settings

nickkanavati/nebulouslabs_sia_custom_raspberry_pi4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nebulouslabs/sia Custom Build for Raspberry Pi 4.

The original image https://hub.docker.com/r/nebulouslabs/sia didn't run on Raspberry Pi 4 with Raspbian OS because it complained that the siad program couldn't be found even though it was clearly available in /usr/bin. The solution was to add 'apk add libc6-compat' to the Dockerfile. In addition, the default Go Architecture (GOARCH=amd64) needed to be updated to GOARCH=arm64 to match the Raspberry Pi 4.0 hardware configuration.

Besides getting it to work on Raspberry Pi 4 I added settings to get the Sia data stored on an SSD connected to a USB port.

Just to note, this is mainly for experimentation. A professional production server should be configured using RAID instead of a single SSD to make sure hardware failures don't bring the entire drive down.

Mounting and Formatting a SSD on Raspberry Pi 4

I used an SSD adapter to connect a Solid State Drive to a USB port on the Raspberry Pi 4.

  • Sabrent USB 3.0 to SSD / 2.5-Inch SATA I/II/III Hard Drive Adapter (EC-SSHD)
  • SAMSUNG 870 QVO SATA III 2.5" SSD 2TB (MZ-77Q2T0B)

List the available drives:
fdisk -l

Setup the newly attached SSD (assuming it's on /dev/sda):
fdisk /dev/sda

Format the disk:
sudo mkfs.ext4 /dev/sda

Mount the disk:
mount /dev/sda /mnt/ssd/

Customization of nebulouslabs/sia Dockerfile

Clone this repo
git clone https://github.com/nickkanavati/nebulouslabs_sia_custom_raspberry_pi4.git

To see the customizations to the Dockerfile search for lines with the word "custom." The explanations should all be in the Dockerfile

Building and Running the Custom Docker Container

I made two scripts to bulid and run the container.

To build the container use:
build_custom_sia_dockerfile.sh

To run the container use the following sh file and read the comments to customize your storage location:
run_custum_sia.sh

About

Custom build of nebulouslabs/sia docker image for Raspberry Pi 4. The default imange didn't run so I had to modify the Dockerfile and docker build it on the Raspberry Pi 4 itself. The main change involved

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published