Was able to create a docker container for ElectrumX that works in Ubuntu: https://github.com/christroutner/docker-electrumx
However, that docker container will not work on a Raspberry Pi. Following the directions for raspberry pi: https://electrumx.readthedocs.io/en/latest/HOWTO.html#installing-on-raspberry-pi-3 Led to issues.
Python 3.5 and python2 was installed, but I need python 3.6 or higher installed.
sudo apt-get remove --purge python python3
sudo apt-get autoremove
Instructions for installing Python 3.6:
https://gist.github.com/dschep/24aa61672a2092246eaca2824400d37f
--Needed to install the following package to get make altinstall to work.
sudo apt-get install libffi-dev
Can launch it with command python3.7, located in /usr/local/bin Create a symboli link:
cd /usr/local/bin
sudo ln -s python3.7 python
-LevelDB 1.20 or greater needs to be used. To install it: --Download the latest tar release: https://github.com/google/leveldb/releases
wget <release url>
tar -xvf <release>
cd leveldb
make
make check
no install script. Followed directions from here https://tangerina.jp/blog/leveldb-1.20-build/
$ sudo cp -r include/leveldb /usr/local/include/
$ sudo install -o root -m 644 -p out-shared/libleveldb.so.1.20 /usr/local/lib/
$ sudo cp -d out-shared/libleveldb.so out-shared/libleveldb.so.1 /usr/local/lib/
$ sudo install -o root -m 644 -p out-static/lib* /usr/local/lib/
$ sudo ldconfig
The shell scripts located here should now work: https://electrumx.readthedocs.io/en/latest/HOWTO.html#installing-on-raspberry-pi-3
For storage of the DB. I used a 64GB USB flash drive.