Alpine package depends on systemd #456

Closed
opened 2025-11-01 20:56:26 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @vikunja-bot on GitHub (Apr 1, 2025).

Original issue by edward-shen on 2023-05-25T04:04:35.000Z

Description

Hey folks!

I was thinking of trying out Vikunja on a lxc container. I was able to fetch the .apk file but quickly became stuck:

Repro steps:

# wget https://dl.vikunja.io/api/0.20.4/vikunja-0.20.4-x86_64.apk
# apk add --allow-untrusted vikunja-0.20.4-x86_64.apk 
ERROR: unable to select packages:
  systemd (no such package):
    required by: vikunja-0.20.4[systemd]

Alpine Linux uses OpenRC as its init system, so having a dependency on systemd here is incorrect. As far as I can tell, there's no way to actually install systemd on an Alpine Linux system.

I can use a different base image as a workaround, but that really inflates the container size so I'd rather not if possible.

Vikunja Frontend Version

n/a

Vikunja API Version

0.20.4

Browser and version

No response

Can you reproduce the bug on the Vikunja demo site?

n/a

Screenshots

No response

Original issue on Gitea


@kolaente commented on 2023-05-30T08:50:31.000Z:

Thanks for the report.

If you want to build a container with it, why don't you use the binary directly? (I've never done anything with LXC, don't know what's the best practice there?)

I don't know anything about the alpine init system, do you want to send a PR to add proper support for it?


AbelLykens commented on 2023-05-30T14:20:55.000Z:

I am running on LXC on Debian without problems, hope it helps :)


edward-shen commented on 2023-05-30T17:25:33.000Z:

Hi! LXC is just how I set it up -- the issue is independent of LXC or containers in general.

I raised this issue because Vikunja offers an Alpine linux package here but the Alpine linux package doesn't work on a vanilla install of Alpine linux, which felt like a bug.

The primary benefit of having using the APK would be integrating with the init system to daemonize Vikunja without relying on other tools (which would kinda be against one of alpine linux's features: being small).

I can certainly give it a try but I can't promise anything in the near future. Anyone is also free to snipe me. :)

Originally created by @vikunja-bot on GitHub (Apr 1, 2025). _Original issue by edward-shen on 2023-05-25T04:04:35.000Z_ ### Description Hey folks! I was thinking of trying out Vikunja on a lxc container. I was able to fetch the `.apk` file but quickly became stuck: Repro steps: ``` # wget https://dl.vikunja.io/api/0.20.4/vikunja-0.20.4-x86_64.apk # apk add --allow-untrusted vikunja-0.20.4-x86_64.apk ERROR: unable to select packages: systemd (no such package): required by: vikunja-0.20.4[systemd] ``` Alpine Linux uses [OpenRC](https://en.wikipedia.org/wiki/OpenRC) as its init system, so having a dependency on `systemd` here is incorrect. As far as I can tell, there's no way to actually install `systemd` on an Alpine Linux system. I can use a different base image as a workaround, but that really inflates the container size so I'd rather not if possible. ### Vikunja Frontend Version n/a ### Vikunja API Version 0.20.4 ### Browser and version _No response_ ### Can you reproduce the bug on the Vikunja demo site? n/a ### Screenshots _No response_ [Original issue on Gitea](https://kolaente.dev/vikunja/vikunja/issues/1530) --- _**@kolaente** commented on 2023-05-30T08:50:31.000Z_: Thanks for the report. If you want to build a container with it, why don't you use the binary directly? (I've never done anything with LXC, don't know what's the best practice there?) I don't know anything about the alpine init system, do you want to send a PR to add proper support for it? --- _**AbelLykens** commented on 2023-05-30T14:20:55.000Z_: I am running on LXC on Debian without problems, hope it helps :) --- _**edward-shen** commented on 2023-05-30T17:25:33.000Z_: Hi! LXC is just how I set it up -- the issue is independent of LXC or containers in general. I raised this issue because Vikunja offers an Alpine linux package [here](https://vikunja.io/download/) but the Alpine linux package doesn't work on a vanilla install of Alpine linux, which felt like a bug. The primary benefit of having using the APK would be integrating with the init system to daemonize Vikunja without relying on other tools (which would kinda be against one of alpine linux's features: being small). I can certainly give it a try but I can't promise anything in the near future. Anyone is also free to snipe me. :)
GiteaMirror added the kind/bug label 2025-11-01 20:56:26 -05:00
Author
Owner

@kolaente commented on GitHub (Jun 25, 2025):

This is now resolved in https://github.com/go-vikunja/vikunja/pull/1016 - please check with the next unstable build if the alpine package works.

@kolaente commented on GitHub (Jun 25, 2025): This is now resolved in https://github.com/go-vikunja/vikunja/pull/1016 - please check with the next unstable build if the alpine package works.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#456