Inside the lxc container, let’s switch to the “ubuntu” user, and clone my git repo:
The repository contains a snapcraft.yaml file, that tells snapcraft what steps are needed to build it.
Let’s try that:
This will produce a minecraft-minimu9_1_armhf.snap file that we can install in the base system, like this:
Since it’s trying to access the serial port, and everything under snappy runs confined, we can give access to the package like this:
And with that we have our snap package installed, running and able to access the hardware port.
We can try our demo by pointing a browser at port 8989 of the raspbi’s IP address, eg: http://192.168.1.131:8989/ and we should see the minecraft demo page loading and updating as we move the MinIMU-9.