I am running a Balena base image: https://github.com/balena-io-library/base-images/blob/master/balena-base-images/python/raspberrypi3/ubuntu/xenial/3.6.8/build/Dockerfile, and it works fine, but what I really need is to understand how I could run an executable such as http://www.aishub.net/ais-dispatcher.
Each time I added it to the Docker as I would in any other container (as in download it, move it to /usr/local/bin with chmod +x and expect it to be launchable from bash) it reports it does not exist, or cannot be run.
Does anyone have experience on how to accomplish this on balena? I have an inkling that its something super minor I am missing here since it does work on the same Linux distro outside balena.
Similarly, I would expect to run this app with all of its command line parameters using CMD.
This is what I have so far:
# Download/Unarchive/Move AisHub Dispatcher RUN wget -O aisdispatcher_linux.tar.gz http://www.aishub.net/downloads/aisdispatcher_arm_glibc.tar.gz \ && tar -xzf aisdispatcher_linux.tar.gz && rm aisdispatcher_linux.tar.gz \ && mkdir /app \ && mv aisdispatcher_arm_glibc/aisdispatcher /app \ && chmod +x /app/aisdispatcher # CMD ["/app/aisdispatcher","-r", "-d", "/dev/ttyS0", "-s", "38400", "-H", "data.aishub.net:2300", "-G"]