maxmielchen / untiscalendar

UntisCalendar is a software written in Kotlin that host's your Untis Timetable via iCal and you can use it in your Google Calendar or Microsoft Outlook
Apache License 2.0
8 stars 1 forks source link

Support for arm/Raspberry Pi #19

Closed MrMineDe closed 1 year ago

MrMineDe commented 1 year ago

Installing with the command: docker pull ghcr.io/maxmielchen/untiscalendar:latest fails with the error message: no matching manifest for linux/arm64/v8 in the manifest list entries

When overwriting the error message with: sudo docker pull ghcr.io/maxmielchen/untiscalendar:latest --platform linux/amd64 it installs without errors. When starting it fails though (which was expectable...):

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
exec /bin/sh: exec format error

Is there a reason why the program wouldn't work on arm/Raspberry Pi? Specs: Raspberry Pi 4 Model B

Thanks in advance

maxmielchen commented 1 year ago

Hey thanks for reporting. As you said, only the image for amd64 is currently stored in the github container registry (ghcr.io). In the future, I intend to support every processor architecture.

But until then, if you want to run this container on an unsupported system, you'll have to build it yourself.

# Clone git repository
git clone https://github.com/maxmielchen/UntisCalendar.git
cd UntisCalendar

# Build image
docker build -t untiscalendar:latest .

# Start container
docker run \
    -e TIMEZONE="Europe/Berlin" \
    -e ROOM=Room \
    -e TEACHER=Teacher \
    -e SUMMARY=School \
    -e USERNAME=your_username \
    -e PASSWORD=your_password \
    -e SERVER=niobe.webuntis.com \
    -e SCHOOL=your_school \
    -e TOKEN=secret \
    -p 80:8080 \
    untiscalendar:latest
maxmielchen commented 1 year ago

Hey, I have now found a better way as I also store in arm architecture at ghcr.io. It would be very nice if you could test this version. Its only important that you use the image under "ghcr.io/maxmielchen/untiscalendar:main". If this version works, I will make a release and from then on you can use this version again under "ghcr.io/maxmielchen/untiscalendar:latest".