I’m looking to deploy some software (Falcon Player) as a container on a balena device. This package is designed and intended to run on a Pi. Ultimately, I’d like it to be just ‘one of several’ deployed as part of @chrisys most excellent Festive LED project, as discussed at length elsewhere.
Here’s where my #N00bness kicks in: I’m able to build and run the container locally, on my Macbook Pro (which actually confuses me a bit, given the different architecture).
I’m working through the ‘container’ documentation, here:
but when I ‘balena push’ this image up into an application - the build fails. When I dig in, the underlying error doesn’t actually surprise me - as the step is referencing a balena component which doesn’t exist:
ADD failed: stat /var/lib/balena32/tmp/docker-builder257180624/SD/buildVLC.sh: no such file or directory
This doesn’t surprise me because I’ve done nothing to balena-ize the code / project. I’ve searched the documentation and forums - but not coming up with the answer. Starting in on a couple of the masterclasses and trying to increase my overall balena understanding and skillz. I welcome any #RTFM links or smack to the head that help get me on track for what seems should be a fairly straightforward task. BTW: I tried the ‘shot-in-the-dark’ change, referencing a thread elsewhere about building Pi images – and changed the:
FROM debian:buster
to:
FROM balenalib/armv7hf-debian
But this seemed to have no effect on the error I’m encountering.
@Razikus thanks for solving this. The trick was indeed to move the Dockerfile in the parent directory as Dockerfile.template.
The Falcon Player build script invokes: docker build -t falconchristmas/fpp:latest -f Docker/Dockerfile . The Dockerfile is inside a Docker directory. When using balena the Dockerfile or the Dockerfile.template file has to be in the root folder. This way COPY and ADD operations will be able to access the subfolders.
Outstanding! Big thanks to both @Razikus for jumping in and providing a solution - and @majorz for confirming and providing additional context and explanation. #Learning
Interesting: I still doesn’t quite build / complete – it seems to choke on building VLC. But it definitely gets a LOT further than it was, before. I’ll have to find time to really dig in and see what’s going on: Silly me, I thought this was going to be a fairly trivial undertaking.
Talk about a blast from this past: This thread is literally from a past life!
Now - if I could just get back up to speed as to where I was, back in 2020 - I’m sure I’ll find a fresh perspective (and many new versions / features / configurations) as I re-orient myself to the problem and look forward to contributing this to this always-a-hit project at our house!
In addition to the Glediator presets, I’m looking to add fpp to loop through some xLights sequences - #LearningAllAround
Haha welcome back @SnoWake it does seem a whole lifetime ago that we are doing Christmas light projects! Looking forward to seeing what you come up with