I’m having great success configuring an image with a Dockerfile.template and making great things happen with a Raspberry Pi camera and video streams (different solution from examples). Cool!
My headache begins when rebooting. After a reboot, the app will not start. I can login to the host os which is good, but the restart option after reboot results in an error. I can reboot again with no success from the website. Purging data doesn’t help. Shutting down and booting manually doesn’t help. The only temporary solution I’ve found so far as I continue to troubleshoot is to burn a new disk and start working with the new device (icky).
What’s odd is that I can push new changes to the app with Git and the app will download and restart without issues as far as I can see.
I’m wondering if there is something I’m doing in the configuration that is causing the app container to not play nice with the host os? Is that possible? I am running apt-get update and upgrade, along with installing ffmpeg from source.
Here is my Dockerfile.template:
# I don't have a huge preference on this and can adjust if needed: FROM resin/%%RESIN_MACHINE_NAME%%-node:7 # Good, yes?: ENV INITSYSTEM on RUN apt-get -q update && \ apt-get upgrade && \ apt-get install -yq --no-install-recommends build-essential libraspberrypi-bin && \ apt-get clean # Install H264 support from source # ... # Install ffmgeg from source # ... COPY . /usr/src/app # will run when container starts up on the device CMD ["echo", "hiya"]
Thanks for taking a look in advance! Also, thanks for tolerating my lack of docker/resin.io experience (I’m catching up!). Please let me know what additional info I can provide. I’m retrying a fresh install and can provide logs soon to start.
update: I’m trying without apt-get upgrade next…