Skip to content

RaspberryPi/ARM docker implementation - #393

Open
mariolima wants to merge 4 commits into
vexorian:mainfrom
mariolima:dev-rpi-docker
Open

RaspberryPi/ARM docker implementation#393
mariolima wants to merge 4 commits into
vexorian:mainfrom
mariolima:dev-rpi-docker

Conversation

@mariolima

Copy link
Copy Markdown

New features

Dockerfiler-rpi using alpine so that ARM/Raspberry Pi images of dizquetv can now be built.

@vexorian

vexorian commented Oct 9, 2021

Copy link
Copy Markdown
Owner

Giving it a try on my pi 4,

fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/armv7/APKINDEX.tar.gz
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.14/main: temporary error (try again later)
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.14/main: No such file or directory
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/armv7/APKINDEX.tar.gz
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.14/community: temporary error (try again later)

It might be an unlucky downtime like the error says, so I will try later.

@vexorian

vexorian commented Oct 9, 2021

Copy link
Copy Markdown
Owner

I am starting to think this might be an issue with TLS certificates in the alpine image?

Step 2/9 : RUN apk add --update nodejs npm
 ---> Running in 5bdd32ceb28b
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/armv7/APKINDEX.tar.gz
3070034832:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330:
3070034832:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330:
3070034832:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330:
3070034832:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330:
3070034832:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1914:
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/armv7/APKINDEX.tar.gz
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.14/main: Permission denied
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.14/main: No such file or directory
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.14/community: temporary error (try again later)
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.14/community: No such file or directory
ERROR: unable to select packages:

@mariolima

Copy link
Copy Markdown
Author

Hi! I got this working on a local RPI4 /armv7 too

I created a proof of concept when building the images @ https://github.com/mariolima/dizquetv/runs/3853614254?check_suite_focus=true#step:5:32

It seems to be working when going through and installing the alpine packages. It might be an out of date SSL library within your docker version/rpi.

@DoodleCup

Copy link
Copy Markdown

Any chance there is an image in near future? Can't build it from source with the wiki tutorial cause there are several errors while building the Dependencies.

@vexorian

Copy link
Copy Markdown
Owner

Basically it looks like this PR is good and it might solve the issue of the lack of image, but for some reason I can't get it to work in my raspberry. It could be because I am running pihole and it is conflicting with docker or something. So I am unsure how to test the image. If you could test the docker file in your raspberry , I would merge it.

@DoodleCup

Copy link
Copy Markdown

How can i do this? Is there a tutorial?

@nwithan8

Copy link
Copy Markdown
Contributor

Any update on this?

@aechaves

aechaves commented May 14, 2024

Copy link
Copy Markdown

For the record, I managed to get this working on my Rapsberry Pi 4.
Here's what I did:

  • Make sure I have docker buildx installed
  • Clone the repo
  • Copy the Dockerfile-rpi file from this PR into the repo root
  • Run the following command docker buildx build --platform "linux/arm/v7" --tag dizquetv:arm7 --file ./Dockerfile-rpi --output type=image . (which I adapted from the GitHub Actions workflow from this PR)
  • Then ran the image using docker run --rm --name dizquetv.service -v /root/dizquetv-volume:/usr/app/.dizquetv -p 8000:8000 dizquetv:arm7 (I also added the command as a service, as explained here: https://jugmac00.github.io/blog/how-to-run-a-dockerized-service-via-systemd/)
  • Accessed my raspi IP at port 8000 and the dizqueTV web interface is up! (Note that I haven't tested much else yet, but it seems to be working properly)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants